Skip to content

Commit

Permalink
build: switch to wpt.fyi prod (denoland#11201)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Jul 1, 2021
1 parent e9e286a commit 32b9aa5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ jobs:
github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/main'
env:
WPT_FYI_STAGING_USER: ${{ secrets.WPT_FYI_STAGING_USER }}
WPT_FYI_STAGING_PW: ${{ secrets.WPT_FYI_STAGING_PW }}
WPT_FYI_USER: ${{ secrets.WPT_FYI_USER }}
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
run: |
./target/release/deno run --allow-all \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wpt_epoch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Upload wpt results to wpt.fyi
env:
WPT_FYI_STAGING_USER: ${{ secrets.WPT_FYI_STAGING_USER }}
WPT_FYI_STAGING_PW: ${{ secrets.WPT_FYI_STAGING_PW }}
WPT_FYI_USER: ${{ secrets.WPT_FYI_USER }}
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
run: |
deno run -A ./tools/upload_wptfyi.js wptreport.json --from-raw-file
8 changes: 4 additions & 4 deletions tools/upload_wptfyi.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import { gzip } from "https://deno.land/x/[email protected]/gzip/mod.ts";

const user = Deno.env.get("WPT_FYI_STAGING_USER");
const password = Deno.env.get("WPT_FYI_STAGING_PW");
const user = Deno.env.get("WPT_FYI_USER");
const password = Deno.env.get("WPT_FYI_PW");

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

Expand All @@ -27,7 +27,7 @@ if (fromRawFile) {

const basicAuthToken = btoa(`${user}:${password}`);

const resp = await fetch("https://staging.wpt.fyi/api/results/upload", {
const resp = await fetch("https://wpt.fyi/api/results/upload", {
method: "POST",
body: form,
headers: {
Expand All @@ -47,7 +47,7 @@ if (!resp.ok) {
if (!fromRawFile && Deno.args.includes("--ghstatus")) {
const githubToken = Deno.env.get("GITHUB_TOKEN");
const taskId = body.split(" ")[1];
const url = `https://staging.wpt.fyi/results/?run_id=${taskId}`;
const url = `https://wpt.fyi/results/?run_id=${taskId}`;
const commit = Deno.args[0];
const resp = await fetch(
`https://api.github.com/repos/denoland/deno/statuses/${commit}`,
Expand Down

0 comments on commit 32b9aa5

Please sign in to comment.