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

Fixes for rebase and log message improvements #1122

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Conversation

natalieparellano
Copy link
Member

  • Fix daemon invocation by trying to read app image after we have a docker client
  • Don't do stack validation for images built on newer platforms

@natalieparellano natalieparellano requested a review from a team as a code owner June 9, 2023 18:31
Comment on lines +268 to +269
encoding.ToJSONMaybe(d.AnalyzeMD.RunImage.TargetMetadata),
encoding.ToJSONMaybe(descriptor.TargetsList()),
Copy link
Member Author

Choose a reason for hiding this comment

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

Improves the log message

@natalieparellano natalieparellano changed the title Fixes for rebase Fixes for rebase and log message improvements Jun 9, 2023
Comment on lines +150 to +162
it("overrides the existing metadata", func() {
_, err := rebaser.Rebase(fakeAppImage, fakeNewBaseImage, fakeAppImage.Name(), additionalNames)
h.AssertNil(t, err)

h.AssertNil(t, image.DecodeLabel(fakeAppImage, platform.LifecycleMetadataLabel, &md))
var empty []string
h.AssertEq(t, md.RunImage.TopLayer, "new-top-layer-sha")
h.AssertEq(t, md.RunImage.Reference, "new-run-id")
h.AssertEq(t, md.RunImage.Image, "some-repo/new-base-image")
h.AssertEq(t, md.RunImage.Mirrors, empty)
h.AssertEq(t, md.Stack.RunImage.Image, "some-repo/new-base-image")
h.AssertEq(t, md.Stack.RunImage.Mirrors, empty)
})
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved assertions for newer platforms out of when and above the older platform assertions

- Fix daemon invocation by trying to read app image after we have a docker client
- Don't do stack validation for images built on newer platforms

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano merged commit 7f4666e into main Jun 14, 2023
7 checks passed
@natalieparellano natalieparellano deleted the fix/rebase branch June 14, 2023 19:19
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 this pull request may close these issues.

None yet

2 participants