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

buildsys output includes misleading "Error" log when force-upstream or BUILDSYS_UPSTREAM_SOURCE_FALLBACK set #453

Open
ginglis13 opened this issue Feb 7, 2025 · 0 comments · May be fixed by #454

Comments

@ginglis13
Copy link
Contributor

ginglis13 commented Feb 7, 2025

Description

If a package is built with force-upstream = true or BUILDSYS_UPSTREAM_SOURCE_FALLBACK=true, buildsys logs contain an error message that is a red herring for debugging build failures:

 cargo:rerun-if-changed=/local/home/dhwanise/bottlerocket-repos/codebuild_reproduce/bottlerocket-kernel-kit/build/external-kits/external-kit-metadata.json
  Error fetching from lookaside cache: Failed to fetch 'https://cache.bottlerocket.aws/aws-neuronx-dkms-2.19.64.0.noarch.rpm/f93aa097ea0515533817ce9737810cb8b025c35c3d4367c2e667292c0692d525ffbc9b7972fe957174e206a82e394cc7e076e5b399e1050f2c5f6ed129d4d739/aws-neuronx-dkms-2.19.64.0.noarch.rpm': 403 Forbidden
  Fetching "aws-neuronx-dkms-2.19.64.0.noarch.rpm" from upstream source

What I'd Like

This log message is clarified

Other options considered

Split the logic for force upstream and upstream fallback, such that in cases of packages specifying force-upstream = true, the lookaside cache is never consulted. This seems to be closer to the behavior that force-upstream implies

@ginglis13 ginglis13 linked a pull request Feb 7, 2025 that will close this issue
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 a pull request may close this issue.

1 participant