Skip to content
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

Publish stage 3 SDK tarball to use as a seed instead of stage 4 #2291

Closed
wants to merge 1 commit into from

Conversation

chewi
Copy link
Contributor

@chewi chewi commented Sep 6, 2024

Publish stage 3 SDK tarball to use as a seed instead of stage 4

We currently use a stage 4 tarball as a seed for building the SDK, but stage 3 is smaller and less likely to cause issues.

This doesn't change the name of the tarball because supporting both stage3 and stage4 at the same time just isn't feasible with the way the digest check works.

The change is almost backwards compatible except that Catalyst will fail to build older baselayout versions due to stage3 lacking git. A recent change to the baselayout package sources it from a tarball instead of git, and this has now made it into a release. This issue only affects building the SDK, and it can be resolved by simply rebasing.

How to use

You can't really try this change specifically, but you can build the SDK up to stage 3 and then manually use that tarball as a seed to build another SDK.

Testing done

I have tested this manually as much as I can, but the change itself cannot be tested in the usual way because it involves publishing the tarball. The change is at least relatively small.

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update) -- N/A
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc. -- N/A

We currently use a stage 4 tarball as a seed for building the SDK, but
stage 3 is smaller and less likely to cause issues.

This doesn't change the name of the tarball because supporting both
stage3 and stage4 at the same time just isn't feasible with the way the
digest check works.

The change is almost backwards compatible except that Catalyst will fail
to build older baselayout versions due to stage3 lacking git. A recent
change to the baselayout package sources it from a tarball instead of
git, and this has now made it into a release. This issue only affects
building the SDK, and it can be resolved by simply rebasing.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@chewi chewi requested a review from a team September 6, 2024 15:50
@chewi chewi self-assigned this Sep 6, 2024
@chewi chewi changed the title Publish stage 3 SDK tarball to use as a seed instead of stage4 Publish stage 3 SDK tarball to use as a seed instead of stage 4 Sep 6, 2024
@krnowak
Copy link
Member

krnowak commented Sep 9, 2024

The sdk tarball is also used for building SDK docker images. Did you test if the stage3 is usable here too? See ci-automation/sdk_container.sh and build_sdk_container_image scripts.

Copy link

github-actions bot commented Sep 9, 2024

@chewi
Copy link
Contributor Author

chewi commented Sep 9, 2024

Ah damn, I think that torpedoes the whole thing. I was previously told it was only used for the seed. If it used the "stage4" file directly while that was still around, that would be okay, but it looks like it can at least potentially fetch it from the bincache, so we'd have to publish both.

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.

2 participants