Skip to content

Commit 68d1982

Browse files
Release v1.138.0 - staging → master (#11900)
Release v1.138.0 - staging → master
2 parents e91da44 + 7fc95cb commit 68d1982

File tree

1,826 files changed

+48551
-30134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,826 files changed

+48551
-30134
lines changed

.github/workflows/ci.yml

Lines changed: 173 additions & 125 deletions
Large diffs are not rendered by default.

.github/workflows/coverage.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/coverage_badge.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ jobs:
1313
- name: Checkout Code
1414
uses: actions/checkout@v4
1515

16+
- uses: pnpm/action-setup@v4
17+
with:
18+
run_install: false
19+
version: 10
20+
1621
- name: Use Node.js v20.17 LTS
1722
uses: actions/setup-node@v4
1823
with:
1924
node-version: "20.17"
20-
21-
- uses: actions/cache@v4
22-
with:
23-
path: |
24-
**/node_modules
25-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
25+
cache: "pnpm"
2626

2727
- name: Install Dependencies
28-
run: yarn --frozen-lockfile
28+
run: pnpm install --frozen-lockfile
2929

3030
- name: Build @linode/validation
31-
run: yarn build:validation
31+
run: pnpm build:validation
3232

3333
- name: Build @linode/api-v4
34-
run: yarn build:sdk
34+
run: pnpm build:sdk
3535

3636
- name: Run Base Branch Coverage
37-
run: yarn coverage:summary
37+
run: pnpm coverage:summary
3838

3939
- name: Generate Coverage Badge
4040
uses: jaywcjlove/coverage-badges-cli@7f0781807ef3e7aba97a145beca881d36451b7b7 # v1.1.1

.github/workflows/coverage_comment.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/e2e_schedule_and_push.yml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ env:
88
CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }}
99
CY_TEST_FAIL_ON_MANAGED: 1
1010
CY_TEST_RESET_PREFERENCES: 1
11+
CY_TEST_SPLIT_RUN: 1
12+
CY_TEST_SPLIT_RUN_TOTAL: 4
1113
on:
1214
schedule:
1315
- cron: "0 13 * * 1-5"
@@ -19,54 +21,48 @@ on:
1921

