Align ACL package manifests with Image Customizer - #77
Open
Vince Perri (vinceaperri) wants to merge 6 commits into
Open
Vince Perri (vinceaperri) wants to merge 6 commits into
Vince Perri (vinceaperri) wants to merge 6 commits into
Conversation
Vince Perri (vinceaperri)
deployed
to
development
September 18, 2026 20:17 — with
GitHub Actions
Active
Copilot started reviewing on behalf of
Vince Perri (vinceaperri)
September 18, 2026 20:17
View session
There was a problem hiding this comment.
🟡 Changes recommended
The critical SPDX enum issue remains unresolved.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Aligns ACL RPM SPDX manifests with Image Customizer by consuming vendor-bearing container-manifest-2 listings while preserving published package lists.
Changes:
- Updates image and sysext manifest generation and naming.
- Aligns SPDX fields, parsing, suppliers, epochs, and deterministic JSON output.
- Refreshes fixtures and removes NTIA supplier validation.
File summaries
| File | Reviewed changes and final comments |
|---|---|
build_sysext |
Uses vendor-bearing sysext manifest input. Nit (1 vote): Change “Fed” to “Feed” in the comment. |
build_library/rpm/tests/validate_golden_manifest.sh |
Retains SPDX validation. |
build_library/rpm/tests/testdata/tdnf-installed.txt |
Removes obsolete fixture. |
build_library/rpm/tests/testdata/nevra-packages.txt |
Removes obsolete fixture. |
build_library/rpm/tests/testdata/expected-manifest.spdx.json |
Refreshes expected manifest output. |
build_library/rpm/tests/testdata/container-manifest-2-packages.txt |
Adds container-manifest-2 fixture data. |
build_library/rpm/tests/test_generate_package_manifest.sh |
Updates generator tests for the new input format. |
build_library/rpm/tests/requirements.txt |
Removes the NTIA validator dependency. |
build_library/rpm/generate_package_manifest.py |
Adds manifest parsing and supplier metadata. Critical (3 votes): Use SPDX’s PACKAGE-MANAGER, not PACKAGE_MANAGER, for referenceCategory. |
build_library/rpm/build_image_util.sh |
Generates image manifest input listings from RPM metadata. |
build_library/reports_util.sh |
Updates manifest naming and input configuration. |
build_library/build_image_util.sh |
Cleans temporary manifest data. |
Review details
Suppressed comments (1)
build_sysext:373
- This new comment uses the past tense “Fed” where the surrounding sentence is an instruction to the generator; use “Feed” for grammatical consistency.
# Fed the container-manifest-2 diff rather than ${SYSEXTNAME}_packages.txt:
- Files reviewed: 12/12 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Vince Perri (vinceaperri)
deployed
to
development
September 18, 2026 21:22 — with
GitHub Actions
Active
Copilot started reviewing on behalf of
Vince Perri (vinceaperri)
September 18, 2026 21:23
View session
There was a problem hiding this comment.
🔵 Needs a closer look
Two moderate issues remain in RPM query failure handling and duplicate NEVRA processing.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
build_library/rpm/build_image_util.sh:1476
rpm_query_manifestis piped directly intosort, but the image build enables onlyset -e(notpipefail). Ifrpmreturns nonzero after emitting some rows,sortstill succeeds and the nonempty-file check passes, allowing an incomplete SPDX manifest to be published while the separately generated NEVRA list remains complete. Capture and check the query before sorting the file.
build_library/rpm/generate_package_manifest.py:301
- After detecting a duplicate NEVRA, this code only warns and still appends the package. The generated SPDX document will then contain the same package/purl twice, so duplicate input is not actually handled; skip the duplicate (or fail as before) after warning.
if package.nevra in seen:
print(
f"WARNING: {packages_file}:{number}: Duplicate installed package NEVRA [id={package.nevra}] [line={entry!r}]",
file=sys.stderr,
)
- Files reviewed: 12/12 changed files
- Comments generated: 0 new
- Review effort level: Lite
Vince Perri (vinceaperri)
deployed
to
development
September 21, 2026 16:40 — with
GitHub Actions
Active
Copilot started reviewing on behalf of
Vince Perri (vinceaperri)
September 21, 2026 16:40
View session
Vince Perri (vinceaperri)
deployed
to
development
September 21, 2026 16:43 — with
GitHub Actions
Active
Copilot started reviewing on behalf of
Vince Perri (vinceaperri)
September 21, 2026 16:46
View session
Vince Perri (vinceaperri)
force-pushed
the
user/vinceaperri/ic-package-manifest
branch
from
September 21, 2026 16:46
f3580b0 to
bd3e124
Compare
Vince Perri (vinceaperri)
deployed
to
development
September 21, 2026 16:46 — with
GitHub Actions
Active
Copilot started reviewing on behalf of
Vince Perri (vinceaperri)
September 21, 2026 16:50
View session
Read container-manifest-2 listings for image and sysext manifests so package suppliers come from RPM vendor metadata. Use azurecontainerlinux for the image manifest name while preserving the published NEVRA package lists. Align SPDX fields, epoch handling, package parsing, and deterministic JSON output with Image Customizer. Update fixtures and retain SPDX 2.2 validation while removing the supplier-completeness check.
Change Fed to Feed in the container-manifest-2 input comment.
The generator's source digest seeds documentNamespace, so refactoring it moves the UUID. expected-manifest.spdx.json was left at the old value and test_generate_package_manifest.sh failed.
Vince Perri (vinceaperri)
force-pushed
the
user/vinceaperri/ic-package-manifest
branch
from
September 21, 2026 20:17
bd3e124 to
bf05f68
Compare
Vince Perri (vinceaperri)
deployed
to
development
September 21, 2026 20:17 — with
GitHub Actions
Active
Vince Perri (vinceaperri)
deployed
to
development
September 21, 2026 21:25 — with
GitHub Actions
Active
Copilot started reviewing on behalf of
Vince Perri (vinceaperri)
September 21, 2026 21:25
View session
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 updates Azure Container Linux's package manifests to match the format used by Image Customizer in microsoft/azure-linux-image-tools#900.
Image and sysext builds now pass
container-manifest-2listings to the generator so each package's supplier comes from the RPM vendor. The published NEVRA lists stay as they are (they don't carry the vendor). Image manifests are namedazurecontainerlinux. Sysexts keep their own names.Package references now use
PACKAGE_MANAGER, anddocumentNamespacestarts withhttps://spdx.org/spdxdocs. I also updated epoch handling, package parsing, and deterministic JSON output to match Image Customizer. The fixtures are updated.SPDX 2.2 validation still runs. The supplier-completeness check is removed.
The golden-manifest comparison, repeat-run byte-identity check, and generated SPDX 2.2 validation passed with
build_library/rpm/tests/validate_golden_manifest.sh <workdir>.git diff --cached --checkpassed too. I haven't run an image build or kola tests.