rusackas opened a new pull request, #40717:
URL: https://github.com/apache/superset/pull/40717

   ### SUMMARY
   
   Cypress is the single largest consumer of CI runner minutes. Each shard in
   the `cypress-matrix` job runs a **full, independent setup** — Python, 
Postgres,
   test-data import, Node, `npm ci`, instrumented asset build, and Cypress 
install —
   before executing only its round-robin slice of the spec suite. That fixed
   per-shard cost is paid once per matrix job, so the shard count drives both 
the
   number of runners *and* the duplicated setup minutes.
   
   This PR halves the shard count from **6 → 3**:
   
   - `matrix.parallel_id: [0, 1, 2]` (was `[0..5]`)
   - `PARALLELISM: 3` (kept in sync with the round-robin split in
     `scripts/cypress_run.py`, which buckets specs into `PARALLELISM` groups and
     runs the group matching `parallel_id` — the two values **must** match)
   
   It also smoke-tests the push-only `/app/prefix` variant on a **single shard**
   (via a `matrix.exclude`) rather than the full matrix. That variant exists to
   catch URL-prefix routing regressions before a release, not to re-run the 
entire
   suite under a prefix.
   
   **Net effect on job counts:**
   | event | before | after |
   |-------|--------|-------|
   | pull_request | 6 Cypress jobs | **3** |
   | push (master/release) | 12 Cypress jobs | **4** (3× `""` + 1 smoke 
`/app/prefix`) |
   
   Fewer, slightly longer shards trade a small amount of wall-clock for a large
   reduction in total runner minutes and duplicated setup.
   
   ### TESTING INSTRUCTIONS
   
   CI-only change. Verify on this PR that exactly **3** `cypress-matrix` jobs 
run
   (app_root `""`), all green. The `/app/prefix` smoke shard only appears on 
`push`
   events to `master`/release branches.
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue:
   - [ ] Changes UI
   - [ ] Includes DB Migration
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to