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
Run validation before releasing #718
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
✅ Deploy Preview for elated-stonebraker-105904 canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we never expect to create a release from a release branch? Or back port a bug fix or security patch to a previous release that isn't on main?
06c2166
to
fa8800d
Compare
@idoru so you're saying that we could in cartographer/.github/workflows/validation.yaml Lines 15 to 20 in fa8800d
by something like name: validation
on:
push: so we run validation on every commit anywhere, and then drop the check this PR is adding? so that we could, before pushing a tag (from I think keeping the ability to release from a tag regardless of the branch is very important |
@cirocosta I'd recommend something more like:
or something to that effect, rather than running validations on every commit to any spike branch we create. But are you also saying you'd prefer that the check introduced in this PR be removed? |
That's what forks are for.
It's not every commit, it's every push, just because a commit is on a branch doesn't mean that the workflow will have run for that commit. And certainly doesn't mean that the workflow passed. If there's one commit I want to makes sure passes all validation it's a tag. Assuming the tagged commit had all the tests pass, I'd still want the release artifacts to undergone the same testing. Two builds of the same source will be very similar, but not identical. For example, this is a workflow I've found to work well. It builds an artifact once, runs a battery of acceptance tests and then if the run is for a tag, creates a draft release with those artifacts. The released bits are the bits the tests ran against. |
fa8800d
to
b119ba4
Compare
26b57c0
to
f4b6210
Compare
* Only release off tags that follow correct syntax * Pull out shared steps into composite actions
f4b6210
to
92f397b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Changes proposed by this PR
PR Checklist
Note: Please do not remove items. Mark items as done
[x]
or usestrikethroughif you believe they are not relevantFixes #123
orUpdates #123
wip
commits