-
-
Notifications
You must be signed in to change notification settings - Fork 741
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
GHA: Refactor repetitive action inputs into in-repo composite actions #6199
Conversation
@@ -709,6 +594,7 @@ jobs: | |||
if: always() | |||
needs: | |||
- lint-checks | |||
- self-check |
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.
I noticed that the slack notification can happen before self-check finishes. It turns out, this was missing.
@@ -122,7 +98,7 @@ jobs: | |||
- name: Upload Histograms | |||
uses: actions/upload-artifact@v4 | |||
with: | |||
name: benchmark_histograms | |||
name: benchmark_histograms-py${{ matrix.python-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.
This is the line that was causing the microbenchmarks workflow failures. All other instances of actions/upload-artifact
were updated/fixed in #6192.
@@ -214,6 +185,7 @@ jobs: | |||
- name: Compress Service Logs Before upload | |||
if: ${{ failure() }} | |||
run: | | |||
./tools/launchdev.sh stop # stop st2 before collecting logs |
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.
I also missed updating this line in #6186. without this, the log compression can fail.
Apparently each action must be in its own folder.
In investigating Microbenchmarks failures, I realized I missed updating one of the keys in #6192.
It has been difficult to keep some of the steps in our GHA workflows consistent with each other. So, this PR tries to simplify at least some of our GHA updates.
The cache actions have the most complex set of inputs, so I refactored them into
composite
actions that can be shared by all of the workflows. I'm loading these actions as local files (The./
prefix is required for that), so the repo has to be checked out first before we can use actions like this.Relevant Github docs:
https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsuses
https://github.com/orgs/community/discussions/26245