Skip to content

e2e-tests: Forward signals to robot to support CI job cancellation#1605

Draft
adombeck wants to merge 1 commit into
mainfrom
fix-e2e-test-cancellation
Draft

e2e-tests: Forward signals to robot to support CI job cancellation#1605
adombeck wants to merge 1 commit into
mainfrom
fix-e2e-test-cancellation

Conversation

@adombeck

Copy link
Copy Markdown
Contributor

GitHub Actions sends SIGTERM only to the bash process running the step, not to the whole process group. Without a signal trap, bash would exit immediately on SIGTERM but leave robot running as an orphan, preventing the CI job from being cancelled.

Running robot in the background and forwarding SIGTERM/SIGINT to it allows Robot Framework's own signal handler to perform a graceful shutdown when the CI job is cancelled.

GitHub Actions sends SIGTERM only to the bash process running the step,
not to the whole process group. Without a signal trap, bash would exit
immediately on SIGTERM but leave robot running as an orphan, preventing
the CI job from being cancelled.

Running robot in the background and forwarding SIGTERM/SIGINT to it
allows Robot Framework's own signal handler to perform a graceful
shutdown when the CI job is cancelled.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@adombeck adombeck added the e2e-tests This issue is related to end-to-end tests / Run end-to-end tests on this pull request label Jun 17, 2026
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.54%. Comparing base (0c56846) to head (30d4823).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1605      +/-   ##
==========================================
- Coverage   87.75%   87.54%   -0.21%     
==========================================
  Files          98       98              
  Lines        6745     6745              
  Branches      111      111              
==========================================
- Hits         5919     5905      -14     
- Misses        770      784      +14     
  Partials       56       56              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

e2e-tests This issue is related to end-to-end tests / Run end-to-end tests on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant