summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2023-03-13 13:24:16 +0100
committerGitHub <noreply@github.com>2023-03-13 13:24:16 +0100
commit92c388761a0d77dcc7ccd0a811a6435589bb94bc (patch)
tree1192bf278e363f6da88a4a2a995e26519efba3f2 /tools
parent3f26ee86048243e71a6616b1c1b3879dffabc01a (diff)
wpt: only tag daily runs as master (#18155)
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).
Diffstat (limited to 'tools')
-rw-r--r--tools/upload_wptfyi.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/upload_wptfyi.js b/tools/upload_wptfyi.js
index d57347eb0..0b48c330c 100644
--- a/tools/upload_wptfyi.js
+++ b/tools/upload_wptfyi.js
@@ -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];