GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — perf(ci): (more) sharding of browser and runtime integration tests (#… · getsentry/sentry-javascript@18c69eb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • build.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+28-14Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,9 @@ jobs:
623623
strategy:
624624
fail-fast: false
625625
matrix:
626+
shard: [1, 2]
627+
shards: [2]
626628
bundle:
627-
- esm
628629
- bundle
629630
- bundle_min
630631
- bundle_logs_metrics
@@ -640,10 +641,14 @@ jobs:
640641
project:
641642
- chromium
642643
include:
643-
# Only check all projects for full bundle
644-
# We also shard the tests as they take the longest
645644
- bundle: bundle_tracing_replay_feedback_logs_metrics_min
646645
project: 'webkit'
646+
shard: 1
647+
shards: 2
648+
- bundle: bundle_tracing_replay_feedback_logs_metrics_min
649+
project: 'webkit'
650+
shard: 2
651+
shards: 2
647652
- bundle: bundle_tracing_replay_feedback_logs_metrics_min
648653
project: 'firefox'
649654
- bundle: esm
@@ -662,10 +667,6 @@ jobs:
662667
project: chromium
663668
shard: 4
664669
shards: 4
665-
exclude:
666-
# Do not run the un-sharded esm tests
667-
- bundle: esm
668-
project: 'chromium'
669670

670671
steps:
671672
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -773,7 +774,7 @@ jobs:
773774
retention-days: 7
774775

775776
job_node_integration_tests:
776-
name: Node (${{ matrix.node }}) Integration Tests (${{ matrix.shard }}/3)
777+
name: Node (${{ matrix.node }}) Integration Tests (${{ matrix.shard }}/${{ matrix.shards }})
777778
needs: [job_get_metadata, job_build]
778779
if: needs.job_build.outputs.changed_node_integration == 'true' || github.event_name != 'pull_request'
779780
runs-on: ubuntu-24.04-arm
@@ -783,8 +784,19 @@ jobs:
783784
strategy:
784785
fail-fast: false
785786
matrix:
786-
node: [20.19, 22, 24, 26, '^27.0.0-0']
787-
shard: [1, 2, 3]
787+
node: [20.19, 22, 24, 26]
788+
shard: [1, 2, 3, 4]
789+
shards: [4]
790+
include:
791+
- node: '^27.0.0-0'
792+
shard: 1
793+
shards: 3
794+
- node: '^27.0.0-0'
795+
shard: 2
796+
shards: 3
797+
- node: '^27.0.0-0'
798+
shard: 3
799+
shards: 3
788800
steps:
789801
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
790802
uses: actions/checkout@v7
@@ -820,7 +832,7 @@ jobs:
820832
- name: Run integration tests
821833
working-directory: dev-packages/node-integration-tests
822834
# Tedious runs in the dedicated SQL Server job because its database container requires x86.
823-
run: pnpm run test --shard=${{ matrix.shard }}/3 --exclude '**/tracing/tedious/**'
835+
run: pnpm run test --shard=${{ matrix.shard }}/${{ matrix.shards }} --exclude '**/tracing/tedious/**'
824836

825837
job_sql_server_integration_tests:
826838
name: SQL Server Integration Tests (Node 24)
@@ -849,15 +861,16 @@ jobs:
849861

850862
# Runs on the wrangler pinned in the package, so the required run stays on a fixed, older runtime.
851863
job_cloudflare_integration_tests:
852-
name: Cloudflare Integration Tests (${{ matrix.shard }}/2)
864+
name: Cloudflare Integration Tests (${{ matrix.shard }}/${{ matrix.shards }})
853865
needs: [job_get_metadata, job_build]
854866
if: needs.job_build.outputs.changed_cloudflare_integration == 'true' || github.event_name != 'pull_request'
855867
runs-on: ubuntu-24.04
856868
timeout-minutes: 15
857869
strategy:
858870
fail-fast: false
859871
matrix:
860-
shard: [1, 2]
872+
shard: [1, 2, 3, 4]
873+
shards: [4]
861874
steps: &cloudflare_integration_tests_steps
862875
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
863876
uses: actions/checkout@v7
@@ -884,7 +897,7 @@ jobs:
884897
885898
- name: Run integration tests
886899
working-directory: dev-packages/cloudflare-integration-tests
887-
run: pnpm run test --shard=${{ matrix.shard }}/2
900+
run: pnpm run test --shard=${{ matrix.shard }}/${{ matrix.shards }}
888901

889902
# Shows breakage from new wrangler and workerd releases early. It is not in `job_required_jobs_passed`, so it cannot
890903
# block a PR, and like the optional E2E tests it does not run on release branches.
@@ -900,6 +913,7 @@ jobs:
900913
fail-fast: false
901914
matrix:
902915
shard: [1, 2]
916+
shards: [2]
903917
wrangler: [latest]
904918
steps: *cloudflare_integration_tests_steps
905919

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.