Skip to content

ci: stop hanging PR workflows and remove duplicate runs#1063

Merged
GregorBiswanger merged 1 commit intodevelopfrom
feature/fix-ci-hang-and-duplicate-workflows
May 9, 2026
Merged

ci: stop hanging PR workflows and remove duplicate runs#1063
GregorBiswanger merged 1 commit intodevelopfrom
feature/fix-ci-hang-and-duplicate-workflows

Conversation

@GregorBiswanger
Copy link
Copy Markdown
Member

  • 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.

- 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.
Copilot AI review requested due to automatic review settings May 9, 2026 20:24
@GregorBiswanger GregorBiswanger merged commit fe939e0 into develop May 9, 2026
1 of 4 checks passed
@GregorBiswanger GregorBiswanger deleted the feature/fix-ci-hang-and-duplicate-workflows branch May 9, 2026 20:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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/develop to avoid duplicate full-matrix runs on feature branches.
  • Add job/step timeouts and dotnet test --blame-hang options 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
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