Separate mock golden files from real GCP files in script_test.go - #13657
ada-coder-bot wants to merge 2 commits into
Conversation
… DR Scenarios - Add virtual kind: HTTPRequest support in TestE2EScript with automatic LRO polling - Update harness.go to ignore HTTPRequest during CRD filtering - Document HTTPRequest in tests/e2e/testdata/scenarios/README.md - Add 4 modular Cloud SQL Advanced DR scenarios under tests/e2e/testdata/scenarios/sqlinstance: - advanced_dr_creation_deadlock - advanced_dr_switchover - advanced_dr_optout_and_failback - advanced_dr_steady_state_unannotated Issue: 13154
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
🤖 AI Factory started investigating CI check failures for this pull request. Note: We recommend waiting for the 'ready-for-human' label before leaving review comments. Comments added while the system is actively working may be associated with outdated commits once a new commit is pushed, causing them to be ignored. |
- Dynamically determine scenario golden file paths in tests/e2e/script_test.go based on E2E_GCP_TARGET: - Real GCP (E2E_GCP_TARGET=real): _http%02d.log, _object%02d.yaml, _export%d.yaml - Mock GCP (E2E_GCP_TARGET=mock): _http%02d_mock.log, _object%02d_mock.yaml, _export%d_mock.yaml - Update harness.go NoExtraGoldenFiles to filter out mock vs real golden files and prevent accidental cross-mode deletion - Add safeguards in pkg/test/utils.go CompareGoldenFile to prevent writing real scenario golden baselines when not running against real GCP - Update presubmit scripts dev/ci/presubmits/tests-scenarios-suite and dev/ci/presubmits/tests-gcptracker to run against mock GCP - Generate and check in *_mock.* golden files for scenario tests covered by presubmit suites - Update tests/e2e/testdata/scenarios/README.md documentation Issue: 13478
f2fbc13 to
d730a63
Compare
Investigating tests-e2e-fixtures-sql-2-of-2 failureRun: 36996703890 Investigating tests-scenarios-unclassified failureRun: 36996703890 (This report was generated by overseer) |
|
🤖 AI Factory started investigating CI check failures for this pull request. Note: We recommend waiting for the 'ready-for-human' label before leaving review comments. Comments added while the system is actively working may be associated with outdated commits once a new commit is pushed, causing them to be ignored. |
Investigating test-mockgcp failureRun: 37000078863 (This report was generated by overseer) |
Summary of Changes
This PR separates Mock GCP golden files from Real GCP golden baseline files in scenario tests (
tests/e2e/script_test.go), preventing mock test runs from overwriting real GCP golden files and aligning the scenario test harness with the conventions used in basic fixtures (tests/e2e/unified_test.go).tests/e2e/script_test.goto compute golden file names based onE2E_GCP_TARGET:E2E_GCP_TARGET=real):_http%02d.log,_object%02d.yaml,_export%d.yamlE2E_GCP_TARGET=mock):_http%02d_mock.log,_object%02d_mock.yaml,_export%d_mock.yamlNoExtraGoldenFilesinconfig/tests/samples/create/harness.goto only evaluate mock golden files in mock mode and ignore mock files in non-mock mode, preventing accidental cross-mode deletions whenWRITE_GOLDEN_OUTPUT=1is set.pkg/test/utils.go(CompareGoldenFile) to guarantee real scenario golden baselines are never overwritten whenE2E_GCP_TARGET != "real".dev/ci/presubmits/tests-scenarios-suiteanddev/ci/presubmits/tests-gcptrackerwith standard E2E environment variables (E2E_GCP_TARGET=mock,E2E_KUBE_TARGET=envtest,RUN_E2E=1,WRITE_GOLDEN_OUTPUT=1, etc.).*_mock.*golden files for scenario tests covered by presubmit suites (acquisition,gkehubfeaturemembership,powertool,gcptracker, and unclassified scenarios).tests/e2e/testdata/scenarios/README.mdto document mock vs real golden file naming.Fixes #13478
This PR was generated by the overseer agent (powered by the gemini-3.7-flash model).