Skip to content

Conversation

@cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented May 17, 2024

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

@cognifloyd cognifloyd added this to the 3.9.0 milestone May 17, 2024
@cognifloyd cognifloyd requested review from a team, amanda11, nzlosh and winem May 17, 2024 23:08
@cognifloyd cognifloyd self-assigned this May 17, 2024
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines. Requires some effort to review. label May 17, 2024
if: always()
needs:
- lint-checks
- self-check
Copy link
Member Author

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.

uses: actions/upload-artifact@v4
with:
name: benchmark_histograms
name: benchmark_histograms-py${{ matrix.python-version }}
Copy link
Member Author

@cognifloyd cognifloyd May 17, 2024

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.

- name: Compress Service Logs Before upload
if: ${{ failure() }}
run: |
./tools/launchdev.sh stop # stop st2 before collecting logs
Copy link
Member Author

@cognifloyd cognifloyd May 17, 2024

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.

@cognifloyd cognifloyd added the no changelog No Changelog.rst needed for this PR label May 17, 2024
Apparently each action must be in its own folder.
@cognifloyd cognifloyd enabled auto-merge May 21, 2024 00:25
@cognifloyd cognifloyd requested a review from a team May 21, 2024 13:02
@cognifloyd cognifloyd merged commit 8513165 into master May 22, 2024
@cognifloyd cognifloyd deleted the gha-kiss branch May 22, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure: ci/cd no changelog No Changelog.rst needed for this PR refactor size/L PR that changes 100-499 lines. Requires some effort to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants