Skip to content

[24.11]: workflows/labels: skip for staging-next / haskell-updates / python-updates#404107

Merged
wolfgangwalther merged 10 commits intoNixOS:release-24.11from
wolfgangwalther:ci-no-label-staging-next-backport
May 4, 2025
Merged

[24.11]: workflows/labels: skip for staging-next / haskell-updates / python-updates#404107
wolfgangwalther merged 10 commits intoNixOS:release-24.11from
wolfgangwalther:ci-no-label-staging-next-backport

Conversation

@wolfgangwalther
Copy link
Contributor

@wolfgangwalther wolfgangwalther commented May 4, 2025

Manual backport of #402332 and parts of #374921.

I did not backport the configuration of backport labels for CI PRs from #374921... because otherwise we'd end up with backport labels on the backport PRs as well. On the same vein, we'll need to remove those labels from release-25.05 after branch-off.

Things done


Add a 👍 reaction to pull requests you find important.

pbsds and others added 3 commits May 4, 2025 14:10
…dates

Labelling those PRs is more annoying then useful.

(cherry picked from commit 1909520)
This adds some labels related to the higher level workflows of
developing nixpkgs:
- "4.workflow: backport" can be used to filter everything targeting the
stable branches, both release-XX.YY or staging-XX.YY.
- "4.workflow: package set updates" can be used to filter the
haskell/python package set PRs. Can be combined with "6.topic: haskell"
or "6.topic: python".
- "4.workflow: staging" can be used to filter for all staging-next PRs,
both to master and release branches.

(cherry picked from commit 5ed0205)
@github-actions github-actions bot added 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions labels May 4, 2025
@github-actions github-actions 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 May 4, 2025
Introduced in NixOS#402332, but broken on all ends:
- pull_request needs to be event.pull_request
- pull_request.head is an object, not a string
- github.ref_protected is about the target branch, because this runs as
a pull_request_target event

Thus, we need to list the branches manually.

(cherry picked from commit e676235)
Because GitHub Actions doesn't like double quotes.

(cherry picked from commit 6cb93f2)
The backport job was previously triggered on any label activity, i.e.
when the backport label was already set and a new label added, the
backport would have been triggered again.

That's because github.event_name is actually "pull_request_target" in
this case, not "closed" or "labeled" (the event's types). Thus, this
part of the condition was always true.

This also means that the second part, the startsWith, was never
evaluated. It had its arguments flipped and would have always been
false.

This was introduced in NixOS#126825, but has never really worked as intended.

Resolves NixOS#199556

(cherry picked from commit b62d9a2)
This allows filtering for PRs with a backport label, but without the
"has: port to stable" label to find those which need to be manually
acted on.

Resolves NixOS#325359

(cherry picked from commit fa154d1)
(cherry picked from commit b6375b2)
Somehow, the was_successful output didn't work correctly. It's hard to
imagine that the created_pull_numbers output fails the same way,
because... when the backport action fails there **are no pull request
numbers**.

(cherry picked from commit 2480e35)
@wolfgangwalther
Copy link
Contributor Author

Also added the other 4 PRs that I had earlier today, which didn't get the backport label automatically due to the temporary brokenness of the labeler action.

(cherry picked from commit de670fa)
@wolfgangwalther wolfgangwalther merged commit 8e27393 into NixOS:release-24.11 May 4, 2025
23 of 27 checks passed
@wolfgangwalther wolfgangwalther deleted the ci-no-label-staging-next-backport branch May 4, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 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