Skip to content

APIE-1043: Remove broken RTCE region live test.#3358

Merged
Cynthia Qin (cqin-confluent) merged 1 commit into
mainfrom
fix-rtce-live-test
May 16, 2026
Merged

APIE-1043: Remove broken RTCE region live test.#3358
Cynthia Qin (cqin-confluent) merged 1 commit into
mainfrom
fix-rtce-live-test

Conversation

@linouk23

@linouk23 Kostya Linou (linouk23) commented May 16, 2026

Copy link
Copy Markdown
Contributor

Release Notes

Checklist

  • I have successfully built and used a custom CLI binary, without linter issues from this PR.
  • I have clearly specified in the What section below whether this PR applies to Confluent Cloud, Confluent Platform, or both.
  • I have verified this PR in Confluent Cloud pre-prod or production environment, if applicable.
  • I have verified this PR in Confluent Platform on-premises environment, if applicable.
  • I have attached manual CLI verification results or screenshots in the Test & Review section below.
  • I have added appropriate CLI integration or unit tests for any new or updated commands and functionality.
  • I confirm that this PR introduces no breaking changes or backward compatibility issues.
  • I have indicated the potential customer impact if something goes wrong in the Blast Radius section below.

What

Applies to: Confluent Cloud.

test/live/region_live_test.go (added in #3331 alongside the RTCE control plane commands) runs confluent rtce region list and asserts that the output contains uniqueName("region") — a freshly generated random string.
Real Confluent Cloud RTCE regions can never match that random name, so the assertion fails deterministically on every run:

--- FAIL: TestLive/TestRegionCRUDLive (3.48s)
--- FAIL: TestLive/TestRegionCRUDLive/List_RTCE_regions (0.37s)

This blocks every live-test group that pulls in the rtce / all build tag. This PR deletes the broken file so the live-test suite can run cleanly again. The corresponding unit/integration tests and mock handlers for RTCE
regions (test/region_test.go, test/test-server/region_handler.go) are unchanged. A proper live test can be reintroduced in a follow-up once a stable fixture or substring assertion is defined.

Blast Radius

No customer impact — this PR only touches a live_test-tagged file under test/live/ and does not change any shipped CLI code. The only effect is that the RTCE-region live test no longer runs; coverage for the RTCE region
command remains via the existing unit and integration tests.

References

Test & Review

Before (from the live-test run):
--- FAIL: TestLive (0.00s)
--- FAIL: TestLive/TestRegionCRUDLive (3.48s)
--- FAIL: TestLive/TestRegionCRUDLive/List_RTCE_regions (0.37s)

After deletion, the live-test package still builds cleanly under both relevant tag combinations:
$ go vet -tags="live_test,all" ./test/live/
$ go vet -tags="live_test,rtce" ./test/live/
Both invocations succeed with no output, and TestRegionCRUDLive no longer runs (no other test references it).

Copilot AI review requested due to automatic review settings May 16, 2026 06:45
@linouk23 Kostya Linou (linouk23) requested a review from a team as a code owner May 16, 2026 06:45
@confluent-cla-assistant

Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes a deterministic failing RTCE region live test from test/live, restoring successful live-test runs for live_test builds that include RTCE tags while leaving mocked/integration RTCE region coverage in place.

Changes:

  • Deleted TestRegionCRUDLive, which asserted that real RTCE region output contained a randomly generated region name.
  • Removed the associated live_test && (all || rtce) test file from the live suite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqube-confluent

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@cqin-confluent Cynthia Qin (cqin-confluent) merged commit 740b1e1 into main May 16, 2026
7 checks passed
@cqin-confluent Cynthia Qin (cqin-confluent) deleted the fix-rtce-live-test branch May 16, 2026 08:04
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.

3 participants