Skip to content

SDK: generate packages list - #4412

Merged
t-lo merged 1 commit into
mainfrom
t-lo/generate-sdk-packages-list
Dec 1, 2026
Merged

t-lo merged 1 commit into
mainfrom
t-lo/generate-sdk-packages-list

Conversation

@t-lo

@t-lo t-lo commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

This PR was inspired by #4334, which implements this and many other improvements.

The PR at hand is provided to break down the abovementioned cumulative PR into easier digestable chunks.

This change adds a helper script list_sdk_packages for listing SDK package versions and source repositories (aka overlays). Optionally, board contents (from /build/...-usr) can be listed instead.

The new helper script is called by build_sdk_container_image after a build has finished to produce package contents files for the SDK root and amd64 and arm64 boards, respectively. The contents files follow the same "..._packages.txt" format used by the OS image and sysexts.

Lastly, ci-automation/sdk_container.sh has been extended to sign and upload the package lists to the build cache server.

Publishing the lists with releases is left for a follow-up PR to implement.

@t-lo
t-lo requested a review from a team as a code owner December 1, 2026 13:47
Copilot AI balanced review requested due to automatic review settings December 1, 2026 13:47

This comment was marked as outdated.

@t-lo
t-lo force-pushed the t-lo/generate-sdk-packages-list branch from 4c9089f to 87526a9 Compare December 1, 2026 14:05
Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:05

This comment was marked as outdated.

@chewi chewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a couple of tweaks.

Bear in mind that once the new "cycle break" stuff goes in, the board roots will only have baselayout plus the TOOLCHAIN_PKGS in a fresh SDK.

Comment thread build_sdk_container_image Resolved
Comment thread ci-automation/sdk_container.sh Resolved
Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:42
@t-lo
t-lo force-pushed the t-lo/generate-sdk-packages-list branch from 26e7cc5 to 944ee5c Compare December 1, 2026 14:44
@t-lo
t-lo requested a review from chewi December 1, 2026 14:44
@t-lo
t-lo force-pushed the t-lo/generate-sdk-packages-list branch from 944ee5c to 669d70a Compare December 1, 2026 14:46

This comment was marked as outdated.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical inventory-generation defects can contaminate package lists, query the wrong image, overwrite the workspace version, and publish stale checksums alongside new lists.

3 open issues

Review effort: Balanced

Comment thread build_sdk_container_image Resolved
Comment thread build_sdk_container_image Resolved
Comment thread build_sdk_container_image Resolved
This change adds a helper script `list_sdk_packages` for listing SDK
package versions and source repositories (aka overlays). Optionally,
board contents (from `/build/...-usr`) can be listed instead.

The new helper script is called by `build_sdk_container_image` after a
build has finished to produce package contents files for the SDK root
and amd64 and arm64 boards, respectively. The contents files follow the
same "..._packages.txt" format used by the OS image and sysexts.

Lastly, `ci-automation/sdk_container.sh` has been extended to sign and
upload the package lists to the build cache server.

Publishing the lists with releases is left for a follow-up PR to
implement.

Co-authored-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
@t-lo
t-lo force-pushed the t-lo/generate-sdk-packages-list branch from 669d70a to 5e16275 Compare December 1, 2026 15:14
Copilot AI balanced review requested due to automatic review settings December 1, 2026 15:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Inventory queries can use an older SDK image, while retained checksum and signature sidecars can cause repeated builds to publish stale checksums or fail signing.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

@chewi chewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we should be able to do the shell redirection outside the container, but too much other garbage gets written to stdout rather than stderr. Never mind.

@t-lo
t-lo merged commit 500bd64 into main Dec 1, 2026
2 of 3 checks passed
@t-lo
t-lo deleted the t-lo/generate-sdk-packages-list branch December 1, 2026 15:57

This branch is waiting to be deployed

1 waiting deployment
development — 5e16275c Waiting Dec 1, 2026 by t-lo via Wait for approval #6209
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.

3 participants