Skip to content
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

git-mirage: avoid failwith, use exit 64 (argument error) #641

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Jun 10, 2024

The issue I observed was a unikernel that restarted all the time, but its argument had an issue "wrong padding" was the output, but while there was a backtrace, there was no useful information. I tracked it back that git-mirage-ssh got a ssh private key where the padding was bad.

So, this PR does (a) prefix the output with slightly more information and (b) returns exit code 64 (as defined in Mirage_runtime.argument_error) -- this is crucial since albatross then won't restart such a unikernel (that will not be able to succeed a startup, since the error will persist until the command line argument is changed).

@dinosaure dinosaure merged commit 44eaeca into mirage:main Jun 11, 2024
1 check was pending
@dinosaure
Copy link
Member

Thanks!

dinosaure added a commit to dinosaure/opam-repository that referenced this pull request Jun 11, 2024
CHANGES:

- Fix the compilation of `git-unix` with `mimic-happy-eyeballs.0.0.8` (@dinosaure, mirage/ocaml-git#642)
- Print out errors when we got an error on unikernels (@hannesm, mirage/ocaml-git#641)
@hannesm hannesm deleted the err branch June 11, 2024 08:04
avsm pushed a commit to avsm/opam-repository that referenced this pull request Sep 5, 2024
CHANGES:

- Fix the compilation of `git-unix` with `mimic-happy-eyeballs.0.0.8` (@dinosaure, mirage/ocaml-git#642)
- Print out errors when we got an error on unikernels (@hannesm, mirage/ocaml-git#641)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants