fetchlogs

command
Version: v0.0.0-...-12eae6d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: BSD-3-Clause Imports: 16 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
t or T : Toggle theme light dark auto