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

Fix starting_containers test after release of Procfile CNB v3.0.0 #801

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Feb 28, 2024

Procfile CNB v3.0.0 was just released with an intentional change to the way that command vs args are handled in the CNB process type definition. (Before the Procfile file entry would be set as the process command, but now it's set as args.)

That change improves the overall UX of running images that use the Procfile CNB, but is breaking in some lesser used scenarios that happened to be tested via the starting_containers test in this repo.

See:

The tests have been updated to account for the new behaviour, and an additional test added for the "overriding command only" scenario (that wasn't possible to easily test before due to the way the Procfile CNB was previously implemented).

Fixes #800.
GUS-W-15139634.

Procfile v3.0.0 was just released with an intentional change to the way
that `command` vs `args` are handled in the CNB process type definition.
This change improves the overall UX, but was breaking in some lesser
used scenarios that happened to be tested via the `starting_containers`
test in this repo.

Specifically, before the `Procfile` file entry would be set as the
process `command`, but now it's set as `args`.

See:
- heroku/buildpacks-procfile#205 (comment)
- heroku/buildpacks-procfile@v2.0.2...v3.0.0#diff-782521a81713992d3a07e85975d367cfac60afc78583133551efcddc2026bd3eL19-R20

The tests have been updated to account for the new behaviour, and an
additional test added for the "overriding command only" scenario (that
wasn't possible to easily test before due to the way the Procfile CNB
was previously implemented).

Fixes #800.
GUS-W-15139634.
@edmorley edmorley self-assigned this Feb 28, 2024
@edmorley edmorley marked this pull request as ready for review February 28, 2024 12:43
@edmorley edmorley requested a review from a team as a code owner February 28, 2024 12:43
@edmorley edmorley merged commit f098399 into main Feb 28, 2024
6 checks passed
@edmorley edmorley deleted the edmorley/fix-ci branch February 28, 2024 13:42
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.

Fix tests after release of Procfile CNB v3.0.0
3 participants