[pkgsite-metrics] cmd/ejobs: add -since flag to filter by date

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
May 11, 2026, 12:54:37 PM (11 hours ago) May 11
to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, golang...@luci-project-accounts.iam.gserviceaccount.com, Ethan Lee, Jonathan Amsterdam, golang-co...@googlegroups.com

Gopher Robot submitted the change with unreviewed changes

Unreviewed changes

2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: cmd/ejobs/main.go
Insertions: 1, Deletions: 1.

@@ -88,7 +88,7 @@
"file with modules to use: each line is MODULE_PATH VERSION NUM_IMPORTERS")
fs.BoolVar(&noDeps, "nodeps", false, "do not download dependencies for modules")
fs.StringVar(&since, "since", "",
- "only analyze modules with version_updated_at >= this date (YYYY-MM-DD or RFC3339). Uses system-generated timestamp to prevent faking.")
+ "only analyze modules with version_updated_at >= this date (YYYY-MM-DD or RFC3339). Uses the timestamp when the module version was ingested by the system.")
},
},
{"wait", "JOBID",
```

Change information

Commit message:
cmd/ejobs: add -since flag to filter by date

This change adds a (optional) -since flag to ejobs start command to filter
modules by their version_updated_at timestamp before enqueuing tasks.
This helps to skip analyzing older modules and speed up jobs.

It also updates internal/pkgsitedb and internal/worker to support this.
Change-Id: I13f1b3ae2373ceceb919581225a7de77e186deeb
Reviewed-by: Jonathan Amsterdam <j...@google.com>
Reviewed-by: Ethan Lee <etha...@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hya...@gmail.com>
Files:
  • M cmd/ejobs/main.go
  • M internal/pkgsitedb/db.go
  • M internal/pkgsitedb/db_plan9.go
  • M internal/pkgsitedb/db_test.go
  • M internal/worker/analysis.go
  • M internal/worker/enqueue.go
  • M internal/worker/govulncheck_enqueue.go
Change size: M
Delta: 7 files changed, 48 insertions(+), 12 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: pkgsite-metrics
Gerrit-Branch: master
Gerrit-Change-Id: I13f1b3ae2373ceceb919581225a7de77e186deeb
Gerrit-Change-Number: 774280
Gerrit-PatchSet: 5
Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Ethan Lee <etha...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Jonathan Amsterdam <j...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages