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

libcnb-test: Pass --trust-builder to pack build #409

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Jun 17, 2022

In order to:

  • Normalise build log output in tests across environments - so multi-line log output assertions don't pass on one machine and fail on another (as happened in procfile-cnb for local vs CI), due to the untrusted-builder-only [<stage>] log output prefixes.
  • Avoid having to add pack config trusted-builders add ZZZZ boilerplate to all of our CI configs.
  • Speed up test execution.

This should be safe to do, since:

  • libcnb-test doesn't publish images or pass in credentials (one of the concerns of using an untrusted builder)
  • projects using libcnb-test will have chosen/vetted their test images (so it's a bit different from the "end user experimenting with random builders they found on the internet" case)
  • by compiling/running a Rust libcnb.rs-using project on your local machine you are already running a bunch of untrusted code, so you either trust the author of that buildpack or you don't.

See the issue description for more details.

Fixes #407.
GUS-W-11312254.

In order to:
- Normalise build log output in tests across environments.
- Avoid having to add `pack config trusted-builders add ZZZZ`
  boilerplate to all of our CI configs.
- Speed up test execution.

See the issue description for more details.

Fixes #407.
GUS-W-11312254.
@edmorley edmorley added libcnb-test faster tests Things that improve the runtime of tests labels Jun 17, 2022
@edmorley edmorley self-assigned this Jun 17, 2022
@edmorley edmorley marked this pull request as ready for review June 17, 2022 15:38
@edmorley edmorley requested a review from a team as a code owner June 17, 2022 15:38
Copy link
Member

@Malax Malax left a comment

Choose a reason for hiding this comment

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

👍🏻 Thanks for the detailed description in the issue!

@edmorley edmorley merged commit 15c2cd1 into main Jun 20, 2022
@edmorley edmorley deleted the edmorley/trust-builder branch June 20, 2022 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faster tests Things that improve the runtime of tests libcnb-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libcnb-test should pass --trust-builder to pack build
2 participants