Skip to content
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 profiler only on release and on demand #1392

Merged
merged 2 commits into from
Nov 16, 2024
Merged

Conversation

erikvanoosten
Copy link
Collaborator

Since we are not using the cpu/heap profiles that much (if at all), IMHO it is an environmental offense to run the profiler on every commit.

With this change we only run the profiler on releases. In addition, it is now easy to run the profiler on demand from any branch, tag or commit.

@@ -24,6 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it supply the right value for ref when running a release?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ref parameter has default value "" which means take the default branch. This is what we had before as well.

When this action is run from a release the ref input it not set. So I am actually not sure it this will work (does this evaluate to empty string when the ref is not set?). Perhaps we should give the input parameter an explicit default value of "".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an explicit default value. So now it should be fine.

Since we are not using the cpu/heap profiles that much, it is an environmental offence to run the profiler on every commit.

With this change we only run the profiler on releases. In addition, it is now easy to run the profiler on demand from any branch, tag or commit.
@erikvanoosten erikvanoosten merged commit 5f62a09 into master Nov 16, 2024
13 checks passed
@erikvanoosten erikvanoosten deleted the less-profiling branch November 16, 2024 13:03
erikvanoosten added a commit that referenced this pull request Nov 16, 2024
When you start a workflow from the GitHub UI, it already asks for a
branch/tag/commit. There is no need to add our own input for that.

This is a follow-up of #1392.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants