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
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