ci: stop hanging PR workflows and remove duplicate runs#1063
Merged
GregorBiswanger merged 1 commit intodevelopfrom May 9, 2026
Merged
ci: stop hanging PR workflows and remove duplicate runs#1063GregorBiswanger merged 1 commit intodevelopfrom
GregorBiswanger merged 1 commit intodevelopfrom
Conversation
- Build and Publish now only triggers on push to main/develop (was: every push), so feature-branch pushes no longer run a second full matrix in parallel to PR Validation. - integration-tests concurrency group is now scoped per calling workflow (github.workflow + github.ref), preventing PR Validation and Build and Publish from canceling each other's reusable test runs. - Added timeout-minutes (25 per matrix job, 15 per dotnet test step, 10 for summary job) so a hung Electron process no longer keeps a runner busy until the 6h default timeout, which previously required manual cancel. - Added --blame-hang --blame-hang-timeout 5min to dotnet test so hung tests produce a dump and fail fast instead of stalling. - Removed pointless 0-20s random sleep step at the start of every matrix job.
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adjusts GitHub Actions triggers, concurrency, and timeouts to prevent duplicate workflow runs and reduce the chance of hung CI jobs occupying runners for hours.
Changes:
- Limit Build and Publish to pushes on
main/developto avoid duplicate full-matrix runs on feature branches. - Add job/step timeouts and
dotnet test --blame-hangoptions to fail faster on hangs. - Update integration-tests concurrency grouping and remove the random delay step.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/integration-tests.yml | Adds timeouts and blame-hang settings; adjusts concurrency grouping; removes random delay. |
| .github/workflows/Build and Publish.yml | Restricts workflow trigger to pushes on main and develop. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
6
to
8
| concurrency: | ||
| group: integration-tests-${{ github.ref }} | ||
| group: integration-tests-${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build and Publish now only triggers on push to main/develop (was: every push), so feature-branch pushes no longer run a second full matrix in parallel to PR Validation.
integration-tests concurrency group is now scoped per calling workflow (github.workflow + github.ref), preventing PR Validation and Build and Publish from canceling each other's reusable test runs.
Added timeout-minutes (25 per matrix job, 15 per dotnet test step, 10 for summary job) so a hung Electron process no longer keeps a runner busy until the 6h default timeout, which previously required manual cancel.
Added --blame-hang --blame-hang-timeout 5min to dotnet test so hung tests produce a dump and fail fast instead of stalling.
Removed pointless 0-20s random sleep step at the start of every matrix job.