Repository navigation
feat: append builder info to detect builds made with uncommitted changes in the builder #666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0379597
feat: record git status.
sayakpaul a6fa638
up
sayakpaul b638689
Merge branch 'main' into dirty
sayakpaul cd94930
docs: regenerate builder-cli.md for create-pyproject provenance flags
sayakpaul 27a2009
nix: format gen-flake-outputs.nix with nixfmt
sayakpaul b6e800e
formatting
sayakpaul 2f18556
Merge branch 'main' into dirty
sayakpaul 7c1176e
resolve conflicts.
sayakpaul d497ce9
Fix build_info wiring dropped during merge conflict resolution
sayakpaul e52cdc2
Scope PR to metadata capture only; defer dirty-build warnings
sayakpaul 56fba60
keep op identifier atomic.
sayakpaul 0c2b0ea
burn
sayakpaul 9b6705c
use crates
sayakpaul 2662a65
GitHash.
sayakpaul a58e16f
GitHash into KernelBuilderInfo.
sayakpaul 2eb585e
KernelBuilderVersion
sayakpaul 83b1c10
use provenance in place of buildinfo.
sayakpaul d40ad4b
make provenance args atomic.
sayakpaul f5ab629
pay attention to defaults.
sayakpaul cdf7710
put abstractions in the right place.
sayakpaul ebfedf0
document create-pyproject ping pong
sayakpaul 26a5229
Simplify flake-provenance.nix
danieldk 3463a54
Do not set bogus provenance fields when the builder provenance is null
danieldk 91b7290
Avoid overlay and pass through provenance in a more focused way
danieldk c97b27d
Merge branch 'main' into dirty
sayakpaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| fn main() { | ||
| minijinja_embed::embed_templates!("src/pyproject/templates"); | ||
| built::write_built_file().expect("Failed to acquire build-time information"); | ||
| } |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can lead to incorrect metadata in case someone generates
pyproject.tomland then adds more commits. So doing this from CMake (and then giving the kernel build sandbox access to git files) seems like the way to do it. For the Nix build (since we probably do not want to copy all the git objects to the sandbox), we could pass the SHA to CMake. Not sure how important this is though.This is currently also an issue for the sha hash we use in the ops name. We are generating it when making the project files, but it should probably be done inside CMake (but would better be a separate PR to avoid PRs becoming too big).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will table it for later as mentioned.
We go with our approach and document the bad practice of running
create-pyprojectand committing after that.