Skip to content

Fix CI workflow triggering: replace deprecated cancel-previous-runs with native concurrency groups#2002

Merged
nicolasnoble merged 1 commit intomainfrom
copilot/fix-tests-not-starting-2001
Apr 14, 2026
Merged

Fix CI workflow triggering: replace deprecated cancel-previous-runs with native concurrency groups#2002
nicolasnoble merged 1 commit intomainfrom
copilot/fix-tests-not-starting-2001

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

Root Cause Analysis: Why PR #2001's Tests Didn't Start

PR #2001 ("Fix timer accuracy") has 6 commits on the fix-timer-accuracy branch. Linux CI ran successfully for 5 of them, including several that failed tests (Timers.Interpreter and Timers.Dynarec). The latest commit 1a963643a9 (an amended/force-pushed commit from a6398599) never triggered the GitHub Actions workflows, even though the Azure DevOps Windows builds did trigger correctly.

The root cause is a GitHub transient webhook delivery failure: the pull_request synchronize event was not delivered for this specific force push. This was compounded by the use of n1hility/cancel-previous-runs@v2, which runs on deprecated Node.js 20 (flagged with deprecation warnings in CI logs), making it a reliability risk going forward.

Changes

To properly enable triggering CI for this and future similar situations:

  • Replace n1hility/cancel-previous-runs@v2 with native GitHub concurrency: groups across all 10 CI workflow files. This is the modern built-in equivalent (no third-party action, no Node.js dependency) and is more reliable.
  • Add workflow_dispatch: trigger to linux-build.yml and linux-asan.yml — the two primary test workflows — so maintainers can manually re-trigger them from the Actions UI when GitHub misses a webhook event.
  • Update actions/checkout@v1/v2/v3v4 across all workflows to eliminate Node.js 20 deprecation warnings.

How to Re-trigger PR #2001's Tests

Once this PR is merged to main, a maintainer can use the "Run workflow" button in the Linux CI and Linux CI asan Actions pages to manually dispatch a run. Alternatively, the PR author can push a trivial commit to re-trigger CI automatically.

…ncy groups; add workflow_dispatch to test workflows; update checkout actions to v4

Agent-Logs-Url: https://github.com/grumpycoders/pcsx-redux/sessions/5796c515-8274-4fb0-8fc4-4e0ca6a3ac07

Co-authored-by: nicolasnoble <7281574+nicolasnoble@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 9.63%. Comparing base (4152915) to head (b49b2cf).
⚠️ Report is 35 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2002      +/-   ##
==========================================
+ Coverage    9.11%    9.63%   +0.51%     
==========================================
  Files         470      506      +36     
  Lines      147911   149164    +1253     
==========================================
+ Hits        13482    14370     +888     
- Misses     134429   134794     +365     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nicolasnoble nicolasnoble merged commit 3a856d0 into main Apr 14, 2026
24 checks passed
@nicolasnoble nicolasnoble deleted the copilot/fix-tests-not-starting-2001 branch April 14, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants