Skip to content

Build and deploy both pilot binaries in the Cloud Build pipeline - #153

Merged
zmanian merged 1 commit into
mainfrom
improve-cloudbuild-both-binaries
Jun 26, 2026
Merged

zmanian merged 1 commit into
mainfrom
improve-cloudbuild-both-binaries

Conversation

@zmanian

@zmanian zmanian commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Why

The pilot runs two services — trace-commons-ingest and trace-commons-upload-claim-issuer — and changes land in either. The issuer holds the device-key upload-claim logic, the per-user subject derivation (#152), and the /v1/enroll handler (#150). The original pipeline built/deployed only ingest, so an issuer-side change deploys silently as a no-op (this bit the #152 deploy — the per-user subject didn't go live until the issuer was built separately).

What

  • cloudbuild.yaml now builds both binaries in one run (ingest with the cloud features; the issuer without — it doesn't use GCS/KMS/NEAR-AI), publishing each to gs://tc-pilot-artifacts-20260518/binaries/<bin>/<tag>/ with its own latest.txt. The second cargo build reuses the first's compiled deps, so the marginal cost is small.
  • deploy/pilot-gcp/pull-and-install.sh deploys both by default (issuer first so its JWKS is up before ingest restarts and re-fetches it), each sha-verified with backup + rollback. ingest / issuer args deploy just one.

Validated

One Cloud Build run (E2_HIGHCPU_32, ~6.5 min) built both binaries and updated both latest.txt pointers.

cloudbuild.yaml now builds trace-commons-upload-claim-issuer alongside
trace-commons-ingest (the issuer holds the per-user subject + /v1/enroll handlers;
deploying only ingest silently skips issuer-side changes). pull-and-install.sh
deploys both by default (issuer first so its JWKS is up before ingest re-fetches
it), with per-binary ingest/issuer overrides. Validated: one Cloud Build run
publishes both binaries + latest pointers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zmanian
zmanian merged commit 9074254 into main Jun 26, 2026
8 checks passed
@zmanian
zmanian deleted the improve-cloudbuild-both-binaries branch June 26, 2026 01:45
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