Skip to content

Update acceptance fixtures to use newer Buildpack API versions#1913

Merged
jkutner merged 3 commits intomainfrom
update/bp-api
Sep 19, 2023
Merged

Update acceptance fixtures to use newer Buildpack API versions#1913
jkutner merged 3 commits intomainfrom
update/bp-api

Conversation

@natalieparellano
Copy link
Copy Markdown
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 <narellano@vmware.com>
@natalieparellano natalieparellano requested review from a team as code owners September 19, 2023 19:45
@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
Copy Markdown
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 <narellano@vmware.com>
@natalieparellano natalieparellano modified the milestones: 0.31.0, 0.30.1 Sep 19, 2023
@jkutner jkutner merged commit 3a994bd into main Sep 19, 2023
@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