Skip to content

Commit 40c0b7e

Browse files
authored
fix(deploy): stagger cve5-to-osv cron schedule off the top of the hour (#6503)
## Overview Staggers the `cve5-to-osv` CronJob schedule from `0 * * * *` to `5 * * * *` to avoid colliding with top-of-the-hour GitHub fetch bursts from `importer`/`gitter` over the shared GKE Cloud NAT IP. *Note: This pull request was prepared with AI assistance.* ## Details - In both `oss-vdb-test` and `oss-vdb`, `cve5-to-osv` intermittently fails to shallow-clone `CVEProject/cvelistV5` right at `:00` with `fatal: could not read Username for 'https://github.com': No such device or address` / `fatal: expected flush after ref listing` (GitHub returning HTTP `401` to anonymous `git-upload-pack` traffic from the shared Cloud NAT IP). - Cloud Logging confirmed `gitter` simultaneously hits the same `401` across public GitHub repos at `:00:01Z` when `importer` (`*/15 * * * *`) triggers concurrent `ForceUpdate` fetches. In most cases, cloning succeeds 2–10 minutes later once the `:00` burst subsides. - Moving `cve5-to-osv` in `deployment/clouddeploy/gke-workers/base/feeds/cve5-to-osv.yaml` to `5 * * * *` shifts it clear of the `:00` burst while still completing (~35 min runtime) before `combine-to-osv` runs at `45 * * * *`. ## Testing - Validated all three Kustomize overlays (`oss-vdb-test`, `oss-vdb`, `private`) with `kubectl kustomize` and confirmed `cve5-to-osv` renders with `schedule: 5 * * * *`. - Ran `poetry run tools/lint_and_format.sh` — passed. <!-- AI-PR -->
1 parent 578e626 commit 40c0b7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎deployment/clouddeploy/gke-workers/base/feeds/cve5-to-osv.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
cronLastSuccessfulTimeMins: "180"
77
spec:
88
timeZone: Australia/Sydney
9-
schedule: "0 * * * *"
9+
schedule: "5 * * * *"
1010
concurrencyPolicy: Forbid
1111
jobTemplate:
1212
spec:

0 commit comments

Comments
 (0)