-
Notifications
You must be signed in to change notification settings - Fork 144
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
add git manifest to facilitate debug #323
Comments
Thanks @ananos, I agree with how useful something like this is. Although I would extend it by printing the version on both the tender and bindings side, as they have to match in version (not always, but ideally). |
Thanks for this idea, I really like it. I have some additional thoughts on this:
The output I have in mind is something like: I agree with @ricarkol that both the tender and the bindings site should report their versions individually (and the bindings should expose this information via API so a unikernel can retrieve this information and report it in a structured way). |
This is already done in
+1 on this output format. I also agree that both bindings and the tender should report their version. Also, as an implementation detail, the version should go into a
What do you imagine this information to be used for by the unikernel? Also, when you say "structured way", what do you have in mind? |
I dump the used (OCaml) packages and version numbers on startup of a unikernel via syslog. I'd like to add the bindings version number there as well. But re-thinking this could as well be the opam version of solo5-bindings-YYY.
The API I had in mind would return a string. As a user of that API I intend to include it in a (structured, RFC 5424) syslog message. But as mentioned above, there's no need for that API, I can just use the opam version number. |
Ok. A |
totally agree -- we can sketch something soonish and submit a wip pull request. Just one note.
Can you guys please clarify the above because I'm clearly missing something fundamental. In which case the bindings and the tender can be of a different version? |
At the moment, they can't. Or at least it's not supported and generally not expected to work. So, the motivation for adding --version to the tender is the same, ensure that when debugging you can be sure that you're using the matching tender with your bindings. |
perfect, OK, we can start working on that and follow up with the proposed approach. |
It would be nice if we could add some kind of manifest for the commit hash, and print it out on solo5's preamble.
This came up while working on the aarch64 port of rumprun/solo5. We could add that on rumprun [nabla-containers/rumprun/issues/17] without having to touch solo5, but I suspect that would be potentially useful for other unikernel/port attempts, so maybe we could split it and add the current commit on each one of the layers.
What we had in mind is something along the lines of the following rough patch (for hvt & spt).
Please let us know your thoughts!
thanks!
The text was updated successfully, but these errors were encountered: