Skip to content

Commit

Permalink
wpt: only tag daily runs as master (denoland#18155)
Browse files Browse the repository at this point in the history
This PR updates the WPT upload script so that it only labels runs that
come from the daily WPT job as "master".

This is so that only the daily synchronized runs get selected when
viewing dashboards such as
[this](https://wpt.fyi/results/?label=master&label=experimental&product=deno&product=node.js&product=chrome&product=edge&product=firefox&product=safari&aligned&view=subtest&q=deno%3A%21missing).
  • Loading branch information
panva committed Mar 13, 2023
1 parent 3f26ee8 commit 92c3887
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wpt_epoch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ jobs:
WPT_FYI_USER: deno
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
run: |
deno run -A --lock=tools/deno.lock.json ./tools/upload_wptfyi.js wptreport.json --from-raw-file
deno run -A --lock=tools/deno.lock.json ./tools/upload_wptfyi.js wptreport.json --from-raw-file --daily-run
7 changes: 6 additions & 1 deletion tools/upload_wptfyi.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ const user = Deno.env.get("WPT_FYI_USER");
const password = Deno.env.get("WPT_FYI_PW");

const fromRawFile = Deno.args.includes("--from-raw-file");
const dailyRun = Deno.args.includes("--daily-run");

const form = new FormData();
form.set("labels", "master,actions");
if (dailyRun) {
form.set("labels", "master,actions");
} else {
form.set("labels", "actions");
}

if (fromRawFile) {
const file = Deno.args[0];
Expand Down

0 comments on commit 92c3887

Please sign in to comment.