ci: refactor Cypress sharding due to cloud limits - #20119
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughCypress configuration now assigns specifications to duration-balanced shards. Internal and external workflows identify Cypress outcomes, collect conditional diagnostics, upload expanded failure logs, and always stop LocalTest. Timing metadata records updated specification durations. ChangesCypress workflows
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to The current change has no actionable merge-blocking risk identified; it is merge-ready after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant CypressConfig
participant configureCypressShard
participant Cypress
participant LocalTestAction
GitHubActions->>CypressConfig: Set shard total and number
CypressConfig->>configureCypressShard: Pass config, spec root, timings file, and shard values
configureCypressShard->>Cypress: Set selected shard specPattern
Cypress->>GitHubActions: Report Cypress step outcome
GitHubActions->>LocalTestAction: Stop LocalTest and request diagnostics on failure
LocalTestAction->>GitHubActions: Write diagnostic logs and complete shutdown
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
92779de to
08a35f4
Compare
08a35f4 to
8ac0d23
Compare
Description
For a good while we've been running into Cypress Cloud limits. Altinn architectural principles are based on open source. Long term we should migrate to Playwright, for now this seemed like a worthwhile alternative to explore.
Verification
Summary by CodeRabbit
Tests
Bug Fixes