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

Adding builder-ubi-buildpackless-base on integration tests #448

Merged

Conversation

pacostas
Copy link
Contributor

Summary

This PR adds the builder-ubi-buildpackless-base builder to run against all the integration tests of yarn.

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@pacostas pacostas requested a review from a team as a code owner October 27, 2023 12:12
WithBuildpacks(
settings.Buildpacks.Yarn.Online,
settings.Buildpacks.BuildPlan.Online,
).
Copy link
Member

Choose a reason for hiding this comment

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

Asked @pacostas about this change, it was done to be consistent with all of the other buildpack integration tests.

Execute(name, source)
Expect(err).ToNot(HaveOccurred(), logs.String)

// Ensure yarn is installed correctly

container, err = docker.Container.Run.WithCommand("which yarn").Execute(image.ID)
container, err = docker.Container.Run.WithCommand("command -v yarn").Execute(image.ID)
Copy link
Member

Choose a reason for hiding this comment

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

I asked @pacostas about this, we don't install which by default in the ubi stack, this allows the test to run for both ubi and jammy

@@ -155,8 +166,13 @@ func testDefault(t *testing.T, context spec.G, it spec.S) {
)

image, logs, err = pack.WithNoColor().Build.
WithPullPolicy("never").
WithBuildpacks(buildpack, buildPlanBuildpack).
WithExtensions(
Copy link
Member

Choose a reason for hiding this comment

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

Similar change to previous for consistenccy with other buildpack integration tests.

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@pacostas pacostas force-pushed the adding-ubi-buildpackless-builder branch from 0dc16e8 to fcd93be Compare November 22, 2023 13:58
@pacostas
Copy link
Contributor Author

@mhdawson I added this change https://github.com/paketo-buildpacks/yarn/compare/0dc16e8f1274486fc2de415091428f0a2b097f48..fcd93be671c8ca8a1ce4adef9e24201562a5ac51 Practically is skipping the offline tests, as we cant support them at the moment. Can you LGTM that too?

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM again

…egration tests

enabling experimental feature in pack before running integration tests

refactor: changing the structure of settings to similar what other buildpacks have

fixing the integration tests

fix: removing comment
@pacostas pacostas force-pushed the adding-ubi-buildpackless-builder branch from fcd93be to 52a35b5 Compare December 4, 2023 14:00
@thitch97 thitch97 added the semver:patch A change requiring a patch version bump label Jan 16, 2024
@thitch97 thitch97 merged commit 441172d into paketo-buildpacks:main Jan 16, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants