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

Update acceptance fixtures to use newer Buildpack API versions #1913

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

natalieparellano
Copy link
Member

Lifecycle 0.18.0 and above will only support Buildpack API versions 0.7 and above

Lifecycle 0.18.0 and above will only support Buildpack API versions 0.7 and above

Signed-off-by: Natalie Arellano <[email protected]>
@github-actions github-actions bot added this to the 0.31.0 milestone Sep 19, 2023
@github-actions github-actions bot added type/enhancement Issue that requests a new feature or improvement. type/chore Issue that requests non-user facing changes. labels Sep 19, 2023
@jkutner jkutner modified the milestones: 0.31.0, 0.30.1 Sep 19, 2023
Comment on lines -808 to -813
// extensions
assertImage.HasLabelWithData(builderName, "io.buildpacks.extension.layers", `{"read/env":{"read-env-version":{"api":"0.9","layerDiffID":"`+extReadEnvDiffID+`","name":"Read Env Extension"}},"simple/layers":{"simple-layers-version":{"api":"0.2","layerDiffID":"`+extSimpleLayersDiffID+`","name":"Simple Layers Extension"}}}`)
assertImage.HasLabelWithData(builderName, "io.buildpacks.buildpack.order-extensions", `[{"group":[{"id":"read/env","version":"read-env-version"},{"id":"simple/layers","version":"simple-layers-version"}]}]`)
// buildpacks
assertImage.HasLabelWithData(builderName, "io.buildpacks.buildpack.layers", `{"read/env":{"read-env-version":{"api":"0.2","stacks":[{"id":"pack.test.stack"}],"layerDiffID":"`+bpReadEnvDiffID+`","name":"Read Env Buildpack"}},"simple/layers":{"simple-layers-version":{"api":"0.2","stacks":[{"id":"pack.test.stack"}],"layerDiffID":"`+bpSimpleLayersDiffID+`","name":"Simple Layers Buildpack"}}}`)
assertImage.HasLabelWithData(builderName, "io.buildpacks.buildpack.order", `[{"group":[{"id":"read/env","version":"read-env-version","optional":true},{"id":"simple/layers","version":"simple-layers-version","optional":true}]}]`)
Copy link
Member Author

Choose a reason for hiding this comment

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

This does make our assertions weaker, but I'd argue it's okay because:

  • It's unclear how much value we get from these assertions in the first place
  • We're keeping the assertions for Linux containers
  • Keeping the Windows assertions requires contributors to either have a Windows box OR they must let the tests fail not once, but twice in CI in order to grab the correct diffIDs ...this seems like an undue burden

@github-actions github-actions bot modified the milestones: 0.30.1, 0.31.0 Sep 19, 2023
Signed-off-by: Natalie Arellano <[email protected]>
@natalieparellano natalieparellano modified the milestones: 0.31.0, 0.30.1 Sep 19, 2023
@jkutner jkutner merged commit 3a994bd into main Sep 19, 2023
18 checks passed
@jkutner jkutner deleted the update/bp-api branch September 19, 2023 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/chore Issue that requests non-user facing changes. type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants