Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed Dec 22, 2023
1 parent cb5b45d commit 25bdea4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/setup-bench.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,23 @@ const benchmarkFolder = 'benchmark';
// remove node_modules from benchmark folder, maybe we could figure out better option to distribute bench source
await $`rm -rf ${join(pwd, benchmarkFolder, 'node_modules')}`;
await $`rm -rf ${join(pwd, benchmarkFolder, 'benchmarks', 'krausest', 'node_modules')}`;
console.log('FORK_NAME', FORK_NAME);

await $`rm -rf ${CONTROL_DIR}`;
await $`rm -rf ${EXPERIMENT_DIR}`;
await $`mkdir ${CONTROL_DIR}`;
await $`mkdir ${EXPERIMENT_DIR}`;

const isMacOs = os.platform() === 'darwin';
console.log('FORK_NAME', FORK_NAME);

const BENCHMARK_FOLDER = join(pwd, benchmarkFolder);

const rawUpstreamUrl = await $`git ls-remote --get-url upstream`;
const rawOriginUrl = await $`git ls-remote --get-url origin`;
const originUrlStr = rawOriginUrl.toString().trim();
let upstreamUrlStr = rawUpstreamUrl.toString().trim();
console.log('FORK_NAME', FORK_NAME);

if (upstreamUrlStr === 'upstream') {
// if we not inside fork, falling back to origin
Expand All @@ -70,6 +73,7 @@ const EXPERIMENT_URL = `http://localhost:${EXPERIMENT_PORT}`;
// const MARKERS = ['glimmer-render-1000-rows', 'glimmer-render-1000-rows-finished'];

// we can't do it in parallel on CI,
console.log('FORK_NAME', FORK_NAME);

// setup control
await within(async () => {
Expand Down

0 comments on commit 25bdea4

Please sign in to comment.