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

Removing validation of deprecated io.buildpacks.stack.id #2295

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

Conversation

joeybrown
Copy link

@joeybrown joeybrown commented Nov 27, 2024

Summary

This PR picks up where #2119 left off.

Output

Before

Screenshot 2024-11-27 at 4 17 14 PM

After

Screenshot 2024-11-27 at 4 26 28 PM

Related

Resolves #2104

@joeybrown joeybrown requested review from a team as code owners November 27, 2024 22:28
@github-actions github-actions bot added this to the 0.37.0 milestone Nov 27, 2024
@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 Nov 27, 2024
@@ -2181,19 +2185,16 @@ func testAcceptance(
imageManager.CleanupImages(runImageName)
})

it("fails with a message", func() {
it("succeeds with a warning", func() {
Copy link
Member

Choose a reason for hiding this comment

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

@joeybrown

This test is failing when running the acceptance tests because in the previous pack release we were expecting the error message.

        --- FAIL: TestAcceptance/acceptance_suite/p_previous_cb_current_lc_current/stack_is_created/builder_is_created/build/builder_is_trusted_(and_set_as_default)/--run-image/the_run_image_has_the_wrong_stack_ID/succeeds_with_a_warning (3.02s)

Usually, when a new behavior, we add a Support flag and use SkipIf with previous pack versions to avoid running that test.

In this case, maybe we can do the following:

  • Add a new Support flag, valid from versions greater or equal to 0.37.0
  • Keep the current test, skip if the version is greater or equal to 0.37.0
  • Add the new test and skip it if the version is less than 0.37.0

Copy link
Author

Choose a reason for hiding this comment

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

sounds great can do!

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.

Remove validation of deprecated io.buildpacks.stack.id
3 participants