Skip to content

Commit

Permalink
(BSR) chore(reassure): create baseline (#7277)
Browse files Browse the repository at this point in the history
* (BSR) chore(reassure): create baseline

* Removed branch check in job
  • Loading branch information
cgerrard-pass authored Nov 25, 2024
1 parent 136044b commit b657b4e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 24 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/dev_on_pull_request_reassure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn install --force
- name: Run performance testing script
run: ./scripts/reassure_test.sh
run: yarn test:perf
- name: Run Danger.js to publish scores in PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ coverage/
/dist
*.back

# Reassure
.reassure/
# Reassure: Ignore everything in the .reassure/ directory
.reassure/*
# Except for the baseline.perf file
!.reassure/baseline.perf

# ESLint
.eslintcache
Expand Down
9 changes: 9 additions & 0 deletions .reassure/baseline.perf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{"metadata":{"branch":"BSR-perf-test-baseline","commitHash":"02c935e9ab425f5c2115e69ffeadc4101da77be4"}}
{"name":"<Offer /> Performance test for Offer page","runs":10,"meanDuration":37.5,"stdevDuration":2.3213980461973533,"durations":[41,41,39,38,37,37,37,36,35,34],"meanCount":3,"stdevCount":0,"counts":[3,3,3,3,3,3,3,3,3,3]}
{"name":"<Favorites /> Performance test for Favorites page","runs":10,"meanDuration":29.6,"stdevDuration":1.6465452046971292,"durations":[32,31,31,31,30,29,29,28,28,27],"meanCount":6,"stdevCount":0,"counts":[6,6,6,6,6,6,6,6,6,6]}
{"name":"<Bookings /> Performance test for Bookings page","runs":10,"meanDuration":46.7,"stdevDuration":1.4181364924121764,"durations":[49,48,47,47,47,47,47,46,45,44],"meanCount":11,"stdevCount":0,"counts":[11,11,11,11,11,11,11,11,11,11]}
{"name":"<EndedBookings /> Performance test for EndedBookings page","runs":10,"meanDuration":15.8,"stdevDuration":1.0327955589886446,"durations":[18,17,16,16,16,15,15,15,15,15],"meanCount":7,"stdevCount":0,"counts":[7,7,7,7,7,7,7,7,7,7]}
{"name":"<Venue /> Performance test for Venue page","runs":10,"meanDuration":1.2,"stdevDuration":0.42163702135578396,"durations":[2,2,1,1,1,1,1,1,1,1],"meanCount":2,"stdevCount":0,"counts":[2,2,2,2,2,2,2,2,2,2]}
{"name":"<SearchLanding /> Search Landing Page - Performance test for Search Landing page","runs":10,"meanDuration":6.9,"stdevDuration":0.9944289260117531,"durations":[8,8,8,7,7,7,7,6,6,5],"meanCount":5,"stdevCount":0,"counts":[5,5,5,5,5,5,5,5,5,5]}
{"name":"<SearchResults /> Search Results - Performance test for Search Results page","runs":10,"meanDuration":6.9,"stdevDuration":0.7378647873726218,"durations":[8,8,7,7,7,7,7,6,6,6],"meanCount":5,"stdevCount":0,"counts":[5,5,5,5,5,5,5,5,5,5]}
{"name":"<Profile /> Performance test for Profile page","runs":10,"meanDuration":3.1,"stdevDuration":0.737864787372622,"durations":[4,4,4,3,3,3,3,3,2,2],"meanCount":5,"stdevCount":0,"counts":[5,5,5,5,5,5,5,5,5,5]}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"test:e2e:ios:testing:cloud": "./scripts/run_e2e_tests.sh cloud ios testing",
"test:lint": "eslint . --ext .js,.ts,.tsx,.mjs --cache",
"test:perf": "NODE_ENV=performance NODE_OPTIONS='--no-experimental-fetch' TEST_RUNNER_ARGS='--runInBand --testMatch \"<rootDir>/**/*.perf.test.tsx\"' yarn reassure",
"test:perf:update": "yarn test:perf --baseline",
"test:sw": "node scripts/service-worker-test.mjs",
"test:storybook:accessibility": "TZ=UTC axe-storybook --storybook-address http://localhost:6006",
"test:types": "tsc",
Expand Down
21 changes: 0 additions & 21 deletions scripts/reassure_test.sh

This file was deleted.

0 comments on commit b657b4e

Please sign in to comment.