-
Notifications
You must be signed in to change notification settings - Fork 435
test: ci #7900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
test: ci #7900
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@clerk/backend': patch | ||
| --- | ||
|
|
||
| TEST |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -56,7 +56,7 @@ jobs: | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout Repo | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 100 # Enough for changeset status comparison, much faster than full history | ||||||||||||||||||||||
| fetch-tags: false | ||||||||||||||||||||||
|
|
@@ -69,10 +69,10 @@ jobs: | |||||||||||||||||||||
| - name: Setup | ||||||||||||||||||||||
| id: config | ||||||||||||||||||||||
| uses: ./.github/actions/init-blacksmith | ||||||||||||||||||||||
| # with: | ||||||||||||||||||||||
| # turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| # turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| # turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Verify lockfile is deduped | ||||||||||||||||||||||
| run: pnpm dedupe --check | ||||||||||||||||||||||
|
|
@@ -97,6 +97,7 @@ jobs: | |||||||||||||||||||||
| runs-on: "blacksmith-8vcpu-ubuntu-2204" | ||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||
| contents: read | ||||||||||||||||||||||
| actions: write | ||||||||||||||||||||||
| defaults: | ||||||||||||||||||||||
| run: | ||||||||||||||||||||||
| shell: bash | ||||||||||||||||||||||
|
|
@@ -107,7 +108,7 @@ jobs: | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout Repo | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 1 | ||||||||||||||||||||||
| fetch-tags: false | ||||||||||||||||||||||
|
|
@@ -117,17 +118,24 @@ jobs: | |||||||||||||||||||||
| - name: Setup | ||||||||||||||||||||||
| id: config | ||||||||||||||||||||||
| uses: ./.github/actions/init-blacksmith | ||||||||||||||||||||||
| # with: | ||||||||||||||||||||||
| # turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| # turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| # turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| # turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Turbo Build | ||||||||||||||||||||||
| run: pnpm turbo build $TURBO_ARGS --only | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Save Turbo Cache | ||||||||||||||||||||||
| run: mkdir -p .turbo-cache | ||||||||||||||||||||||
| - uses: useblacksmith/cache/save@v5 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| path: .turbo-cache | ||||||||||||||||||||||
| key: turbo-build-${{ github.sha }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Upload Turbo Summary | ||||||||||||||||||||||
| uses: actions/upload-artifact@v4 | ||||||||||||||||||||||
| uses: actions/upload-artifact@v6 | ||||||||||||||||||||||
| if: ${{ env.TURBO_SUMMARIZE == 'true' }} | ||||||||||||||||||||||
| continue-on-error: true | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
|
|
@@ -153,7 +161,7 @@ jobs: | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout Repo | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 1 | ||||||||||||||||||||||
| fetch-tags: false | ||||||||||||||||||||||
|
|
@@ -163,11 +171,17 @@ jobs: | |||||||||||||||||||||
| - name: Setup | ||||||||||||||||||||||
| id: config | ||||||||||||||||||||||
| uses: ./.github/actions/init-blacksmith | ||||||||||||||||||||||
| # with: | ||||||||||||||||||||||
| # turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| # turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| # turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| # turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Restore Turbo Cache | ||||||||||||||||||||||
| uses: useblacksmith/cache/restore@v5 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| path: .turbo-cache | ||||||||||||||||||||||
| key: turbo-build-${{ github.sha }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Check size using bundlewatch | ||||||||||||||||||||||
| continue-on-error: true | ||||||||||||||||||||||
|
|
@@ -178,19 +192,13 @@ jobs: | |||||||||||||||||||||
| CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | ||||||||||||||||||||||
| CI_REPO_NAME: ${{ vars.REPO_NAME }} | ||||||||||||||||||||||
| CI_REPO_OWNER: ${{ vars.REPO_OWNER }} | ||||||||||||||||||||||
| run: pnpm turbo bundlewatch $TURBO_ARGS | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Lint packages using publint | ||||||||||||||||||||||
| run: pnpm turbo lint:publint $TURBO_ARGS | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Lint types using attw | ||||||||||||||||||||||
| run: pnpm turbo lint:attw $TURBO_ARGS | ||||||||||||||||||||||
| run: pnpm turbo bundlewatch --affected $TURBO_ARGS | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Run lint | ||||||||||||||||||||||
| run: pnpm turbo lint $TURBO_ARGS | ||||||||||||||||||||||
| - name: Run linting (publint, attw, eslint) | ||||||||||||||||||||||
| run: pnpm turbo lint:publint lint:attw lint --affected $TURBO_ARGS | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Upload Turbo Summary | ||||||||||||||||||||||
| uses: actions/upload-artifact@v4 | ||||||||||||||||||||||
| uses: actions/upload-artifact@v6 | ||||||||||||||||||||||
| if: ${{ env.TURBO_SUMMARIZE == 'true' }} | ||||||||||||||||||||||
| continue-on-error: true | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
|
|
@@ -219,12 +227,22 @@ jobs: | |||||||||||||||||||||
| matrix: | ||||||||||||||||||||||
| include: | ||||||||||||||||||||||
| - node-version: 22 | ||||||||||||||||||||||
| test-filter: "**" | ||||||||||||||||||||||
| filter-label: "**" | ||||||||||||||||||||||
| test-filter: "--filter=@clerk/backend" | ||||||||||||||||||||||
| filter-label: "@clerk/backend" | ||||||||||||||||||||||
| - node-version: 22 | ||||||||||||||||||||||
| test-filter: "--filter=@clerk/clerk-js" | ||||||||||||||||||||||
| filter-label: "@clerk/clerk-js" | ||||||||||||||||||||||
| - node-version: 22 | ||||||||||||||||||||||
| test-filter: "--filter=@clerk/shared --filter=@clerk/nextjs --filter=@clerk/react" | ||||||||||||||||||||||
| filter-label: "@clerk/shared, @clerk/nextjs, @clerk/react" | ||||||||||||||||||||||
| - node-version: 22 | ||||||||||||||||||||||
| test-filter: "--filter=!@clerk/backend --filter=!@clerk/clerk-js --filter=!@clerk/shared --filter=!@clerk/nextjs --filter=!@clerk/react" | ||||||||||||||||||||||
| filter-label: "remaining packages" | ||||||||||||||||||||||
| run-typedoc: true | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout Repo | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 1 | ||||||||||||||||||||||
| fetch-tags: false | ||||||||||||||||||||||
|
|
@@ -235,47 +253,89 @@ jobs: | |||||||||||||||||||||
| id: config | ||||||||||||||||||||||
| uses: ./.github/actions/init-blacksmith | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| # Ensures that all builds are cached appropriately with a consistent run name `Unit Tests (20)`. | ||||||||||||||||||||||
| node-version: ${{ matrix.node-version }} | ||||||||||||||||||||||
| # turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| # turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| # turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| # turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
| turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Restore Turbo Cache | ||||||||||||||||||||||
| uses: useblacksmith/cache/restore@v5 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| path: .turbo-cache | ||||||||||||||||||||||
| key: turbo-build-${{ github.sha }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Run tests in packages | ||||||||||||||||||||||
| run: | | ||||||||||||||||||||||
| if [ "${{ matrix.test-filter }}" = "**" ]; then | ||||||||||||||||||||||
| echo "Running full test suite on Node ${{ matrix.node-version }}" | ||||||||||||||||||||||
| pnpm turbo test $TURBO_ARGS | ||||||||||||||||||||||
| else | ||||||||||||||||||||||
| echo "Running tests: ${{ matrix.filter-label }}" | ||||||||||||||||||||||
| pnpm turbo test $TURBO_ARGS ${{ matrix.test-filter }} | ||||||||||||||||||||||
| fi | ||||||||||||||||||||||
| echo "Running tests: ${{ matrix.filter-label }}" | ||||||||||||||||||||||
| pnpm turbo test $TURBO_ARGS ${{ matrix.test-filter }} | ||||||||||||||||||||||
| env: | ||||||||||||||||||||||
| NODE_VERSION: ${{ matrix.node-version }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Run Typedoc tests | ||||||||||||||||||||||
| run: | | ||||||||||||||||||||||
| # Only run Typedoc tests for one matrix version and main test run | ||||||||||||||||||||||
| if [ "${{ matrix.node-version }}" == "22" ] && [ "${{ matrix.test-filter }}" = "**" ]; then | ||||||||||||||||||||||
| pnpm turbo run //#test:typedoc | ||||||||||||||||||||||
| fi | ||||||||||||||||||||||
| if: ${{ matrix.run-typedoc }} | ||||||||||||||||||||||
| run: pnpm turbo run //#test:typedoc | ||||||||||||||||||||||
| env: | ||||||||||||||||||||||
| NODE_VERSION: ${{ matrix.node-version }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Upload Turbo Summary | ||||||||||||||||||||||
| uses: actions/upload-artifact@v4 | ||||||||||||||||||||||
| uses: actions/upload-artifact@v6 | ||||||||||||||||||||||
| if: ${{ env.TURBO_SUMMARIZE == 'true' }} | ||||||||||||||||||||||
| continue-on-error: true | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| name: turbo-summary-report-unit-${{ github.run_id }}-${{ github.run_attempt }}-node-${{ matrix.node-version }} | ||||||||||||||||||||||
| name: turbo-summary-report-unit-${{ github.run_id }}-${{ github.run_attempt }}-${{ strategy.job-index }} | ||||||||||||||||||||||
| path: .turbo/runs | ||||||||||||||||||||||
| retention-days: 5 | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| integration-tests: | ||||||||||||||||||||||
| # needs: [check-permissions, build-packages] | ||||||||||||||||||||||
| integration-setup: | ||||||||||||||||||||||
| needs: [check-permissions] | ||||||||||||||||||||||
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} | ||||||||||||||||||||||
| name: Integration Test Setup | ||||||||||||||||||||||
| runs-on: "blacksmith-8vcpu-ubuntu-2204" | ||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||
| contents: read | ||||||||||||||||||||||
| actions: write | ||||||||||||||||||||||
| defaults: | ||||||||||||||||||||||
| run: | ||||||||||||||||||||||
| shell: bash | ||||||||||||||||||||||
| timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout Repo | ||||||||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 1 | ||||||||||||||||||||||
| fetch-tags: false | ||||||||||||||||||||||
| filter: "blob:none" | ||||||||||||||||||||||
| show-progress: false | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Setup | ||||||||||||||||||||||
| id: config | ||||||||||||||||||||||
| uses: ./.github/actions/init-blacksmith | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Version packages for snapshot | ||||||||||||||||||||||
| run: npm run version-packages:snapshot ci | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Verdaccio | ||||||||||||||||||||||
| uses: ./.github/actions/verdaccio | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| publish-cmd: | | ||||||||||||||||||||||
| if [ "$(pnpm config get registry)" = "https://registry.npmjs.org/" ]; then echo 'Error: Using default registry' && exit 1; else pnpm turbo build $TURBO_ARGS --only && pnpm changeset publish --no-git-tag --tag latest; fi | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Upload Verdaccio Storage | ||||||||||||||||||||||
| uses: actions/upload-artifact@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| name: verdaccio-storage-${{ github.run_id }}-${{ github.run_attempt }} | ||||||||||||||||||||||
| path: .verdaccio/storage | ||||||||||||||||||||||
|
Comment on lines
+329
to
+333
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid 🛠️ Proposed fix (stable artifact name across reruns)- name: verdaccio-storage-${{ github.run_id }}-${{ github.run_attempt }}
+ name: verdaccio-storage-${{ github.run_id }}- name: verdaccio-storage-${{ github.run_id }}-${{ github.run_attempt }}
+ name: verdaccio-storage-${{ github.run_id }}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| retention-days: 1 | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| integration-tests: | ||||||||||||||||||||||
| needs: [check-permissions, integration-setup] | ||||||||||||||||||||||
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} | ||||||||||||||||||||||
| name: Integration Tests (${{ matrix.test-name }}, ${{ matrix.test-project }}${{ matrix.next-version && format(', {0}', matrix.next-version) || '' }}) | ||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||
| contents: read | ||||||||||||||||||||||
|
|
@@ -330,7 +390,7 @@ jobs: | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout Repo | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 1 | ||||||||||||||||||||||
| fetch-tags: false | ||||||||||||||||||||||
|
|
@@ -341,9 +401,9 @@ jobs: | |||||||||||||||||||||
| id: config | ||||||||||||||||||||||
| uses: ./.github/actions/init-blacksmith | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| # turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| # turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| # turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
| turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
| playwright-enabled: true | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Verify jq is installed | ||||||||||||||||||||||
|
|
@@ -379,16 +439,31 @@ jobs: | |||||||||||||||||||||
| echo "affected=${AFFECTED}" | ||||||||||||||||||||||
| echo "affected=${AFFECTED}" >> $GITHUB_OUTPUT | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Version packages for snapshot | ||||||||||||||||||||||
| - name: Build packages | ||||||||||||||||||||||
| if: ${{ steps.task-status.outputs.affected == '1' }} | ||||||||||||||||||||||
| run: npm run version-packages:snapshot ci | ||||||||||||||||||||||
| run: pnpm turbo build $TURBO_ARGS --only | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Verdaccio | ||||||||||||||||||||||
| - name: Download Verdaccio Storage | ||||||||||||||||||||||
| if: ${{ steps.task-status.outputs.affected == '1' }} | ||||||||||||||||||||||
| uses: ./.github/actions/verdaccio | ||||||||||||||||||||||
| uses: actions/download-artifact@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| publish-cmd: | | ||||||||||||||||||||||
| if [ "$(pnpm config get registry)" = "https://registry.npmjs.org/" ]; then echo 'Error: Using default registry' && exit 1; else pnpm turbo build $TURBO_ARGS --only && pnpm changeset publish --no-git-tag --tag latest; fi | ||||||||||||||||||||||
| name: verdaccio-storage-${{ github.run_id }}-${{ github.run_attempt }} | ||||||||||||||||||||||
| path: .verdaccio/storage | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Start Verdaccio | ||||||||||||||||||||||
| if: ${{ steps.task-status.outputs.affected == '1' }} | ||||||||||||||||||||||
| run: | | ||||||||||||||||||||||
| pnpm set registry http://localhost:4873 | ||||||||||||||||||||||
| nohup ./node_modules/.bin/verdaccio --config ./verdaccio.install.yaml & | ||||||||||||||||||||||
| for i in {1..10}; do | ||||||||||||||||||||||
| if curl -f http://localhost:4873/ > /dev/null 2>&1; then | ||||||||||||||||||||||
| echo "Verdaccio is up and running" | ||||||||||||||||||||||
| break | ||||||||||||||||||||||
| fi | ||||||||||||||||||||||
| echo "Waiting for Verdaccio to start (attempt $i)..." | ||||||||||||||||||||||
| sleep 2 | ||||||||||||||||||||||
| done | ||||||||||||||||||||||
| pnpm config set //localhost:4873/:_authToken secretToken | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
Comment on lines
453
to
467
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fail fast if Verdaccio never starts. 🛠️ Proposed fix (explicit failure on startup timeout) - name: Start Verdaccio
if: ${{ steps.task-status.outputs.affected == '1' }}
run: |
pnpm set registry http://localhost:4873
nohup ./node_modules/.bin/verdaccio --config ./verdaccio.install.yaml &
+ started=false
for i in {1..10}; do
if curl -f http://localhost:4873/ > /dev/null 2>&1; then
echo "Verdaccio is up and running"
+ started=true
break
fi
echo "Waiting for Verdaccio to start (attempt $i)..."
sleep 2
done
+ if [ "$started" != "true" ]; then
+ echo "Verdaccio failed to start" >&2
+ exit 1
+ fi
pnpm config set //localhost:4873/:_authToken secretToken🤖 Prompt for AI Agents |
||||||||||||||||||||||
| - name: Edit .npmrc [link-workspace-packages=false] | ||||||||||||||||||||||
| run: sed -i -E 's/link-workspace-packages=(deep|true)/link-workspace-packages=false/' .npmrc | ||||||||||||||||||||||
|
|
@@ -468,7 +543,7 @@ jobs: | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Upload test-results | ||||||||||||||||||||||
| if: ${{ cancelled() || failure() }} | ||||||||||||||||||||||
| uses: actions/upload-artifact@v4 | ||||||||||||||||||||||
| uses: actions/upload-artifact@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| name: playwright-traces-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.test-name }}${{ matrix.next-version && format('-next{0}', matrix.next-version) || '' }} | ||||||||||||||||||||||
| path: integration/test-results | ||||||||||||||||||||||
|
|
@@ -488,7 +563,7 @@ jobs: | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout repository | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
| uses: actions/checkout@v6 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 1 | ||||||||||||||||||||||
| fetch-tags: false | ||||||||||||||||||||||
|
|
@@ -500,10 +575,16 @@ jobs: | |||||||||||||||||||||
| with: | ||||||||||||||||||||||
| turbo-enabled: true | ||||||||||||||||||||||
| node-version: 22 | ||||||||||||||||||||||
| # turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| # turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| # turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| # turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
| turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | ||||||||||||||||||||||
| turbo-summarize: ${{ env.TURBO_SUMMARIZE }} | ||||||||||||||||||||||
| turbo-team: ${{ vars.TURBO_TEAM }} | ||||||||||||||||||||||
| turbo-token: ${{ secrets.TURBO_TOKEN }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Restore Turbo Cache | ||||||||||||||||||||||
| uses: useblacksmith/cache/restore@v5 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| path: .turbo-cache | ||||||||||||||||||||||
| key: turbo-build-${{ github.sha }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Publish with pkg-pr-new | ||||||||||||||||||||||
| run: pnpm run build && pnpx pkg-pr-new@${{ vars.PKG_PR_NEW_VERSION || '0.0.49' }} publish --compact --pnpm './packages/*' | ||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,4 +35,12 @@ export class BetaFeaturesAPI extends AbstractAPI { | |
| bodyParams: params, | ||
| }); | ||
| } | ||
|
|
||
| public async get() { | ||
| // TODO: Remove - Strictly a test endpoint | ||
| return this.request<void>({ | ||
| method: 'GET', | ||
| path: joinPaths(basePath), | ||
| }); | ||
| } | ||
|
Comment on lines
+39
to
+45
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test endpoint should not be merged to production code. This method is explicitly marked as a test endpoint via the TODO comment. Adding test-only code to production API classes is a merge-blocking concern—this could accidentally ship and expose an unintended endpoint. If this is purely for CI testing purposes, consider:
🤖 Prompt for AI Agents |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionlint will flag the custom runner label.
Line 292 uses
blacksmith-8vcpu-ubuntu-2204, which actionlint doesn’t recognize by default. If this is a self-hosted label, add it toactionlint.yaml(or includeself-hostedinruns-on) to avoid lint failures.🧰 Tools
🪛 actionlint (1.7.11)
[error] 292-292: label "blacksmith-8vcpu-ubuntu-2204" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
🤖 Prompt for AI Agents