Skip to content

feat(vanir): cut over vanir-signatures to Cloud Run sandbox and disable local execution - #6504

Merged
another-rex merged 2 commits into
google:masterfrom
another-rex:vanir-sandbox-pr2
Dec 4, 2026
Merged

another-rex merged 2 commits into
google:masterfrom
another-rex:vanir-sandbox-pr2

Conversation

@another-rex

@another-rex another-rex commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Overview

(AI-assisted PR)

PR 2 of 2 (follow-up to #6403) to switch vanir-signatures to the Cloud Run Gen2 vanir-sandbox service and remove local unsandboxed Python execution.

Details

  • Disable local execution (go/cmd/vanir_signatures, go/internal/vanir):
    • Require VANIR_SANDBOX_URL / -sandbox-url and remove PythonGenerator fallback
    • Default -batch-size=1 and -max-workers=15 directly
    • Remove unused per-batch temp dir creation in Runner (distroless-safe)
  • Distroless Go image (go/Dockerfile, deployment/build-and-stage.yaml):
    • Switch vanir-signatures target to gcr.io/distroless/static-debian12 (no Python or git in the orchestrator image)
    • Drop unused --build-context poetry from build-vanir-signatures
  • GKE CronJob cutover (deployment/clouddeploy/gke-workers/):
    • Remove highend nodeSelector/tolerations and downsize resources to 1 CPU / 2Gi (2 CPU / 4Gi limit)
    • Set VANIR_SANDBOX_URL to the deterministic Cloud Run URLs for oss-vdb-test and oss-vdb
  • Docs: Update AGENTS.md

Prod Rollout Note: vanir-sandbox is already live and healthy on oss-vdb-test. Before unpausing vanir-signatures on prod (oss-vdb), make sure prod Terraform (vanir-sandbox + roles/run.invoker), the Cloud Deploy promotion of vanir-sandbox to production-vanir-sandbox, and the prod osv-worker Workload Identity ServiceAccount are applied.

agy

@codecov-commenter

codecov-commenter commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 8.33333% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.49%. Comparing base (dd2e8ea) to head (2df4d22).

Files with missing lines Patch % Lines
go/cmd/vanir_signatures/main.go 0.00% 9 Missing ⚠️
go/internal/vanir/runner.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6504      +/-   ##
==========================================
- Coverage   58.51%   58.49%   -0.03%     
==========================================
  Files         229      228       -1     
  Lines       24681    24570     -111     
==========================================
- Hits        14442    14371      -71     
+ Misses      10236    10196      -40     
  Partials        3        3              
Flag Coverage Δ
go 62.29% <8.33%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@another-rex
another-rex marked this pull request as ready for review December 4, 2026 00:29

@cuixq cuixq left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just one question about the hard coded project number in Cloud Run URL.

value: "172.24.1.3"
# Deterministic Cloud Run URL: https://<service>-<project-number>.<region>.run.app
- name: VANIR_SANDBOX_URL
value: "https://vanir-sandbox-175272184261.us-west2.run.app"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we make project-number a variable instead of hard-coded here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I think it's a bit annoying to actually add to the format it into the variable. I'll have a look.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asked the AI to implement something, but I don't like the replacement stuff, so sticking with the hard coded id for now.

@another-rex
another-rex merged commit d36665e into google:master Dec 4, 2026
27 of 28 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.

3 participants