[AV-131530] Implemented short-term graceful degradation fix#611
Merged
nimiyajoseph merged 1 commit intoMay 22, 2026
Merged
Conversation
|
🚨 PR title "AV-131530 first caller is skipped with the full setup error" does not match the required format. |
|
No PR template selections were detected. Please make sure to fill out the PR template properly by selecting the appropriate checkboxes. |
Contributor
|
Droid finished @nimiyajoseph's task —— View job |
Contributor
|
Droid finished @nimiyajoseph's task —— View job |
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.
Jira
Description
Implemented the short-term graceful degradation fix in [app_endpoint_environment.go:29-42].
What changed: the shared sync.Once setup now tracks whether the current test was the one that actually ran provisioning. If provisioning fails, that first caller is skipped with the full setup error, and every later app-endpoint test skips with a concise “shared setup already failed” message instead of failing instantly with the cached error. That stops the red cascade from ~20 dependent tests.
Type of Change
Manual Testing Approach
How was this change tested and do you have evidence? (REQUIRED: Select at least 1)
Testing
https://github.com/couchbasecloud/terraform-provider-couchbase-capella/actions/runs/26238064574/job/77218711652?pr=611
=== RUN TestAccAppEndpoint
app_endpoint_acceptance_test.go:13: skipping app endpoint acceptance tests: failed to provision shared test environment: {"code":4025,"hint":"The requested cluster details could not be found or fetched. Please ensure that the correct cluster ID is provided.","httpStatusCode":404,"message":"Unable to fetch the cluster details."}
--- SKIP: TestAccAppEndpoint (241.19s)
=== RUN TestAccAppEndpointInexistentCollection
app_endpoint_acceptance_test.go:54: skipping app endpoint acceptance test: shared test environment provisioning already failed
--- SKIP: TestAccAppEndpointInexistentCollection (0.00s)
Further comments