Skip to content

[Backport release-25.11] {workflows/eval,ci/github-script}: check for mass and NixOS test rebuilds targeting master/release-* branches - #481734

Merged
mdaniels5757 merged 4 commits into
release-25.11from
backport-481205-to-release-25.11
Jan 19, 2026
Merged

mdaniels5757 merged 4 commits into
release-25.11from
backport-481205-to-release-25.11

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Bot-based backport to release-25.11, triggered by a label in #481205.

Before merging, ensure that this backport is acceptable for the release.

Even as a non-committer, if you find that it is not acceptable, leave a comment.

Tip

If you maintain all packages touched by this pull request, and they are all located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this PR using the nixpkgs-merge-bot.

Dismissals are done automatically by commits.js, even for reviews from
check-target-branches.js. This is not desirable.

The solution is
(1) do not decline to post a review because it was already dismissed
    (because it may have not been dismissed by a human, and circumstances may
    have changed), and
(2) reword the auto-dismissal message to not imply that whatever
    problems were present are fixed.

(cherry picked from commit e05e984)
…master/release-* branches

(cherry picked from commit a4d5f8a)
@philiptaron
philiptaron enabled auto-merge January 19, 2026 19:22
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 19, 2026
@philiptaron

Copy link
Copy Markdown
Contributor

@mdaniels5757 does this also indicate a need for a quick fix? What's missing here?

@nixpkgs-ci
nixpkgs-ci Bot requested a review from mdaniels5757 January 19, 2026 20:31
@mdaniels5757

mdaniels5757 commented Jan 19, 2026 •

Copy link
Copy Markdown
Member

This is very strange: somehow pull_request_target is running the workflow files from either the head branch or master, not the base branch. Let me try re-running CI? If that doesn't work, I think it should be safe to bypass the queue/required status checks: the error is that the stuff on the target branch isn't yet present (because this PR hasn't been merged).

auto-merge was automatically disabled January 19, 2026 20:55

Pull request was closed

@mdaniels5757 mdaniels5757 reopened this Jan 19, 2026
@mdaniels5757

mdaniels5757 commented Jan 19, 2026 •

Copy link
Copy Markdown
Member

@philiptaron Looks like (1) rerunning didn't fix, and (2) other PRs against release-25.11 are failing with the same problem (#481754, #481755).

I suggest bypassing the queue on this PR. I have no clue why pull_request_target.yml would use the eval workflow from master: GitHub documents that, for the syntax used in .github/workflows/pull-request-target.yml:L81, the "called workflow is from the same commit as the caller workflow", and the caller workflow should be on release-25.11's tip (that's the whole point of pull_request_target!).

@mdaniels5757

Copy link
Copy Markdown
Member

I have to log off in about half an hour. In the interest of ensuring that things are working by the time I have to go, I will merge this now, and then monitor for regressions.

@mdaniels5757
mdaniels5757 merged commit ace813c into release-25.11 Jan 19, 2026
2 of 4 checks passed
@mdaniels5757
mdaniels5757 deleted the backport-481205-to-release-25.11 branch January 19, 2026 21:14
@mdaniels5757

Copy link
Copy Markdown
Member

I re-ran CI on both PRs linked above, along with the 3 other affected PRs (#481746, #481747, #380691). The eval/compare job now succeeds in all of them.

@MattSturgeon

MattSturgeon commented Jan 20, 2026 •

Copy link
Copy Markdown
Contributor

somehow pull_request_target is running the workflow files from either the head branch or master, not the base branch.

I've not looked closely enough to see if it's relevant in this case, but some jobs checkout CI files from the untrusted PR merge commit. Therefore, even if the target branch's trusted workflow files are used by pull_request_target, this doesn't mean all CI files will come from the target branch.

I suggest bypassing the queue on this PR.

Sometimes this is expected and necessary when merging CI changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants