-
Notifications
You must be signed in to change notification settings - Fork 6
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
Collecting benchmark results in PR is broken #249
Comments
I think it worked some time ago, I recall the comments written by the action. However, now I noticed that in the problematic case, in the implicit "Set up job" step, GitHub shows |
Reading the docs of the benchmark action - they recommend not running the action in pull requests (https://github.com/benchmark-action/github-action-benchmark?tab=readme-ov-file#run-only-on-your-branches) but because of another reason: to avoid publishing benchmark results in PRs. This docs entry, however, is some kind of indication that PRs are not supported or at least tested. Related, other folks have the same problem: benchmark-action/github-action-benchmark#30 |
@OptimumCode do you happen to have capacity to take a look at this? If not, that's cool - I'll try to fix it once I'm back from 🌴 (~2 weeks) 😄 |
Hi, @krzema12. The problem is related to the fact that repository's secrets are not available for PRs made from a fork repositories. And you are using a PAT token to upload results into a separate repo. As a solution (I had the same problem in my repo with other workflows), we can split workflow into two workflows:
Do you have any objections/suggestions/comments regarding the above, @krzema12 ? I will try to find some time to have a closer look to the issue next week (probably I am missing something here because when I experimented on my repo I didn't not change the benchmark workflow) |
Ah right, it's about forks, not all PRs! |
We can probably just skip the results upload in this case (add a condition to check whether the source repo owner is different). I think it would be better than a failed job |
One more option: we can enable |
@OptimumCode I like the second idea better! |
Hi, @krzema12. I am having some issues with benchmark workflow:
I believe something might be wrong with the binding server. Could you please advise what the issue could be? If you point me in the right direction, I think I can look at this issue by myself |
@OptimumCode could you try removing your Maven Local repo, and restarting your IDE? |
Thank you, @krzema12. Seems like it helped - the old versions of artifacts were in Maven Local and this was the reason why I had errors. |
Seems like everything is working now - the workflow is passed and the summary is available |
See e.g. https://github.com/krzema12/snakeyaml-engine-kmp/actions/runs/11074527066/job/30774051979
The text was updated successfully, but these errors were encountered: