fix(ci): fix backport auto-label and skip fix(ci) from backport - #6970
Merged
Yicong-Huang merged 1 commit intoJul 28, 2026
Merged
Conversation
The Backport Auto Label workflow built a second Octokit with
`require("@actions/github").getOctokit(BOT_TOKEN)`, but github-script's
patched `require` resolves modules from the checked-out workspace, which
has no such package — so every run aborted with
`Cannot find module '@actions/github'`.
Split the single github-script step into two, each with its own natural
`github-token`, so no second Octokit is constructed in-script:
- Label (PAT): all reads and label writes, so a `labeled` event still
retriggers the backport pre-merge check; hands its decisions to the
next step via a JSON step output.
- Report (GITHUB_TOKEN): requests reviewers and upserts the report
comment as github-actions[bot], so neither retriggers a
comment-/review-driven workflow.
Also skip `fix(ci):` PRs: CI-only fixes never land on a release branch,
so they are treated like non-fix titles and left unlabeled.
Closes apache#6969
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
Automated Reviewer SuggestionsBased on the
|
aglinxinyuan
approved these changes
Jul 28, 2026
Yicong-Huang
enabled auto-merge
July 28, 2026 06:58
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6970 +/- ##
============================================
- Coverage 78.97% 78.96% -0.01%
Complexity 3783 3783
============================================
Files 1160 1160
Lines 46105 46105
Branches 5115 5115
============================================
- Hits 36413 36409 -4
- Misses 8068 8072 +4
Partials 1624 1624
☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
✅ No material benchmark regressions detected🟢 4 better · 🔴 0 worse · ⚪ 11 noise (<±5%) · 0 without baseline
Baseline detailsLatest main
Raw CSVconfig_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,467.13,200,128000,428,0.261,23256.97,30470.44,30470.44
1,100,10,64,20,2101.24,2000,1280000,952,0.581,103554.65,123366.96,123366.96
2,1000,10,64,20,18184.61,20000,12800000,1100,0.671,913228.26,962155.95,962155.95 |
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
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.
What changes were proposed in this PR?
The Backport Auto Label workflow crashed on every PR into
mainwithCannot find module '@actions/github': it built a second Octokit viarequire("@actions/github"), but github-script'srequireresolves from the checked-out workspace, which has no such package. Regressed in #6962.Instead of github-script's
__original_require__escape hatch, this splits the single step into two, each with its owngithub-token, so no second Octokit is built in-script:labeledevent still retriggers the backport pre-merge check.github-actions[bot].Also skips
fix(ci):PRs — CI-only fixes are never backported. Behavior is otherwise unchanged.Any related issues, documentation, discussions?
Closes #6969
How was this PR tested?
node --checkon both script bodies and a YAML parse of the workflow.pull_request_targetruns the base-branch (still-broken) workflow.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.8)