fetchlogs

command
v0.0.0-...-870f2d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

README

Go Reference

golang.org/x/build/cmd/fetchlogs

Fetchlogs downloads build failure logs from the Go dashboard so they can be accessed and searched from the local file system.

Documentation

Overview

Fetchlogs downloads build failure logs from the Go dashboard so they can be accessed and searched from the local file system.

It organizes these logs into two directories created in the directory specified by the -dir flag (which typically defaults to ~/.cache/fetchlogs). The log/ directory contains all log files named the same way they are named by the dashboard (which happens to be the SHA-1 of their contents). The rev/ directory contains symlinks back to these logs named

rev/<ISO 8601 commit date>-<git revision>/<builder>

Fetchlogs will reuse existing log files and revision symlinks, so it only has to download logs that are new since the last time it was run.

This makes failures easily searchable with standard tools. For example, to list the revisions and builders with a particular failure, use:

grep -lR <regexp> rev | sort

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL