-
Notifications
You must be signed in to change notification settings - Fork 699
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
Preserve artifact cache unless stale #1918
Merged
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
a563e25
make pruning explicit
eagr f31d354
preserve cache unless stale
eagr 195bbce
barely working
eagr 99aa012
use ArtifactId::from_file_name()
eagr 17973ef
ignore non-unicode file names
eagr e81b456
generalize concat_const!()
eagr 851a77a
per advices
eagr a3b0fcf
break on IO error
eagr b323c28
make pruning sound
eagr a2808f8
log more events
eagr 0657d41
refactor
eagr 0384ae7
doc
eagr 4b1bb0a
Refactor indentation
mrcnski a8bcce4
refactor
eagr 50b7ccc
checksum poc
eagr b6c1a07
Revert "checksum poc"
eagr 2ad5262
redo checksum p1
eagr 3723806
p2
eagr e44c451
remove corrupted cache
eagr 6c19164
diversify results
eagr dad5285
fix tests
eagr 1ede201
fix pruning
eagr 2d51b52
fix message serialization
eagr 36a33e8
clean up
eagr 69f6a44
retire path_prefix()
eagr d3254f5
improve test
eagr f4d22fa
Merge branch 'master' into preserve-art
mrcnski 39448ff
Fix test
mrcnski 3a2c1cd
cargo fmt
mrcnski a02cb06
as per advices
eagr 53e4557
tag artifact with runtime version
eagr d4f3083
fix tests
eagr 9d2142e
Merge branch 'master' into preserve-art
mrcnski 931aae1
upstream build fn to substrate
eagr 5de4e8e
glitch
eagr a0b71c5
wrong attribution
eagr c85adfe
as per suggestions
eagr b897f1c
glitch
eagr 89ada31
prevent `cargo tree` from accessing network
eagr 868426a
glitch
eagr 652bec7
Merge branch 'master' into preserve-art
eagr 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
This file contains 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 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 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 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
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.
Should be
true
right? Could use a test for this case if we don't have one yet.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.
Oops! That's right. But this line of can only be reached when
These are all screened out at the call site, so I don't even know how to write a test that could fail because of this line lol.
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.
I guess
is_corrupt
can be extracted and unit-tested, but whatever, looks good already!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.
We should probably stick to testing the interfaces, this kind of tests often become maintenance liability (prone to change). 😉