heroku / libcnb.rs

A framework for writing Cloud Native Buildpacks in Rust
BSD 3-Clause "New" or "Revised" License
33 stars 6 forks source link

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

Closed edmorley closed 4 months ago

edmorley commented 4 months ago

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.