Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow to test local fast-element build #5994

Merged
merged 50 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2325860
update back to pr
May 17, 2022
cb7ecf5
add specific operation
May 17, 2022
23f2395
fix workflow syntax
May 17, 2022
b50d6fb
add version test
May 17, 2022
482226a
add fast-element version
May 17, 2022
46e4fef
move local implementation to separate test
May 17, 2022
f9c0f2a
fix scripts, res dist
May 17, 2022
4d57b86
test git hook
May 17, 2022
c1a40c8
revert
May 17, 2022
8c15a0a
Update ci-benchmarks.yml
prudepixie May 17, 2022
9ab1a7c
Update ci-benchmarks.yml
prudepixie May 17, 2022
112ac07
upload artifact instead of download
May 17, 2022
48117aa
Update ci-benchmarks.yml
prudepixie May 17, 2022
fad4a7d
add local results
May 17, 2022
d66b394
report local build res
May 18, 2022
d2cf729
use benchmark script
May 18, 2022
8c4a3f0
git res path
May 18, 2022
ea6867e
get rid of pr-bench-name
May 18, 2022
bee4daa
add fozen lockfile to setupCommand
May 18, 2022
ec0beb3
add some logs
May 18, 2022
4db6779
remove cache steps
May 18, 2022
be0f927
redo
May 18, 2022
5bf39b1
add local
May 18, 2022
211dc3c
trigger on pr
May 18, 2022
2255c3b
add post commit hook
May 18, 2022
ef849ae
pre-push
May 18, 2022
be3eed3
trigger hook
May 18, 2022
0e7b605
test hook
May 18, 2022
02083ad
test with versioned workspace
May 19, 2022
ac16a4a
Update ci-benchmarks.yml
prudepixie May 19, 2022
82a26cc
delete steps from jobs
May 19, 2022
4be2d0e
hard code branch name
May 19, 2022
5f89d02
Update ci-benchmarks.yml
prudepixie May 19, 2022
f8e7a0b
hardcode local fast-element version
May 19, 2022
1bd7f26
take out swapping package version prop from config
May 23, 2022
4e63c61
change to local build
May 23, 2022
c380bca
install before building benchmark
May 23, 2022
9e103c9
fix build
May 23, 2022
d5a908e
update local path to file
May 23, 2022
cfc4c1f
add to nohoist
May 23, 2022
e24be32
install
May 23, 2022
027656f
Update ci-benchmarks.yml
prudepixie May 23, 2022
4e250e7
depe
May 23, 2022
452b36a
add working workflow
May 23, 2022
3a829cf
delete some scripts
May 23, 2022
2bb249c
add packageVersion
May 23, 2022
7ccc77a
turn off no hoist for packages
May 23, 2022
24cf18d
add local test
May 23, 2022
935e831
clean up
May 23, 2022
b1f8e4d
getting branchname spawn seems to time out
May 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 29 additions & 59 deletions .github/workflows/ci-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
name: Fast Element benchmark jobs

on:
pull_request:
branches:
- master
- releases/*
- features/*
- users/*
push:
paths:
- 'packages/web-components/fast-element/**'
on: [pull_request]

jobs:
setup:
Expand All @@ -21,80 +12,59 @@ jobs:
with:
initialize: true
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo '::set-output name=dir::$(yarn cache dir)'

- name: Set up node_modules cache
uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
*/*/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install package dependencies
run: yarn install --frozen-lockfile --ignore-scripts --prefer-offline
- name: Prepare workspaces
run: yarn prepare

test:
name: Run all operations for test benchmark
update10th:
name: Run update 10th element benchmark
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: yarn install --frozen-lockfile --ignore-scripts --prefer-offline
- name: Run tachometer
- name: Run tachometer and generate results file
run: |
cd packages/utilities/fast-benchmarks
yarn install
yarn run benchmark:fast-element:test

# Upload this benchmarks results
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: packages/utilities/fast-benchmarks/results/fast-element_test.json

# update10th:
# name: Run update 10th element benchmark
# needs: [setup]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: "16.x"
# - name: Run tachometer and generate results file
# run: |
# cd packages/utilities/fast-benchmarks
# yarn install
# yarn run benchmark:fast-element:update10th

# - name: Upload results
# uses: actions/upload-artifact@v2
# with:
# name: results
# path: packages/utilities/fast-benchmarks/results/fast-element_test-update10th.json
path: packages/utilities/fast-benchmarks/results/fast-element_test-update10th.json
create10k:
name: Run create 10k element benchmark
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16.x"
- name: Run tachometer and generate results file
run: |
cd packages/utilities/fast-benchmarks
yarn install
yarn run benchmark:fast-element:test:local
# Upload this benchmarks results
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: packages/utilities/fast-benchmarks/results/fast-element_localTest-create10k.json

report_results:
name: Report Results
needs: [test, update10th]
needs: [update10th, create10k]
runs-on: ubuntu-latest
steps:
# Download the results artifact
- uses: actions/download-artifact@v2
with:
name: results
path: packages/utilities/fast-benchmarks/results

# Read all the results and post comment
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@v2
Expand Down
Loading