Repository navigation
CI: make code path notification rules match, and read every changed file - #6971
Merged
patmmccann merged 3 commits intoNov 23, 2026
Merged
patmmccann merged 3 commits into
patmmccann merged 3 commits into
Conversation
…e Qwen smoke test - code-path-changes.yml runs on workflow_run after a new unprivileged "PR info" workflow, from the default branch. The PR number from the artifact is checked against the triggering commit by a trusted-pr action. Secrets are only in the notification step's env; dependencies are pinned and installed outside the checkout; Node 24. - send-notification-on-change.js escapes PR file names in the email HTML and fails the run when an email can't be sent. - bounded-qwen-smoke.yml runs on pull_request, for same-repo branches only. Follows prebid/Prebid.js#16201. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rules in codepath-notification start with / (/dev-docs/bidders/rubicon), but the PR files API returns names without one (dev-docs/bidders/rubicon.md), so no rule ever matched. Test the rules against the file name with a leading /, so they match from the repository root. Also follow the files API's Link rel="next" header with per_page=100, like Prebid.js does, so PRs with more than 30 files are fully checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
👷 Deploy request for prebid-docs-preview pending review.Visit the deploys page to approve it
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
muuki88
approved these changes
Nov 22, 2026
Contributor
|
Can you resolve the merge conflicts? |
|
To use Codex here, create a Codex account and connect to github. |
Keep the current bounded Qwen review workflow from master and preserve the notification path matching and pagination changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #6969. Merge #6969 first: this branch is based on it, so the diff here also shows its commit until it merges. The only new commit is "CI: make code path notification rules match, and read every changed file".
Diagnosis
The rules in
.github/workflows/scripts/codepath-notificationare regexes that all start with/, for example/dev-docs/bidders/rubicon. The PR files API returns names without a leading slash, for exampledev-docs/bidders/rubicon.md. The script tests each rule against that name, so no rule has ever matched.Example: #6924 changed only
dev-docs/bidders/rubicon.md, which has a rule. Its run (41342348848) logged:#6926 (
dev-docs/bidders/kargo.md, run 41341722524) logged the same.The script also read only the first page of the files API (30 files).
Fix
/added, so a leading/in a rule means the repository root. Existing rules work unchanged, and so would rules written without the slash. Rules are still unanchored regexes, as in Prebid.js:/dev-docs/bidders/ixalso matchesix-server.md, and/dev-docs/bidders/msftmatchesmsftstaila.md. Both are those vendors' own pages. The header ofcodepath-notificationnow says this.Link: rel="next"header, withper_page=100, as Prebid.js'ssend-notification-on-change.jsdoes.Email grouping and sending are unchanged: one email per address, listing its matching files.
Testing
I ran the script in a
vmwithaxiosandnodemailerstubbed. The checks:/dev-docs/bidders/rubiconmatchesdev-docs/bidders/rubicon.md, and the second branch of/dev-docs/bidders/appnexus|/dev-docs/bidders/msftmatchesmsft.md. The script on CI: stop using pull_request_target for code path notifications and the Qwen smoke test #6969's branch fails this check.smartx.md,dev-docs/modules/rubiconAnalytics.md,assets/images/logos/rubicon-logo.pnganddev-docs/analytics/kargo.md.kargo.mdon page 2, the script requests page 2 and emails Kargo.Dry run on real PRs
I ran the new matcher on the complete file lists of all 220 PRs opened from 2026-09-21 to 2026-11-16 (8 weeks), with the rules on this branch. Nothing was sent.
"Runs" counts the notification runs for each PR. The workflow runs on every push (
opened,synchronize,reopened), and each run sends again.Email volume
There are 10 rules, so one run can email at most 10 addresses, even if a PR touches every bidder page. Prebid.js's version has no guard. I don't think this needs a limit on the number of contacts. The bigger source of repeat emails is re-sending on every push. If that becomes a problem, the workflow could notify only on
openedandreopened, or skip a PR that was already notified. I left this alone for you to decide.Note
Vendors listed in
codepath-notificationwill start receiving emails after this merges. At the rate above, that is a few emails a week.🤖 Generated with Claude Code