Visit https://hud.pytorch.org and see https://github.com/pytorch/pytorch/wiki/Using-hud.pytorch.org for usage details.
This project was bootstrapped with Create React App. To build locally, install dependencies and run in develop mode:
git clone https://github.com/pytorch/pytorch-ci-hud.git ci-hud
cd ci-hud
yarn install
npm start # start a development server on localhost:3000
The code is routed from App.js
to places like:
PrDisplay.js
: handles the per commit/PR pages with test resultsGitHubStatusDisplay.js
: shows status for a set of commits on master or a release branch. This also depends on this lambda function to read GitHubstatus
andcheck_run
webhooks and store them in S3 as JSON.
Submitting a PR will trigger a preview build on Netlify so others can preview the changes. Once merged, GitHub Actions will deploy the new site to the gh-pages
branch.
Log-ins don't work on the Netlify deploy previews since the GitHub app has hud.pytorch.org hardcoded as its callback URL. To see changes that require the GitHub API in a preview you can manually copy your OAuth token. In the JS console on hud.pytorch.org, run localStorage.getItem("gh_pat")
. Then in the preview's console, run localStorage.setItem("gh_pat", "<the token>")
.
The data backing the HUD is updated via a series of cron-based GitHub Actions. See .github/
for details.
This repository uses the MIT License, as found in the LICENSE file.