Skip to content

fix(ops): drop container-dependencies on job sidecar attach - #21119

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/recap-deploy-fix
Oct 10, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/recap-deploy-fix

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

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 a
startup probe on any container named in
run.googleapis.com/container-dependencies; jobs cannot carry a reachable
probe 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-dependencies in the job attach path
(patch_job). Containers start in parallel; the collector's 30s
scrape loop simply retries until the app binds 9090 (missed early scrapes
are re-sampled — counters are cumulative), and PROMETHEUS_SIDECAR_DONE_FILE
sequences the final drain at shutdown, not startup. Service
path is untouched. Test updated to pin the annotation's absence.

Validation

  • backend suites: 50 passed (sidecar attach, metrics listener, daily-summary monitoring contract)

Product invariants affected

  • INV-DATA-1

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.

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T07:19:21.772221Z 4ebcf12 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit e01e5ce into BasedHardware:main Oct 10, 2026
54 checks passed
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.

1 participant