Skip to content

Commit

Permalink
fix: [skip ci] fix the benchmarking workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed Feb 27, 2023
1 parent 6a433c7 commit 87e737c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/e2e-benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Run Benchmarks

on:
# Triggers the workflow every month
# Triggers the workflow every Monday at 5am
schedule:
- cron: "0 0 * * 1"
- cron: "0 5 * * 1"
workflow_dispatch:


Expand All @@ -29,6 +29,9 @@ jobs:

- name: Install Dependencies
run: npm ci

- name: Build the project
run: npm run build

- name: Run benchmarks
run: npm run benchmark
Expand All @@ -38,6 +41,6 @@ jobs:
with:
commit_message: "chore: [skip-ci] update benchmark results"
branch: master
file_pattern: report.png
file_pattern: '**/report.png'
commit_user_name: "Mark Bench[bot] 💪🏼"
commit_user_email: markbench[bot]@users.noreply.github.com
2 changes: 1 addition & 1 deletion test/antibot-services/live-testing/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function runWith(engine: FingeprintingEngine): Promise<TestResult> {
const page = await context.newPage();

const start = Date.now();
if (await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 5000 }).catch(async () => {
if (await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 10000 }).catch(async () => {
return page.goto(url, { waitUntil: 'domcontentloaded', timeout: 10000 }).catch((x) => {
console.log(`[${engine.getEngineName()}] ❌ ${x.message}`);
unreachable++;
Expand Down

0 comments on commit 87e737c

Please sign in to comment.