Skip to content

workflows/build: build all the basics in a single workflow#416368

Merged
Mic92 merged 2 commits intoNixOS:masterfrom
wolfgangwalther:ci-build
Jun 13, 2025
Merged

workflows/build: build all the basics in a single workflow#416368
Mic92 merged 2 commits intoNixOS:masterfrom
wolfgangwalther:ci-build

Conversation

@wolfgangwalther
Copy link
Contributor

This new workflow builds both manuals, the shell and the lib tests all in a matrix of four jobs. This allows re-using the shared checkout and the pinned nixpkgs download and saves time in the most likely cache: No changes, just download from cache. Each step checks the cancelled condition, which causes it to run even if the previous steps failed. This way we get a full picture even if the first step fails immediately.

This could later be optimized to build more in parallel as well, but we'll first need to clear the conditions on building the manuals on the master branch only. (#416241)

Split off from #415006 to make review and merge in steps possible. See that PR for more rationale.

Things done


Add a 👍 reaction to pull requests you find important.

To enable *required status checks / workflows* in the future, we'd like
to run all workflows unconditionally. Since those workflows are already
using cachix, the additional runs will be very cheap. Yes, we'll run
additional jobs, but that will be temporary only, see next commits.

The immediate upside is, that we're not going to accidentally miss some
of the paths that would cause rebuilds as we did in the past.
This new workflow builds both manuals, the shell and the lib tests all
in a matrix of four jobs. This allows re-using the shared checkout and
the pinned nixpkgs download and saves time in the most likely cache: No
changes, just download from cache. Each step checks the cancelled
condition, which causes it to run even if the previous steps failed.
This way we get a full picture even if the first step fails immediately.

This could later be optimized to build more in parallel as well, but
we'll first need to clear the conditions on building the manuals on the
master branch only.

This reduces the number of jobs from up to 8 to 4 for this part.
@github-actions github-actions bot added 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 backport release-24.11 labels Jun 13, 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 Jun 13, 2025
@Mic92 Mic92 merged commit 088a69e into NixOS:master Jun 13, 2025
15 of 18 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 13, 2025

Backport failed for release-24.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-24.11
git worktree add -d .worktree/backport-416368-to-release-24.11 origin/release-24.11
cd .worktree/backport-416368-to-release-24.11
git switch --create backport-416368-to-release-24.11
git cherry-pick -x 540fd4e30f7d3de2ee908febff560af23bd800ca cd82aa54f525559f157360c3432d923bae3798a8

@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 13, 2025

Backport failed for release-25.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-25.05
git worktree add -d .worktree/backport-416368-to-release-25.05 origin/release-25.05
cd .worktree/backport-416368-to-release-25.05
git switch --create backport-416368-to-release-25.05
git cherry-pick -x 540fd4e30f7d3de2ee908febff560af23bd800ca cd82aa54f525559f157360c3432d923bae3798a8

@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 13, 2025

Successfully created backport PR for release-24.11:

@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 13, 2025

Successfully created backport PR for release-25.05:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 13, 2025
@wolfgangwalther wolfgangwalther deleted the ci-build branch June 13, 2025 11:22
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 8.has: port to stable This PR already has a backport to the stable release. 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.

2 participants