Skip to content

test: stop retrying a dev loop start that keeps timing out (#27681) (CP: 25.3) - #27689

Open
vaadin-bot wants to merge 1 commit into
25.3from
cherry-pick-27681-to-25.3-1796398416694
Open

vaadin-bot wants to merge 1 commit into
25.3from
cherry-pick-27681-to-25.3-1796398416694

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #27681 to branch 25.3.

The original commit conflicts on 25.3, so this PR picks the 25.4 pick #27687 instead, which already adapted the change to an older branch.

Warning

The cherry-pick had merge conflicts that were resolved automatically by Claude Code. Please review the changes carefully.

Resolution notes from Claude:

  • VaadinDevCli: 25.3 lacks the run(Map<String, String> environment, String...) overload added by fix(devloop): do not spawn the daemon for status or ping #26782 (fix(devloop): do not spawn the daemon for status or ping), which is not on 25.3. Put the hung-start check at the start of the existing run(String...) and kept the rest of the change as in the 25.4 pick; dropped the putAll(environment) line from that overload.
  • Kept the java.util.Map import, now needed only for HUNG_STARTS.
  • Test code only; compiled with mvn install -DskipTests -pl flow-tests/test-devloop/test-devloop-support -am. Dev loop ITs were not run.

Depends on #27590

build failure · flow-tests · the nightly dev loop build when one server cannot start

When a dev loop fixture's server does not start, every test in that fixture waits the full 5 minutes for vaadin-dev start and then fails. In the nightly build on bender, Payara Server never starts, so its tests use the rest of the 3-hour timeout and payara-micro never runs. Now, after two starts in a row time out, the next ones fail at once with the last start's output.

Risks:

  • ⚠️ Behaviour change in the tests: after two timed-out starts, the rest of that fixture's execution does not try to start the server again, even if it would have started later. One timeout is still retried, for a first start that is slow once.
  • ✅ Test code only. Nothing is skipped: the tests still fail, so a server that cannot start stays visible in the report.

Context. Every dev loop IT starts the application before it does anything, and the CLI driver kills a command after 5 minutes. A server that hangs on boot hangs again in the next test, so retrying only adds 5 minutes per test: in the nightly build of 2026-12-04, Payara used 30 minutes for DevLoopApplyIT and 25 for DevLoopBrowserIT, with about 30 more tests to go.

  • VaadinDevCli counts, per application, the start commands in a row that did not finish in time, and after two it fails every later start of that application at once, with what the last one said
    • A start that finishes in time resets the count
    • Only a timeout counts: a start that exits with an error is already fast, and some tests start again after a stop on purpose
    • The count lasts as long as the test JVM, which is one failsafe execution of one fixture, so the maven-compile execution and the other fixtures try again

…CP: 25.3)

Resolution notes:
- VaadinDevCli: 25.3 lacks the run(Map<String, String> environment, String...) overload added by #26782 (fix(devloop): do not spawn the daemon for status or ping), which is not on 25.3. Put the hung-start check at the start of the existing run(String...) and kept the rest of the change as in the 25.4 pick; dropped the putAll(environment) line from that overload.
- Kept the java.util.Map import, now needed only for HUNG_STARTS.
- Test code only; compiled with mvn install -DskipTests -pl flow-tests/test-devloop/test-devloop-support -am. Dev loop ITs were not run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

Auto merge (with 'squash' method) is enabled for this PR, so it is merged once it is approved and its checks pass. Please review it and approve it, do not merge it manually. [Message is sent from bot]

@vaadin-bot
vaadin-bot enabled auto-merge (squash) December 4, 2026 15:33
@github-actions github-actions Bot added the +0.0.1 label Dec 4, 2026
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

Auto merge (with 'squash' method) is enabled for this PR, so it is merged once it is approved and its checks pass. Please review it and approve it, do not merge it manually. [Message is sent from bot]

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Test Results

 1 454 files  ±0   1 540 suites  ±0   1h 22m 58s ⏱️ + 2m 12s
12 145 tests ±0  12 078 ✅ ±0  67 💤 ±0  0 ❌ ±0 
12 504 runs  ±0  12 437 ✅ ±0  67 💤 ±0  0 ❌ ±0 

Results for commit b119a15. ± Comparison against base commit 36a7684.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants