-
Notifications
You must be signed in to change notification settings - Fork 98
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
Interrupted first-time setup procedure cannot resume #1545
Comments
Thanks for the bug report. I cut a corner in this setup procedure, but also don't think I created a tracking issue for it, so this is now it. :) It's assuming if the directory exists, setup was completed successfully. Which, of course, isn't true. Workaround: Just running We should fix the "are things already setup?" check. Possibly as simple as creating a "success" marker file as the last step of setup, though I'm very open to other ideas. It happens every time |
Perhaps the "success" file should be tagged to the installed version/os/etc? |
Thanks for this!
How about doing all the jobs in other dir, and Line 36 in cf76024
And this doesn't need extra checks on invoking :D
The dir contains version number (e.g |
I like this idea, though I'm maybe slightly worried about how rustc might embed (absolute) paths into the kani libraries we build. There might be another solution to this problem though. It'd also have the advantage of perhaps unifying the two code paths we have there for unpacking the tarball: one for testing and one "for real." The less these diverge the better. |
Library like tempfile perhaps helps, or we can operate under
Do you mean this |
> Please ensure your PR description includes the following: > 1. A description of how your changes improve Kani. > 2. Some context on the problem you are solving. > 3. A list of issues that are resolved by this PR. > 4. If you had to perform any manual test, please describe them. > > **Make sure you remove this list from the final PR description.** By using the `tar` file as a lock mechanism, we can detect incomplete setups i.e when both `kani's` working directory and the tar file present before setup, we can simply use the local bundle to start setup again. Resolves #1545 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
I tried these commands:
Install kani with
cargo install kani-verifier
and runkani --help
then kill it with
Ctrl C
. And re-runkani --help
got:The content in
~/.kani
:$ ll ~/.kani/ total 1004K drwxr-xr-x 1 wayne wayne 0 Aug 18 22:59 kani-0.8.0 -rw-r--r-- 1 wayne wayne 1004K Aug 18 23:00 kani-0.8.0-x86_64-unknown-linux-gnu.tar.gz
After removing the content in
~/.kani
it goes normalwith Kani version:
v0.8.0
I expected to see this happen:
kani
can recognize the setup procedure is not finished and keep on setting things up.Logs with backtrace:
I guess this is because the tarball's download hasn't finished. Maybe verifying the checksum or downloading it to a temporary filename before finishing can solve this?
The text was updated successfully, but these errors were encountered: