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

Use the Procfile CNB from the builder in tests #88

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Mar 13, 2024

The Procfile CNB has just moved Docker Hub repo:
heroku/buildpacks-procfile#219

Instead of updating the repo URL used in the tests, I've switched the tests to use the Procfile CNB from the builder image instead.

This is now safe to do, since there is now only ever one Procfile version in the builder after:
heroku/buildpacks-jvm#608
heroku/buildpacks-nodejs#696

Using the Procfile version from the builder has a few advantages:

  • Greater parity with what will be used in production
  • Less churn from us needing to bump the versions here
  • Faster, since saves having to pull a new image from Docker Hub

There is the chance of breakage, should the upstream Procfile CNB make a breaking change, however, that should be very rare and will only affect tests, and seeing that breakage here is actually kinda the point :-)

GUS-W-14356096.

The Procfile CNB has just moved Docker Hub repo.

Instead of just updating the repo URL used in the tests, I've switched
the tests to use the Procfile CNB from the builder image instead.

This is now safe to do, since there is now only ever one Procfile version
in the builder after:
heroku/buildpacks-jvm#608
heroku/buildpacks-nodejs#696

Using the Procfile version from the builder has a few advantages:
- Greater parity with what will be used in production
- Less churn from us needing to bump the versions here
- Faster, since saves having to pull a new image from Docker Hub

There is the chance of breakage, should the upstream Procfile CNB
make a breaking change, however, that should be very rare and
will only affect tests, so it seems worth the tradeoff.

GUS-W-14356096.
@edmorley edmorley self-assigned this Mar 13, 2024
@edmorley edmorley marked this pull request as ready for review March 13, 2024 10:23
@edmorley edmorley requested a review from a team as a code owner March 13, 2024 10:23
@edmorley edmorley enabled auto-merge (squash) March 13, 2024 10:23
@edmorley edmorley merged commit 73c38b7 into main Mar 13, 2024
6 checks passed
@edmorley edmorley deleted the edmorley/procfile-builder branch March 13, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants