Repository navigation
fix(ops): drop container-dependencies on job sidecar attach - #21119
Merged
Git-on-my-level merged 1 commit intoOct 10, 2026
Merged
Conversation
Cloud Run requires a startup probe on any container named in run.googleapis.com/container-dependencies; jobs cannot carry a reachable probe for this app. The done-file handshake already sequences the collector. Failure-Class: none
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Failure-Class
Failure-Class: none
Summary
Follow-up to #21090/#21113: run 38032652482's sidecar-attach step failed with
spec.template.spec.task_spec.containers[1].depends_on: Dependent container 'notifications-job-1' must have startup probe specified. Cloud Run enforces astartup probe on any container named in
run.googleapis.com/container-dependencies; jobs cannot carry a reachableprobe for the app (no serving port; TCP probes cannot reach the loopback
metrics listener). The deploy itself succeeded — only the attach failed — so
the job currently serves the fix singleton without telemetry.
Change
Drop
run.googleapis.com/container-dependenciesin the job attach path(
patch_job). Containers start in parallel; the collector's 30sscrape loop simply retries until the app binds 9090 (missed early scrapes
are re-sampled — counters are cumulative), and
PROMETHEUS_SIDECAR_DONE_FILEsequences the final drain at shutdown, not startup. Service
path is untouched. Test updated to pin the annotation's absence.
Validation
Product invariants affected
INV-DATA-1 (data-plane-continuity): attach-only change; the job's runtime
bindings, secrets, VPC, timeout and service account are untouched, and the
application container spec is unchanged apart from the previously attached
telemetry env/volumes.