Uh oh!
There was an error while loading. Please reload this page.
refactor: Phase 4.4 — absorb flaky-test-detection.yml into checks.yml - #2508
refactor: Phase 4.4 — absorb flaky-test-detection.yml into checks.yml#2508ashleyshaw with Copilot wants to merge 5 commits into
Conversation
Co-authored-by: ashleyshaw <1805352+ashleyshaw@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The new schedule/workflow_dispatch triggers will also run the existing lint/test/validate jobs unless they are additionally gated, which materially increases scheduled CI workload beyond the stated intent.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR consolidates flaky-test detection into the existing CI workflow by removing the standalone scheduled workflow and introducing a schedule-/manual-dispatch-only job inside checks.yml, aiming to reduce workflow sprawl while keeping the flaky-signal available.
Changes:
- Added
scheduleandworkflow_dispatchtriggers tochecks.yml. - Added a
flaky-detectionmatrix job (5 runs) gated toschedule/workflow_dispatch. - Deleted
.github/workflows/flaky-test-detection.ymlafter absorbing its logic.
File summaries
| File | Description |
|---|---|
.github/workflows/checks.yml | Adds schedule/dispatch triggers and a gated flaky-detection job within the unified CI workflow. |
.github/workflows/flaky-test-detection.yml | Removes the now-redundant standalone flaky-test detection workflow. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Uh oh!
There was an error while loading. Please reload this page.
| schedule: | ||
| - cron: "0 */12 * * 1-5" # Every 12 hours, Monday-Friday | ||
| workflow_dispatch: # Allow manual trigger for testing |
There was a problem hiding this comment.
Fixed — lint, test, validate, and all-checks jobs now have github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' in their if conditions, so only flaky-detection runs on scheduled and manual triggers.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Ash Shaw <ashley@lightspeedwp.agency>
…workflow_dispatch Co-authored-by: ashleyshaw <1805352+ashleyshaw@users.noreply.github.com>
Head branch was pushed to by a user without write access
|
🔍 Reviewer Summary for PR #2508CI Status: ❌ Recommendations
|
3 similar comments
🔍 Reviewer Summary for PR #2508CI Status: ❌ Recommendations
|
🔍 Reviewer Summary for PR #2508CI Status: ❌ Recommendations
|
🔍 Reviewer Summary for PR #2508CI Status: ❌ Recommendations
|
🚫 This PR description is missing required template content. Missing required section(s): Global DoD checklist Please update the PR body using one of the repository PR templates:
Empty placeholders, unchecked checklist boxes, and stub issue references do not count. |
flaky-test-detection.yml(42 lines) ran as a standalone scheduled workflow, adding unnecessary scheduling overhead. Absorbed intochecks.ymlas a schedule-gated job — 116 → 155 lines, well under the 400-line decision gate.Refactor Pull Request
Linked issues
Closes#1409
Summary
Absorbs
flaky-test-detection.ymlintochecks.ymlas aschedule/workflow_dispatch-gated job. Net: −1 workflow file. All test-related CI logic now centralised inchecks.yml.Safety Nets
Approach
schedule(0 */12 * * 1-5) andworkflow_dispatchtriggers tochecks.ymlflaky-detectionjob gated ongithub.event_name == 'schedule' || github.event_name == 'workflow_dispatch'with 5-run matrix and Mergify upload step — verbatim from deleted fileall-checkscomposite status job intentionally excludesflaky-detectionfromneeds(it's a quality signal, not a PR gate)flaky-test-detection.ymlflaky-test-detection.ymldeletedMetrics / Benchmarks (if applicable)
checks.ymlchecks.ymlVerification
Risk & Rollback
flaky-test-detection.ymlfrom git historyChangelog
Changed
flaky-test-detection.ymlintochecks.ymlas a schedule-gated job. (Relates to Phase 4.4: Absorb flaky-test-detection.yml into checks.yml #1409)Removed
flaky-test-detection.ymldeleted — logic absorbed intochecks.yml. (Relates to Phase 4.4: Absorb flaky-test-detection.yml into checks.yml #1409)Checklist (Global DoD / PR)