Description
Our current pipeline only publishes builds from main when they are tagged with the current version. This makes it difficult to test changes from pull requests when a pre-built image is required to verify the behavior.
We should define a process for creating and testing builds from PRs, so changes can be validated before they are merged into main.
The test image creation should not happen automatically for every PR. Instead, it should be triggered explicitly via ChatOps, for example with a command like /create-test-image.
Goals
- Define how PR test images can be created.
- Provide a way to verify PR changes that require a pre-built image.
- Avoid creating test images automatically for every PR.
- Make it clear that these images are intended for testing only and are not guaranteed to be stable.
Open Questions
- Who is allowed to trigger the ChatOps command?
- How should PR test images be tagged?
- Should old PR test images be cleaned up automatically?
- Should the test image be rebuilt when new commits are pushed to the PR?
Proposal
PR test images should be created on demand via ChatOps, for example by commenting /create-test-image on a pull request. (I would say just maintainers?)
The resulting image should be tagged in a way that makes it clear that it belongs to a specific PR and commit. A possible tag format could be:
pr-<pr-number>-<short-sha>
Optionally, an additional human-readable tag based on the branch name could be published as well, but it should not be the only identifier.
Description
Our current pipeline only publishes builds from
mainwhen they are tagged with the current version. This makes it difficult to test changes from pull requests when a pre-built image is required to verify the behavior.We should define a process for creating and testing builds from PRs, so changes can be validated before they are merged into
main.The test image creation should not happen automatically for every PR. Instead, it should be triggered explicitly via ChatOps, for example with a command like
/create-test-image.Goals
Open Questions
Proposal
PR test images should be created on demand via ChatOps, for example by commenting
/create-test-imageon a pull request. (I would say just maintainers?)The resulting image should be tagged in a way that makes it clear that it belongs to a specific PR and commit. A possible tag format could be:
pr-<pr-number>-<short-sha>Optionally, an additional human-readable tag based on the branch name could be published as well, but it should not be the only identifier.