feat: add experiment run polling helper#61
Open
rowing0328 wants to merge 1 commit into
Open
Conversation
Constraint: Default tests must pass without a running LitmusChaos server. Rejected: Running live Litmus tests by default | It makes OSS CI depend on local server state and credentials. Confidence: high Scope-risk: narrow Directive: Keep live Litmus tests opt-in and document required environment variables. Tested: ./mvnw test; ./mvnw test -Dgroups=integration -DexcludedGroups=; ./mvnw package; ./mvnw javadoc:javadoc; ./mvnw -Dtest=ExperimentRunLiveTest -DexcludedGroups= test with local LitmusChaos run f65debdf-1ae2-4c98-a22f-65f5ac808282 Signed-off-by: rowing0328 <dev.hyoseung@gmail.com>
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.
Summary
Adds a polling helper for chaos experiment runs so SDK users can wait until a run reaches a terminal phase.
Changes
LitmusClient.waitForExperimentRun(...)ExperimentRunPollerto repeatedly fetch experiment run statusExperimentRunTimeoutExceptionExperimentRunLiveTest@Tag("integration")CONTRIBUTING.mdVerification
./mvnw test./mvnw test -Dgroups=integration -DexcludedGroups=./mvnw package./mvnw javadoc:javadoc./mvnw -Dtest=ExperimentRunLiveTest -DexcludedGroups= testLive LitmusChaos verification was run against a local Multipass Kubernetes cluster.
Verified experiment run:
codex-polling-live-testf65debdf-1ae2-4c98-a22f-65f5ac808282SucceededCOMPLETEDTests run: 1, Failures: 0, Errors: 0, Skipped: 0Notes
Default test execution still does not require a running LitmusChaos server. Live integration tests require explicit environment variables and
-DexcludedGroups=.Related
Closes #58