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

Regression: go-containerregistry changed archive/hash behavior #2703

Closed
carolynvs opened this issue Apr 4, 2023 · 4 comments
Closed

Regression: go-containerregistry changed archive/hash behavior #2703

carolynvs opened this issue Apr 4, 2023 · 4 comments
Assignees
Labels
bug Oops, sorry! hmm 🛑🤔 Needs more thinking time. Don't start on it yet, please.

Comments

@carolynvs
Copy link
Member

The other day we got a dependabot PR bumping go-containerregistry #2664. Unfortunately the integration tests in Azure Pipelines did not kick off at all AND we didn't have our branch protection rule set to require porter-integration as a status check so it looked like the PR was safe to merge.

Narrator: It was not.

Bumping go-containerregistry has a breaking change that caused our archive files to change their hash. This is causing TestArchive_StableDigest to fail because the expected hash is different.

For now we need to revert that change, and then evaluate what changed in go-containerregistry and how that impacts our archives, and if there's a way to not have the hash of our archives change. Otherwise we'll need to communicate to people that it's changing and when, since I anticipate that some users are checking the tgz hash when moving across an airgap.

@carolynvs carolynvs added the bug Oops, sorry! label Apr 4, 2023
@carolynvs carolynvs self-assigned this Apr 4, 2023
@carolynvs
Copy link
Member Author

I have fixed our branch protection rules to include both porter AND porter-integration.

@kichristensen
Copy link
Contributor

@schristoff What do we want to do here? The dependency have been updated multiple times since v1.1.5, we are now using v1.1.12. The time for avoiding the change is gone, as we have released two versions of Porter with the the updated dependency.

@schristoff
Copy link
Member

Haha, whoops.
Well, it seems like no one has commented so maybe not a breaking change? 🙃🙃

@kichristensen kichristensen self-assigned this May 10, 2024
@kichristensen
Copy link
Contributor

As we be mistake have released two versions with this change, and no one has reacted, I will close this issue without any changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Oops, sorry! hmm 🛑🤔 Needs more thinking time. Don't start on it yet, please.
Projects
Status: Done
Status: Done
Status: No status
Development

No branches or pull requests

3 participants