Skip to content

[ci] Time out integration test when the host PC is unresponsive - #1081

Open
JSUYA wants to merge 1 commit into
flutter-tizen:masterfrom
JSUYA:ci-integration-test-timeout
Open

[ci] Time out integration test when the host PC is unresponsive#1081
JSUYA wants to merge 1 commit into
flutter-tizen:masterfrom
JSUYA:ci-integration-test-timeout

Conversation

@JSUYA

@JSUYA JSUYA commented Aug 11, 2026

Copy link
Copy Markdown
Member

If the host PC running the self-hosted runner is offline or has an unstable network, the integration test run can stay queued until GitHub's 24-hour limit.

Add a watchdog job on a GitHub-hosted runner that fails the run if integration_test is stuck in the queue for 15 minutes while the runner is idle (i.e. offline rather than busy with another run). timeout-minutes cannot cover this case because it only counts after a job starts. Cancelling the run is attempted best-effort only, since fork PRs get a read-only GITHUB_TOKEN. Being a job in the same workflow, the watchdog is re-run together with integration_test.
Add timeout-minutes: 60 to the integration_test job as a backstop for jobs that hang after starting.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2c2700cd01

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/integration_test.yml Outdated
Comment thread .github/workflows/integration_test.yml
Comment thread .github/workflows/integration_test.yml
@JSUYA
JSUYA force-pushed the ci-integration-test-timeout branch from 2c2700c to aeccd15 Compare August 11, 2026 05:22
If the host PC running the self-hosted runner is offline or has an
unstable network, the integration test run can stay queued until
GitHub's 24-hour limit (e.g. ~15 hours in
https://github.com/flutter-tizen/plugins/actions/runs/31377384649/attempts/1
where the job never left the queued state).

- Add a watchdog job on a GitHub-hosted runner that fails the run if
  integration_test is stuck in the queue for 15 minutes while the
  runner is idle (i.e. offline rather than busy with another run).
  timeout-minutes cannot cover this case because it only counts after
  a job starts. Cancelling the run is attempted best-effort only,
  since fork PRs get a read-only GITHUB_TOKEN. Being a job in the
  same workflow, the watchdog is re-run together with
  integration_test.
- Add timeout-minutes: 60 to the integration_test job as a backstop
  for jobs that hang after starting.
@JSUYA
JSUYA force-pushed the ci-integration-test-timeout branch from aeccd15 to 3a071cd Compare August 12, 2026 11:36
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.

1 participant