2022
jobs:
2123
run-cypress-e2e:
24+
name: Cypress Tests (User ${{ matrix.user.index }})
2225
runs-on: ubuntu-latest
2326
strategy:
2427
fail-fast: false
2528
matrix:
26-
user: ["USER_1", "USER_2", "USER_3", "USER_4"]
29+
user:
30+
- { index: 1, name: 'USER_1' }
31+
- { index: 2, name: 'USER_2' }
32+
- { index: 3, name: 'USER_3' }
33+
- { index: 4, name: 'USER_4' }
2734
steps:
28-
- name: install command line utilities
29-
run: sudo apt-get install -y expect
3035
- uses: actions/checkout@v4
36+
- uses: pnpm/action-setup@v4
37+
with:
38+
run_install: false
39+
version: 10
3140
- uses: actions/setup-node@v4
3241
with:
3342
node-version: "20.17"
34-
- uses: actions/cache@v4
35-
with:
36-
path: |
37-
node_modules
38-
*/*/node_modules
39-
~/.cache/Cypress
40-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
41-
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
4243
- run: |
43-
echo "CYPRESS_RECORD_KEY=${{ secrets.CYPRESS_RECORD_KEY }}" >> $GITHUB_ENV
4444
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
45-
- run: echo "MANAGER_OAUTH=$USER_1" >> ./packages/manager/.env
46-
if: matrix['user'] == 'USER_1'
47-
- run: echo "MANAGER_OAUTH=$USER_2" >> ./packages/manager/.env
48-
if: matrix['user'] == 'USER_2'
49-
- run: echo "MANAGER_OAUTH=$USER_3" >> ./packages/manager/.env
50-
if: matrix['user'] == 'USER_3'
51-
- run: echo "MANAGER_OAUTH=$USER_4" >> ./packages/manager/.env
52-
if: matrix['user'] == 'USER_4'
5345
- run: |
5446
echo "REACT_APP_LAUNCH_DARKLY_ID=${{ secrets.REACT_APP_LAUNCH_DARKLY_ID }}" >> ./packages/manager/.env
5547
echo "REACT_APP_CLIENT_ID=$CLIENT_ID" >> ./packages/manager/.env
5648
echo "REACT_APP_LOGIN_ROOT=${{ secrets.REACT_APP_LOGIN_ROOT }}" >> ./packages/manager/.env
5749
echo "REACT_APP_API_ROOT=${{ secrets.REACT_APP_API_ROOT }}" >> ./packages/manager/.env
5850
echo "REACT_APP_APP_ROOT=${{ secrets.REACT_APP_APP_ROOT }}" >> ./packages/manager/.env
5951
echo "REACT_APP_DISABLE_NEW_RELIC=1" >> ./packages/manager/.env
60-
yarn install:all
61-
yarn build
62-
yarn start:manager:ci &
52+
echo "MANAGER_OAUTH=${{ secrets[matrix.user.name] }}" >> ./packages/manager/.env
53+
echo "CY_TEST_SPLIT_RUN_INDEX=${{ matrix.user.index }}" >> ./packages/manager/.env
54+
- run: pnpm install --frozen-lockfile
55+
- run: pnpm run --filter @linode/validation build
56+
- run: pnpm run --filter @linode/api-v4 build
6357
- name: Run tests
6458
uses: cypress-io/github-action@v6
6559
with:
6660
working-directory: packages/manager
6761
wait-on: "http://localhost:3000"
6862
wait-on-timeout: 1000
6963
install: false
64+
build: pnpm run build
65+
start: pnpm start:ci
7066
browser: chrome
71-
record: true
72-
parallel: true
67+
record: false
68+
parallel: false

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,6 @@ packages/manager/bundle_analyzer_report.html
138138

139139
# vitepress
140140
docs/.vitepress/cache
141+
142+
# pnpm store will be generated if you run pnpm install in docker environments
143+
.pnpm-store

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
yarn workspaces run precommit
1+
pnpm lint-staged

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@
4141

4242
## Overview
4343

44-
This repository is home to the Akamai Connected **[Cloud Manager](https://cloud.linode.com)** and related [`@linode/api-v4`](packages/api-v4/), [`@linode/validation`](packages/validation/) and [`@linode/ui`](packages/ui/) Typescript packages.
44+
This repository is home to the Akamai Connected **[Cloud Manager](https://cloud.linode.com)** and related Typescript packages:
45+
- [`@linode/api-v4`](packages/api-v4/)
46+
- [`@linode/queries`](packages/queries/)
47+
- [`@linode/search`](packages/search/)
48+
- [`@linode/ui`](packages/ui/)
49+
- [`@linode/utilities`](packages/utilities/)
50+
- [`@linode/validation`](packages/validation/)
4551

4652
## Developing Locally
4753

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ x-e2e-runners:
8383
target: e2e
8484
env_file: ./packages/manager/.env
8585
volumes: *default-volumes
86-
entrypoint: 'yarn'
86+
entrypoint: 'pnpm'
8787

8888
services:
8989
# Serves a local instance of Cloud Manager for Cypress to use for its tests.
@@ -164,7 +164,7 @@ services:
164164
entrypoint:
165165
- "/bin/sh"
166166
- "-c"
167-
- "caddy reverse-proxy --from $${CYPRESS_BASE_URL} --to $${REVERSE_PROXY_URL} & yarn $0 $@"
167+
- "caddy reverse-proxy --from $${CYPRESS_BASE_URL} --to $${REVERSE_PROXY_URL} > /dev/null 2>&1 & pnpm $0 $@"
168168

169169
# Cypress component test runner service.
170170
#
@@ -191,7 +191,7 @@ services:
191191
environment:
192192
<<: *default-env
193193
MANAGER_OAUTH: ${MANAGER_OAUTH}
194-
entrypoint: ['yarn', 'cy:e2e']
194+
entrypoint: ['pnpm', 'cy:e2e']
195195

196196
# Component test runner.
197197
# Does not require any Cloud Manager environment to run.
@@ -201,7 +201,7 @@ services:
201201
environment:
202202
CY_TEST_DISABLE_RETRIES: ${CY_TEST_DISABLE_RETRIES}
203203
CY_TEST_JUNIT_REPORT: ${CY_TEST_JUNIT_REPORT}
204-
entrypoint: ['yarn', 'cy:component:run']
204+
entrypoint: ['pnpm', 'cy:component:run']
205205

206206
# End-to-end test runner for Cloud's synthetic monitoring tests.
207207
# Configured to run against a remote Cloud instance hosted at some URL.
@@ -211,4 +211,4 @@ services:
211211
environment:
212212
<<: *default-env
213213
MANAGER_OAUTH: ${MANAGER_OAUTH}
214-
entrypoint: ['yarn', 'cy:e2e']
214+
entrypoint: ['pnpm', 'cy:e2e']

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Feel free to open an issue to report a bug or request a feature.
3333
- install it via `brew`: https://github.com/cli/cli#installation or upgrade with `brew upgrade gh`
3434
- Once installed, run `gh repo set-default` and pick `linode/manager` (only > 2.21.0)
3535
- You can also just create the changeset manually, in this case make sure to use the proper formatting for it.
36-
- Run `yarn changeset`from the root, choose the package to create a changeset for, and provide a description for the change.
36+
- Run `pnpm changeset`from the root, choose the package to create a changeset for, and provide a description for the change.
3737
You can either have it committed automatically or do it manually if you need to edit it.
3838
- A changeset is optional, but should be included if the PR falls in one of the following categories:<br>
3939
`Added`, `Fixed`, `Changed`, `Removed`, `Tech Stories`, `Tests`, `Upcoming Features`
@@ -74,4 +74,4 @@ Break down *additional* things in your PR into multiple PRs (like you would do w
7474

7575
## Docs
7676

77-
To run the docs development server locally, [install Bun](https://bun.sh/) and start the server: `yarn docs`.
77+
To run the docs development server locally, [install Bun](https://bun.sh/) and start the server: `pnpm run docs`.

0 commit comments

Comments
 (0)