mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
buildchecker: default to not writing to cache (#31895)
This commit is contained in:
parent
0d8f521ad3
commit
8488f4b1eb
@ -30,6 +30,8 @@ Writes aggregated historical data, including the builds it finds, to a few files
|
||||
```sh
|
||||
go run ./dev/buildchecker \
|
||||
-buildkite.token=$BUILDKITE_TOKEN \
|
||||
-builds.write-to=".tmp/builds.json" \
|
||||
-csv.write-to=".tmp/" \
|
||||
-failures.timeout=999 \
|
||||
-created.from="2021-08-01" \
|
||||
history
|
||||
|
||||
@ -57,8 +57,8 @@ func main() {
|
||||
flag.StringVar(&historyFlags.createdFromDate, "created.from", "", "date in YYYY-MM-DD format")
|
||||
flag.StringVar(&historyFlags.createdToDate, "created.to", "", "date in YYYY-MM-DD format")
|
||||
flag.StringVar(&historyFlags.buildsLoadFrom, "builds.load-from", "", "file to load builds from - if unset, fetches from Buildkite")
|
||||
flag.StringVar(&historyFlags.buildsWriteTo, "builds.write-to", ".tmp/builds.json", "file to write builds to (unused if loading from file)")
|
||||
flag.StringVar(&historyFlags.resultsCsvPath, "csv", ".tmp/", "path for CSV results exports")
|
||||
flag.StringVar(&historyFlags.buildsWriteTo, "builds.write-to", "", "file to write builds to (unused if loading from file)")
|
||||
flag.StringVar(&historyFlags.resultsCsvPath, "csv", "", "path for CSV results exports")
|
||||
flag.StringVar(&historyFlags.honeycombDataset, "honeycomb.dataset", "", "honeycomb dataset to publish to")
|
||||
flag.StringVar(&historyFlags.honeycombToken, "honeycomb.token", "", "honeycomb API token")
|
||||
|
||||
@ -238,7 +238,7 @@ func cmdHistory(ctx context.Context, flags *Flags, historyFlags *cmdHistoryFlags
|
||||
|
||||
if historyFlags.buildsWriteTo != "" {
|
||||
// Cache builds for ease of re-running analyses
|
||||
log.Printf("Caching discovered builts in %s\n", historyFlags.buildsWriteTo)
|
||||
log.Printf("Caching discovered builds in %s\n", historyFlags.buildsWriteTo)
|
||||
buildsJSON, err := json.Marshal(&builds)
|
||||
if err != nil {
|
||||
log.Fatal("json.Marshal(&builds): ", err)
|
||||
@ -289,6 +289,7 @@ func cmdHistory(ctx context.Context, flags *Flags, historyFlags *cmdHistoryFlags
|
||||
log.Printf("running analyses with options: %+v\n", checkOpts)
|
||||
totals, flakes, incidents := generateHistory(builds, createdTo, checkOpts)
|
||||
|
||||
// Prepare output
|
||||
if historyFlags.resultsCsvPath != "" {
|
||||
// Write to files
|
||||
log.Printf("Writing CSV results to %s\n", historyFlags.resultsCsvPath)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user