Skip to content

WEBDEV-8972: Run CI on PRs based on any branch - #88

Closed
jbuckner wants to merge 1 commit into
mainfrom
WEBDEV-8972-ci-runs-on-all-prs
Closed

WEBDEV-8972: Run CI on PRs based on any branch#88
jbuckner wants to merge 1 commit into
mainfrom
WEBDEV-8972-ci-runs-on-all-prs

Conversation

@jbuckner

Copy link
Copy Markdown
Collaborator

pull_request: branches: [main] filters on the PR's base branch, so any PR stacked on another PR's branch ran no tests at all. It only got deploy-preview, which has no filter. The tests did eventually run once GitHub retargeted the PR to main, but that's after review, so a reviewer in the middle of a stack saw a green PR that was never tested. Live example: PR #82 has no build job.

Dropping the filter from pull_request fixes it. Kept the push filter so post-merge runs stay on main only.

One correction to the ticket: CodeQL isn't affected. It's not a workflow in this repo, it's GitHub's managed Code Quality (dynamic/github-code-quality/codeql), which has no branch filter and does run on stacked PRs (see PR #82, where it passed).

https://webarchive.jira.com/browse/WEBDEV-8972

🤖 Generated with Claude Code

https://claude.ai/code/session_01CUM1e29MLyK3kBDiZYgERx

The pull_request branches filter matches the PR's base branch, so a PR
stacked on another PR's branch ran no tests until GitHub retargeted it to
main. A reviewer looking at the middle of a stack saw a green PR that was
never tested.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CUM1e29MLyK3kBDiZYgERx
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

🚀 View preview at
https://internetarchive.github.io/elements/pr/pr-88/

Built to branch ghpages at 2026-08-27 18:41 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.44%. Comparing base (8c054a6) to head (aaf7f52).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
+ Coverage   81.12%   81.44%   +0.32%     
==========================================
  Files          27       27              
  Lines         927      927              
  Branches      227      227              
==========================================
+ Hits          752      755       +3     
+ Misses        113      110       -3     
  Partials       62       62              

☔ View full report in Codecov by Harness.
📢 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.

@jbuckner

jbuckner commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #90, which is already merged to main as 1c7cc46.

The two changes are the same fix — drop the branches filter from pull_request so it stops matching the PR's base — and differ only in the wording of the comment above it. This one was open first and I didn't check before opening #90, which is my mistake, not a problem with this PR.

main has the fix, and all eight PRs in the WEBDEV-8962 stack now run build and pass. Closing this as redundant rather than churning main to swap one identical change for the other.

@jbuckner jbuckner closed this Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants