runfo 0.4.5
See the version list below for details.
dotnet tool install --global runfo --version 0.4.5
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local runfo --version 0.4.5
#tool dotnet:?package=runfo&version=0.4.5
nuke :add-package runfo --version 0.4.5
runfo
This is an abbreviation for "runtime info." It's a tool that provides quick summary status of builds from the dotnet/runtime repository.
Authentication
In order to use the tests
command you will need to provide a personal access
token to the tool. These can be obtained by visitting the following site:
The token can be passed to the tool in two ways:
- By using the
-token
command line argument - Using the
%RUNFO_AZURE_TOKEN%
environment variable
Build filtering
All commands that search builds use the same set of arguments to define the set of builds being searched:
definition
: the build definition id or name to get builds fromcount
: count of builds to search. Default is5
pr
: include PR builds in the searchproject
: the project to look for builds and definitions. Default ispublic
after
: filter to builds after the given datebefore
: filter to builds before the given date
The common pattern is to search the most recent hundred builds in a given definition to find occurances of a failure. For example:
> runfo search-timeline -d runtime -c 100 -pr -v "Central Directory Record"
This will search the last 100 builds from the runtime build definition for any failures that have the text "Central Directory Record".
Commands
These are the most common commands used to search for failures. More are
available and all have help available by using the -help
argument.
search-timeline
This command will search the timeline of the builds looking for a particular piece of text. There are two ways to filter the results:
name
: only search records matching this name. Default is search all recordsvalue
: find records whose issues match the following string
For example here is how we commonly filtered the Docker 126 exit code issue.
> runfo search-timeline -d runtime -c 100 -pr -v "Exit Code 126"
The -markdown
argument will print the output using markdown tables.
tests
This dumps the test information for the provided builds. Essentially it will
enumerate all of the builds and dump test failure information based on the
provided grouping. The grouping can be changed by passing the following
arguments to the -group
switch:
builds
: group the failures based on the build they occurred injobs
: group the failures by the job they occurred intests
: group the failures by the test name
Example of grouping by jobs:
P:\> runfo tests -d runtime -c 5 -g jobs
netcoreapp5.0-Linux-Release-arm64-CoreCLR_release-(Alpine.38.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.8-helix-arm64v8-a45aeeb-20190620184035
Builds 5
Test Cases 18
netcoreapp5.0-Linux-Release-arm64-CoreCLR_release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-helix-arm64v8-bfcd90a-20200127194925
Builds 4
Test Cases 16
<lots of clipped data>
Notice that the Alpine.38.Arm64 job failed on 5 builds which is also the amount we’re limiting the results too. So pretty good bet this configuration is busted in some way that requires investigation.
When investigating a particular test failure you can use -name
to limit the
results to test failures matching the provided name regex.
search-helix
This command dumps all of the console and core URIs for a given build. Using
-value
you can also get it to dump the console log content directly to the console
(instead of having to click through the output):
P:> runfo search-helix -b 505640
Console Logs
https://helix.dot.net/api/2019-06-17/jobs/6afd25d6-b672-4525-bcb3-92be7581046a/workitems/System.Security.Cryptography.OpenSsl.Tests/files/console.929d7000.log
https://helix.dot.net/api/2019-06-17/jobs/3cd49f06-a2f6-4a87-bda4-d33be9b16f83/workitems/System.Runtime.Tests/files/console.7fdd181f.log
Going to change tests to have this info soon as well.
FAQ
Why the name runfo?
I’m terrible at naming things. The tool was meant for “Runtime Information” so I shortened it to runfo cause I’m bad at naming.
Why this over the CI Council Dashboard
CI council dashboard is meant to represent overall repository CI health. It takes into account bigger issues like publishing, core-eng infra issues, etc … It also only follows a subset of the build definitions that we maintain. I wanted a quick and dirty tool for looking at test failures only as that’s the biggest source of flakiness that we directly control as a team.
I looked at the code and you should be ashamed of the hackery!
Indeed I am ashamed. I’ve used more SelectMany calls and Tuples in this tool as I did in the rest of my career combined 😄
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.7.1 | 613 | 4/28/2023 |
0.7.0 | 751 | 5/26/2022 |
0.6.6 | 495 | 9/6/2021 |
0.6.5 | 379 | 6/17/2021 |
0.6.4 | 428 | 3/5/2021 |
0.6.3 | 351 | 3/2/2021 |
0.6.1 | 541 | 10/22/2020 |
0.6.0 | 514 | 9/22/2020 |
0.5.4 | 516 | 5/20/2020 |
0.5.2 | 504 | 5/11/2020 |
0.5.1 | 487 | 5/7/2020 |
0.5.0 | 512 | 5/4/2020 |
0.4.5 | 520 | 4/2/2020 |
0.4.4 | 529 | 3/27/2020 |
0.4.3 | 504 | 3/23/2020 |
0.4.2 | 522 | 3/12/2020 |
0.4.1 | 463 | 3/6/2020 |
0.4.0 | 498 | 2/24/2020 |
0.3.1 | 503 | 3/6/2020 |
0.3.0 | 607 | 2/13/2020 |
0.2.0 | 566 | 2/3/2020 |
0.1.0 | 492 | 1/28/2020 |