checkpointBuildTools: mkCheckpointedBuild -> mkCheckpointBuild#279487
checkpointBuildTools: mkCheckpointedBuild -> mkCheckpointBuild#279487roberth merged 3 commits intoNixOS:masterfrom
Conversation
4b1bea7 to
285ac09
Compare
If the subshell approach does not work, we should keep the previous approach. |
|
@ofborg build tests.checkpoint-build Btw maybe that should become |
roberth
left a comment
There was a problem hiding this comment.
I have no opinion about the copying related change - as long as it works and that's "proven" by the tests.
The current solution is almost identical to the previous implementation, but did solve the issue raised by #167670 (comment). I think it would be good to keep it this way. |
All other functions are in the form of `*{c,C}heckpointBuild*`, so we
deprecate the `mkCheckpointedBuild` function in favor of `mkCheckpointBuild`.
Also address some inconsistencies in the docs: some `buildOutput` should
actually be `incrementalBuildArtifacts`.
4cfec3b to
f73f15f
Compare
The test rename is implemented! Waiting for ofborg, I think it knows how to find the new test! Update: no it does not, ofborg manually summoned. |
|
@ofborg build tests.checkpointBuildTools |
Add some minor improvements of the package, and use temp files for the source difference patch, such that it is more reliable. This follows from the suggestions of @infinisil. Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
f73f15f to
9ebdc06
Compare
... following suggestions from @phip1611 and @infinisil.
9ebdc06 to
d7253be
Compare
|
Update: CI all green now! |
|
I believe this is ready to be merged now! If there is anything else that you would like me to improve, please don't hesitate to ping me at any time! |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-23.11
git worktree add -d .worktree/backport-279487-to-release-23.11 origin/release-23.11
cd .worktree/backport-279487-to-release-23.11
git switch --create backport-279487-to-release-23.11
git cherry-pick -x df62c3c87f35cd50d6ee20ea92900bb03ad827c9 5f3aad00ffc0a769a1ccc5b3b521221aa5e5d809 d7253bea6d7366987acce31c2c2355ffbdf389b4 |
1 similar comment
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-23.11
git worktree add -d .worktree/backport-279487-to-release-23.11 origin/release-23.11
cd .worktree/backport-279487-to-release-23.11
git switch --create backport-279487-to-release-23.11
git cherry-pick -x df62c3c87f35cd50d6ee20ea92900bb03ad827c9 5f3aad00ffc0a769a1ccc5b3b521221aa5e5d809 d7253bea6d7366987acce31c2c2355ffbdf389b4 |
|
Thank you @bryango! |
| }); | ||
|
|
||
| mkCheckpointedBuild = lib.warn | ||
| "`mkCheckpointedBuild` is deprecated, use `mkCheckpointBuild` instead!" |
There was a problem hiding this comment.
[grammar] Remember to port this:
From a3b90e768b8d43e0efb9cc227153d55609c65999 Mon Sep 17 00:00:00 2001
From: bryango <bryango@users.noreply.github.com>
Date: Thu, 11 Jan 2024 22:52:52 +0800
Subject: [PATCH] checkpointBuildTools.mkCheckpointedBuild: update deprecation
warning
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
---
pkgs/build-support/checkpoint-build.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgs/build-support/checkpoint-build.nix b/pkgs/build-support/checkpoint-build.nix
index c9bee45005a13a..cc70eddd7ba303 100644
--- a/pkgs/build-support/checkpoint-build.nix
+++ b/pkgs/build-support/checkpoint-build.nix
@@ -85,6 +85,6 @@ rec {
});
mkCheckpointedBuild = lib.warn
- "`mkCheckpointedBuild` is deprecated, use `mkCheckpointBuild` instead!"
+ "`mkCheckpointedBuild` is deprecated; use `mkCheckpointBuild` instead."
mkCheckpointBuild;
}... in some future revision.
Description of changes
This PR follows from #167670 (comment) @messemar.
All other functions in
checkpointBuildToolsare in the form of*CheckpointBuild*without theed, so we trade themkCheckpointedBuildname in favor ofmkCheckpointBuildfor a uniformed look (and linkmkCheckpointedBuildtomkCheckpointBuildwith alib.warn "deprecated",although currently there is no such usage yet in nixpkgs).Also, apply suggestions from @phip1611 and @infinisil that did not make into the last PR.
Note: #167670 (comment) actually does not work: the
sourceDifference.patchfile gets deleted byrm -r *in the subshell (yeah shell is weird and surprising, as usual!). Instead, we usemktempto create a temporary file to store the patch. The downside of this is that the patch size is limited by the size of/tmp.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.