Skip to content

Use a group per PR so benchmark requests do not interfer with each other#800

Open
Kaliumhexacyanoferrat wants to merge 1 commit into
MDA2AV:mainfrom
Kaliumhexacyanoferrat:benchmark-pr-per-pr
Open

Use a group per PR so benchmark requests do not interfer with each other#800
Kaliumhexacyanoferrat wants to merge 1 commit into
MDA2AV:mainfrom
Kaliumhexacyanoferrat:benchmark-pr-per-pr

Conversation

@Kaliumhexacyanoferrat

Copy link
Copy Markdown
Collaborator

Currently, benchmark requests (workflow Benchmark PR) are globally synchronized, which means that GitHub will cancel pending ones as soon as a new one arrives. Contributors are not notified about this, so they will just wonder when the benchmark results will arrive.

As the custom runner is limited to one concurrent job anyway (I guess?), we can attribute the benchmark requests to a PR, so each PR will have it's own queue. Triggering multiple benchmark requests from the same PR will then cancel the older requests which is desired behavior.

Cannot test this locally, but this should be quite straight forward.

@MDA2AV can you affirm the limit of one concurrent job on the runner?

@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added the platform Everything related to benchmark exection, including the PR workflow. label Jun 4, 2026
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat marked this pull request as ready for review June 4, 2026 07:57
@Kaliumhexacyanoferrat

Copy link
Copy Markdown
Collaborator Author

Current case:

image

Requesting 913 cancelled 912 while 911 was still waiting. So pending (waiting) requests are definitively cancelled by newer ones.

@MDA2AV

MDA2AV commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Hmm there is an issue with this but I don't know yet the true case, need to investigate further but I agree this cancellation happens, however it doesn't always happen so it is a bit smelly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform Everything related to benchmark exection, including the PR workflow.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants