-
Notifications
You must be signed in to change notification settings - Fork 97
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
Ensure cargo-kani setup is idempotent #1193
Conversation
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.
Needs a formatting fix, but otherwise looks good.
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.
The first docker command in this group also contains a double whitespace. Can you please correct that too?
@@ -107,6 +107,7 @@ jobs: | |||
docker run -w /tmp/kani/tests/cargo-kani/simple-lib kani-latest cargo kani | |||
docker run -w /tmp/kani/tests/cargo-kani/simple-visualize kani-latest cargo kani | |||
docker run -w /tmp/kani/tests/cargo-kani/build-rs-works kani-latest cargo kani | |||
docker run kani-latest cargo-kani setup --use-local-bundle ./kani-latest-x86_64-unknown-linux-gnu.tar.gz |
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.
docker run kani-latest cargo-kani setup --use-local-bundle ./kani-latest-x86_64-unknown-linux-gnu.tar.gz | |
docker run kani-latest cargo-kani setup --use-local-bundle ./kani-latest-x86_64-unknown-linux-gnu.tar.gz |
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.
They all do, I was trying to keep the "command run in the container" more separate.
Description of changes:
Quick fixes for lack of idempotency in
cargo-kani setup
Resolved issues:
Resolves #1156
Call-outs:
ln -s
--use-local-bundle
code. I changed this to directly extract the bundle to the correct location in the first place, making its effective behavior more like the download case.canonicalize
can fail if the file doesn't exist. Print the file before canonicalizing.Testing:
How is this change tested? A re-install test added to the release bundle tests
Is this a refactor change? no
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.