umoci stat: add config and manifest info#624
Merged
Merged
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #624 +/- ##
==========================================
- Coverage 73.68% 72.29% -1.39%
==========================================
Files 69 69
Lines 5556 5808 +252
==========================================
+ Hits 4094 4199 +105
- Misses 1074 1172 +98
- Partials 388 437 +49
🚀 New features to boost your workflow:
|
cyphar
force-pushed
the
umoci-stat-upgrade
branch
4 times, most recently
from
September 18, 2025 07:07
3dbde7a to
50d00d2
Compare
We have to read the whole blob into memory anyway and some users might want to use the raw blob data rather than our re-parsed version (i.e., there may be JSON fields that get ignored when we parse them). Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
These tests only care about history entries, and if we add more output to umoci-stat (as we do in the next patches in this series) they will break. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Previously if someone added "\n" to one of the fields we printed it would screw up the table output, possibly confusing users. A much more preferable setup is to output %q-formatted strings, but only if formatting was necessary. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Most users probably want access to this information and previously there was no easy way of getting it from umoci. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This information is arguably a bit too "internal" but given that tools like [1] exist now, maybe just providing this information anyway could be useful. (Our tests would benefit from being able to pull out the digests of the configs and layers directly.) [1]: https://oci.dag.dev/ Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
cyphar
force-pushed
the
umoci-stat-upgrade
branch
from
September 18, 2025 07:42
50d00d2 to
f11b243
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is needed for #601's tests.
Signed-off-by: Aleksa Sarai cyphar@cyphar.com