CLI for querying nightly logs and reports
Project description
Nightlies
This repository runs nightly integration tests for a set of repositories,
and it also publishes a small nightlies CLI for browsing the resulting logs
and reports on nightly.cs.washington.edu.
CLI
The published CLI is meant for one-shot use with uvx:
uvx nightlies setup https://nightly.cs.washington.edu/
uvx nightlies --help
uvx nightlies list
uvx nightlies log main
uvx nightlies status main
uvx nightlies download main
Run these commands from a Git checkout for a nightly-enabled repository; the
CLI infers the repo name from the GitHub remote. If you are somewhere else,
use -C to point the CLI at the checkout:
uvx nightlies -C ~/src/herbie list
uvx nightlies -C ~/src/herbie log main
To install it persistently instead of using uvx:
uv tool install nightlies
Before you can use list, log, status, or download, run
nightlies setup <url>. The setup command prompts for a username and
password, then saves the nightly URL and credentials in an OS-appropriate
data directory so later commands can reuse them.
Server
The rest of this repository is the nightly test runner and web server.
Usage
Start with a Github project, say $ORG/$PROJ. The nightly runner will:
- Download each branch with new commits
- Run
make nightly
So, to use this nightly runner, you will need to add a make rule
called nightly to your project. It should probably:
- Run your project on all its tests
- Upload the results somewhere
There's also Slack integration, so optionally your nightly run can post its results to your Slack channel.
Features
- Logs: The log directory
log/has per-nightly and per-branch logs - Dedup: A branch's nightly won't be run if no commit has happened since the last run.
- Baselines: The runner can be configured to run a nightly for the
masterbranch if any other branch is being run. - Slack support: The runner can be configured to report each run to a Slack channel, and even to include a custom URL, image, or data.
Installing
Clone the repository somewhere and create a file named
nightlies.conf. It should be formatted like this:
[pavpanchekha/nightly-test]
slack = uw/herbie
master = main
Each heading corresponds to one repository to test. Under each heading are key-value pairs in INI format. The supported configuration options are:
url: the URL of the git repository. This overrides the section name and thegithubkey.github: the Github repository name, inuser/repoformat. This overrides the section name.master: change default branch, for example tomain.slack: post after nightly runs; it's a Slack and channel name. The Slack is defined in the secrets file, the channel must be public.baseline: a branch to always run if any others are being runrun: When to run a branch. One ofbaseline,always, orcommit
Once things are configured, run:
sudo systemctl link nightlies.service
sudo systemctl link nightlies.timer
sudo systemctl enable nightlies.timer
That will run the nightly daemon every night.
Slack secrets are stored separately. For a slack = uw/herbie entry,
ensure the secrets file has a matching section like:
[uw]
token = xoxb-...
Releasing The CLI
The PyPI package is also named nightlies, so users can run it directly with
uvx nightlies.
Build artifacts locally with:
uv build --no-sources
Publishing is handled by GitHub Actions via PyPI Trusted Publishing. Configure
PyPI to trust .github/workflows/publish.yml, then publish a GitHub release to
upload the new version to PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nightlies-0.1.0.tar.gz.
File metadata
- Download URL: nightlies-0.1.0.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39b36ef53a2aee7857253496f8ee824a31a06abb4a359a9b0b5b9e63a60c8009
|
|
| MD5 |
0385ee30bc18ab068e551e45cbb1ab93
|
|
| BLAKE2b-256 |
5c72c22019051bf2fd52fa74c5c4c400f591260e3e957f41370b57feb1019e76
|
Provenance
The following attestation bundles were made for nightlies-0.1.0.tar.gz:
Publisher:
publish.yml on pavpanchekha/nightlies
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nightlies-0.1.0.tar.gz -
Subject digest:
39b36ef53a2aee7857253496f8ee824a31a06abb4a359a9b0b5b9e63a60c8009 - Sigstore transparency entry: 1487216552
- Sigstore integration time:
-
Permalink:
pavpanchekha/nightlies@0b4513f067d73c4d416e6fe414539cf439e4d830 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/pavpanchekha
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b4513f067d73c4d416e6fe414539cf439e4d830 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nightlies-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nightlies-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2622096fb684926be038f5d250f792e05e40a7bb18f4be66a9a9eca1ba72419
|
|
| MD5 |
c54412d7ea5aec33923cdeb37d098c8d
|
|
| BLAKE2b-256 |
36d5ea56e506e4643d92a5f3c3fc08c93c2fc6633adde5214bfbdddcdd79965a
|
Provenance
The following attestation bundles were made for nightlies-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on pavpanchekha/nightlies
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nightlies-0.1.0-py3-none-any.whl -
Subject digest:
b2622096fb684926be038f5d250f792e05e40a7bb18f4be66a9a9eca1ba72419 - Sigstore transparency entry: 1487216560
- Sigstore integration time:
-
Permalink:
pavpanchekha/nightlies@0b4513f067d73c4d416e6fe414539cf439e4d830 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/pavpanchekha
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b4513f067d73c4d416e6fe414539cf439e4d830 -
Trigger Event:
release
-
Statement type: