-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Build vttestserver
in GHA and send Slack message on Docker Build failure
#16963
Conversation
Signed-off-by: Florent Poinsard <[email protected]>
…uild Signed-off-by: Florent Poinsard <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
fffa473
to
2c57621
Compare
@@ -26,13 +94,13 @@ jobs: | |||
|
|||
steps: | |||
- name: Check out code | |||
uses: actions/checkout@v4 | |||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
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.
What is the reason to use the SHA here instead of a version?
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.
docker login | ||
|
||
# we assume in this example that we are releasing v21.0.0-rc1, but replace this by any other tag | ||
git checkout v21.0.0-rc1 |
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.
We should remove the -rc1
right, since we no longer use that for the branch names? Or are we using tag names?
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.
We want to checkout the git tag directly, not the release branch. I updated the comment to be more understandable in 1e950a0.
a44305c
to
40b0c85
Compare
Signed-off-by: Florent Poinsard <[email protected]>
40b0c85
to
1c14d44
Compare
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
After running some tests on one of my dummy repo: the workflow file used to run on a |
…ilure (#16963) Signed-off-by: Florent Poinsard <[email protected]>
…Docker Build failure (#16963) (#17047) Signed-off-by: Florent Poinsard <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Description
This is a follow-up of #16759 where we had reverted recent changes to the docker build github action workflow. This PR re-adds some of the changes we had reverted, like the build of
vttestserver
which was missing. It also adds a step to notify maintainers on Slack when there is a failure. The pipeline now looks as follows:Commit 1c14d44 illustrate how the notification mechanism works. The notification can seen on https://vitess.slack.com/archives/C07SC9PDN57/p1729017794047489.