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

fixes for release pipeline (aarch64) #9481

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sajjaphani
Copy link
Contributor

Currently, the release pipeline is failing because it is falling back to the LTS-2024 channel, where none of the hab* packages exist. To unblock the release pipeline, the fallback channel has been updated to stable.

Note: The hab, hab-studio, hab-backline, and hab-plan-build packages with version 1.6.1178 have been promoted to the stable channel.

Signed-off-by: Phani Sajja <[email protected]>
Copy link

netlify bot commented Nov 21, 2024

👷 Deploy Preview for chef-habitat processing.

Name Link
🔨 Latest commit 4a27ade
🔍 Latest deploy log https://app.netlify.com/sites/chef-habitat/deploys/6746f5ba524b6e0008e2853f

@mwrock
Copy link
Contributor

mwrock commented Nov 22, 2024

You actually want the release channel to fall back t oLTS-2024. The "primary" HAB_BLDR_CHANNEL should be a dynamically created channel based on the BUILDKITE_BUILD_ID. As components are built in the pipeline, the they are uploaded to this channel. So core/hab is built and uploaded to that channel and then core/hab-plan-build should get hab from that channel.

I'm looking at https://buildkite.com/chef/habitat-sh-habitat-main-release-habitat/builds/2002 where the release pipeline is failing. For some reason hab-plan-build is not honoring HAB_BLDR_CHANNEL, but I have not looked deeply into this. Anyways, I think that is the problem you want to investigate. If you fall back to stable, then all of the deps will come from stable instead of LTS-2024.

@sajjaphani
Copy link
Contributor Author

For aarch64, we have core packages in the LTS-2024 channel, and the hab* packages built against them are placed in the stable channel.
We introduced the HAB_REFRESH_CHANNEL to pull core dependencies, and the aarch64 packages in the stable channel are built with these changes.

local channel="$HAB_BLDR_CHANNEL"
if [[ -z "${NO_INSTALL_DEPS:-}" ]]; then
origin="$(echo "$dep" | cut -d "/" -f 1)"
if [[ $origin == "core" || $origin == "chef" || $origin == "chef-platform" ]]; then
channel="$HAB_REFRESH_CHANNEL"
if [[ $HAB_PREFER_LOCAL_CHEF_DEPS == "false" ]]; then
IGNORE_LOCAL="--ignore-local"
fi

It appears that with the introduction of HAB_REFRESH_CHANNEL, the HAB_BLDR_CHANNEL is no longer honored for core packages.

For aarch64, the HAB_REFRESH_CHANNEL is set to LTS-2024 in both the verify and release pipelines to pull dependencies, while the HAB_FALLBACK_CHANNEL is configured to pull the hab, hab-studio, and similar packages from the stable channel. No other packages, except for hab, hab-studio, and related ones, are present in the stable channel.

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