Repository navigation
Conversation
update, updateMessage and updateNothing restored app_scaling in doFinally with a nested, blocking StepVerifier.verify. That blocked a reactor thread while it waited for another HTTP call, so each restore timed out after 5 minutes, updateMessage failed on its first run and the flag was left changed. All update tests now run inside Mono.usingWhen, which restores the enabled state and the custom error message as part of the same reactive chain, also when the test fails. A null custom error message is restored by clearing it, the old code left the test message in place.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FeatureFlagsV3Test.update,updateMessageandupdateNothingrestoredapp_scalingindoFinallywith a nested, blockingStepVerifier.verify(...). That blocks a Reactor Netty thread while it waits for another HTTP call, so each restore timed out after 5 minutes. The class took ~600 s per run,updateMessagefailed on its first attempt (VerifySubscriber timed out) and passed on the rerun, and the flag was left changed. See e.g. the v3 job of #1409 (run 44831523436) and main run 44739488637.Changes
withRestoredFeatureFlagreads the flag, runs the test and restores it withMono.usingWhen, so the restore is part of the reactive chain and also runs when the test fails or is cancelled.enabledand the custom error message. Anullmessage is restored withclearCustomErrorMessage(true); before,updateMessageleft its test message in place when the original message wasnull.updateCustomErrorMessageandupdateCustomErrorMessageToNulluse the same helper.Booleanvalues are compared withequalsinstead of==/!=.Testing
./mvnw -Pintegration-test -DskipTests spotless:check installpasses.5.x.x
5.x.x already restores the flag reactively (
flatMap(...).thenReturn(...)), so it doesn't hang there and needs no backport.