Unverified Commit 4f360649 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update docker image for stats action (#40032)

Noticed the stats action was leveraging the wasm fallback incorrectly
which seems to be due to the necessary glibc version not being available
in the docker image we were leveraging so this updates the base docker
image used so the wasm fallback isn't needed and the dev binary is
correctly used again.

Fixes:
https://github.com/vercel/next.js/runs/8004433626?check_suite_focus=true
Fixes:
https://github.com/vercel/next.js/runs/7988021570?check_suite_focus=true
parent ca807d66
FROM node:14-buster FROM node:16-bullseye
LABEL com.github.actions.name="Next.js PR Stats" LABEL com.github.actions.name="Next.js PR Stats"
LABEL com.github.actions.description="Compares stats of a PR with the main branch" LABEL com.github.actions.description="Compares stats of a PR with the main branch"
......
...@@ -58,9 +58,15 @@ async function runConfigs( ...@@ -58,9 +58,15 @@ async function runConfigs(
} }
const buildStart = Date.now() const buildStart = Date.now()
await exec(`cd ${statsAppDir} && ${statsConfig.appBuildCommand}`, false, { console.log(
env: yarnEnvValues, await exec(
}) `cd ${statsAppDir} && ${statsConfig.appBuildCommand}`,
false,
{
env: yarnEnvValues,
}
)
)
curStats.General.buildDuration = Date.now() - buildStart curStats.General.buildDuration = Date.now() - buildStart
// apply renames to get deterministic output names // apply renames to get deterministic output names
...@@ -153,9 +159,15 @@ async function runConfigs( ...@@ -153,9 +159,15 @@ async function runConfigs(
} }
const secondBuildStart = Date.now() const secondBuildStart = Date.now()
await exec(`cd ${statsAppDir} && ${statsConfig.appBuildCommand}`, false, { console.log(
env: yarnEnvValues, await exec(
}) `cd ${statsAppDir} && ${statsConfig.appBuildCommand}`,
false,
{
env: yarnEnvValues,
}
)
)
curStats.General.buildDurationCached = Date.now() - secondBuildStart curStats.General.buildDurationCached = Date.now() - secondBuildStart
if (statsConfig.appDevCommand) { if (statsConfig.appDevCommand) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment