Conversation
…ect-archive) Agent-Logs-Url: https://github.com/SourceOS-Linux/sourceos-devtools/sessions/869cea59-b85d-44d6-997e-233335b9e3ae Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add NLBoot release artifact inspection for devtools
feat: add NLBoot release archive inspection (sourceosctl release inspect-archive)
May 1, 2026
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.
Devtools lacked any way to inspect a local NLBoot release archive before operators attempt installation. This adds a read-only
release inspect-archivecommand that validates presence of all required NLBoot release artifacts in an unpacked directory.Changes
New command —
sourceosctl release inspect-archive <path>checks a directory for the five required files (nlboot-client,Cargo.lock,cargo-metadata.json,sbom.spdx.json,release-manifest.json), prints per-fileok/MISSINGstatus, exits 1 with an explicit list of missing files on failure.CLI wiring —
inspect-archiveregistered as a subcommand underreleaseincli.py.Fixtures
fixtures/nlboot_release_valid/— all five required stub files; passes inspection.fixtures/nlboot_release_invalid/— onlynlboot-client+Cargo.lock; fails with a clear error naming the three missing files.Tests —
TestReleaseArchive(6 cases): valid dir, invalid dir, missing dir, file-not-directory, and both viamain().README — commands table and running-from-repo examples updated.
Example
No host mutation, no network access, no install behavior introduced.