Repository navigation
docs(ci): correct E2E triggers, stale database GC age, environment protection and teardown - #1145
Merged
Merged
Conversation
…otection and teardown docs/ci_runner_infrastructure.md described the E2E pipeline incorrectly: - Triggers: e2e-tests.yml runs for merge queue entries, for post-submit runs on main (called from postsubmit-main.yml), and on manual dispatch. It does not run on pull_request events, so "every PR" and "PR test runs" are replaced. - Stale database GC: SpannerManager deletes leftover E2E databases older than 1 hour (3600 s), not 2 hours. - Environment protection: the deployment environment that the job references has no approval rule. Credential exposure is limited by the triggers: pull request code, including code from forks, reaches the job only through the merge queue, and manual dispatch requires write access. - Teardown: the orchestrator's resource teardown is best effort, not guaranteed. It does not run when the runner pod is killed abruptly, which is the case that the stale database GC covers. TAG=agy CONV=40d6ae5a-d349-4c16-8794-c43d00cc0a88
There was a problem hiding this comment.
Code Review
This pull request updates the CI runner infrastructure documentation to accurately reflect the triggers, resource teardown guarantees, and security model of the E2E test pipeline. Specifically, it clarifies that the pipeline runs on merge queue entries, post-submits, and manual dispatches rather than standard pull requests, updates the database garbage collection threshold from 2 hours to 1 hour, and corrects the resource teardown description to 'best-effort'. There are no review comments, so I have no additional feedback to provide.
VLukiantsev
marked this pull request as ready for review
October 7, 2026 13:32
VLukiantsev
enabled auto-merge
October 7, 2026 13:32
janzak-dev
approved these changes
Oct 7, 2026
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
Corrects four statements about the E2E pipeline in
docs/ci_runner_infrastructure.md: when the E2E workflow runs, how old a leftover Spanner database must be before the stale-database cleanup deletes it, what protects the cloud credentials that the job uses, and whether resource teardown is guaranteed. Documentation only, and independent of the E2E reliability stack (fix/e2e-spanner-transient-retryand the PRs built on it).Motivation & Context
Section 4 of the document disagreed with the workflows and the harness code:
main" and referred to concurrent "PR test runs"..github/workflows/e2e-tests.ymldeclares onlymerge_group,workflow_call, andworkflow_dispatch;.github/workflows/postsubmit-main.ymlcalls it for post-submit runs onmain. It never runs onpull_requestevents.SpannerManager._cleanup_stale_databasesintest/e2e/lib/spanner.pydeletes E2E databases older than 3600 s, that is, 1 hour.managed_lifecycleintest/e2e/lib/orchestrator.pylogs a failed teardown step and continues, and nothing runs when the runner pod is killed abruptly, which is the case that the stale-database cleanup described in the same section covers.Why the security statement matters most: a reader who trusts the old text could add a
pull_requesttrigger in the belief that an approval gate stops fork code from reaching the credentials. The corrected text names what actually limits exposure today: the workflow never runs onpull_requestevents, so pull request code, including code from forks, reaches the job only after the pull request enters the merge queue, and manual dispatch requires write access to the repository.Key Changes
docs/ci_runner_infrastructure.md, section 4 ("Headless KinD & Playwright End-to-End (E2E) Pipeline"):mainthroughpostsubmit-main.yml, and manual dispatch) and states thatpull_requestevents do not run the workflow.Assumptions
None — requirements were fully specified.
Verification & Testing
./.githooks/pre-commit(at commit time),./tools/analyze_diff_size.py --base-ref origin/main, and read-only checks of the trigger blocks in.github/workflows/e2e-tests.ymland.github/workflows/postsubmit-main.yml, the age check intest/e2e/lib/spanner.py(current_ts - ts_part > 3600), the teardown error handling intest/e2e/lib/orchestrator.py, and the environment's protection rules through the GitHub REST API (an emptyprotection_ruleslist).Related Issues / Bugs
Part of bug 462085856
TAG=agy
CONV=40d6ae5a-d349-4c16-8794-c43d00cc0a88