Skip to content

test: Give ApplicationsTest.scale a shorter startup timeout - #1421

Open
ZPascal wants to merge 1 commit into
cloudfoundry:mainfrom
ZPascal:clarify-scale-timeout
Open

ZPascal wants to merge 1 commit into
cloudfoundry:mainfrom
ZPascal:clarify-scale-timeout

Conversation

@ZPascal

@ZPascal ZPascal commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

ApplicationsTest.scale changes the memory limit, which restarts the application. That restart waits with the default startup timeout of 5 minutes, which is the same as the test's own StepVerifier timeout. So when the restart stalls, the test only fails with a generic VerifySubscriber timed out and doesn't say that the application never came back up.

Changes

  • scale sets startupTimeout(Duration.ofMinutes(3)) on the ScaleApplicationRequest. A stalled restart now fails the scale operation itself, before the test's 5 minute limit, with an error that names the cause.
  • A comment next to it explains why the value is shorter than the test timeout.

Testing

  • ./mvnw -Pintegration-test -pl integration-test -am -DskipTests test-compile spotless:check passes.
  • The integration test itself runs in this PR's CI.

The 5.x.x counterpart is #1422.

The memory change in scale restarts the application. The default
startup timeout of that restart (5 minutes) equals the test's own
StepVerifier timeout, so a stalled start only surfaced as a generic
VerifySubscriber timeout. A 3 minute startup timeout makes the scale
operation fail first, with an error that names the actual cause.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant