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

Feature/reporting #1

Open
wants to merge 59 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
3ea6ff1
adding new test
Oct 18, 2024
1bab397
add parameter
Oct 18, 2024
6c63706
bugfix, test again
Oct 18, 2024
f382958
remove quotes
Oct 18, 2024
a738c5a
remove v from list of version
Oct 18, 2024
a6e2c6f
next test
Oct 18, 2024
cf04811
updating node version and adding install
Oct 18, 2024
fde8bba
fix syntax
Oct 18, 2024
4516d72
calling via node
Oct 18, 2024
840f3d0
archive the results
Oct 18, 2024
ca3a23f
list results
Oct 18, 2024
7bd5fd0
skip fail
Oct 18, 2024
69ff0c8
fixing the tar
Oct 18, 2024
b6d49de
fixing the archive name
Oct 18, 2024
c1c42c2
making the matrix smaller
Oct 19, 2024
67741c6
logging jest directly
Oct 19, 2024
a59e5d7
adding other git forks to test
Oct 23, 2024
819b77e
fixing yaml
Oct 23, 2024
701799e
list version
Oct 23, 2024
cfa750f
force install of different o1js version
Oct 23, 2024
e0ebca8
remove more chars
Oct 23, 2024
d18a647
using two slashes
Oct 23, 2024
f16bdb6
removing + from the filename
Oct 23, 2024
21bbc1d
lets try splitting into -
Oct 23, 2024
3f7d40d
script for running act
Oct 23, 2024
fa34586
adding more branches
Oct 23, 2024
900b9bd
fix sed, need single quotes
Oct 23, 2024
f8fa7b7
not using sed but installing from the url
Oct 23, 2024
be06af8
comment out some tests for speed
Oct 23, 2024
fa68497
install save
Oct 23, 2024
48ee017
install via gitsubmodules
Oct 23, 2024
59f6864
shellcheck
Oct 23, 2024
d5b8760
fix syntax
Oct 23, 2024
a26af9b
need to run npm install recursivly
Oct 23, 2024
2e83652
use ./ to indicat a file
Oct 23, 2024
595e6fe
act
Oct 23, 2024
81a97c3
copy the dist over
Oct 23, 2024
d34f31e
recommend shallow?
Oct 23, 2024
f977f54
forcing shallow
Oct 23, 2024
1d03380
skip build errors so we dont fail everything
Oct 23, 2024
9300acd
adding more tests
Oct 23, 2024
649de0b
adding more versions and making sure they have .git in the name
Oct 23, 2024
896f239
removing duplicate
Oct 23, 2024
32428ee
showdown
Oct 23, 2024
a368648
update readme with commands, see notes.org for more.
Oct 24, 2024
765b3ef
retesting only jobs that failed.
Oct 25, 2024
44d22a4
merging multiple lines
Oct 25, 2024
72d883f
Update node.js.yml
jmikedupont2 Oct 25, 2024
26d7375
all branches
Oct 25, 2024
f91c4b6
more bugfixes
Oct 25, 2024
52cf794
fixing syntax
Oct 25, 2024
a7ca9b8
adding typedoc so it resolves
Oct 25, 2024
e2cdb92
filtered tests
Oct 25, 2024
cbb2d0d
copy vendor individually
Oct 25, 2024
0a33b4d
starting process
Oct 26, 2024
8e04411
adding process functions
Oct 27, 2024
3d83a22
more notes
Oct 27, 2024
7e86a30
now creating a pivot table
Oct 28, 2024
96e7145
adding reporting
Nov 15, 2024
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
186 changes: 176 additions & 10 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
workflow_dispatch:
push:
branches: [ "main" ]
#branches: [ "main","feature/multi-o1js", "feature/other-branches" ]
pull_request:
branches: [ "main" ]

Expand All @@ -16,18 +14,186 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
o1js-version:

# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#0598bd09ee5870a38772ccf030c03835ecc1bd0f" #Fri Oct 4 16:49:08 2024 18 Ressac-No1/feature/dynamic-arrays
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#526a5cc6297a0e3d338aeade87c881f8a6a7c185" #Fri Oct 4 19:29:00 2024 18 Ressac-No1/feature/update-tokencontract-transfer
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#bc27bc376e0bf5ae096c0c5ad13098539b373326" #Tue Oct 1 00:06:12 2024 22 Ressac-No1/release/v1.8.1
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#bf0e09e61461e05c1fc6e8a617343d1623bdae7f" #Tue Oct 1 16:11:37 2024 21 Ressac-No1/2024-09-refactor-offchain-state
# - "git+https://github.com/aerius-labs/o1js.git#5ac9d5e383c779a1a5d4ce42049ea84f43e65849" #Tue Oct 15 00:47:32 2024 8 aerius-labs/release/v1.4.1
# - "git+https://github.com/dfstio/o1js.git#59a6c584e8024ec46ac18acc8e43ee125009b36d" #Sat Oct 5 14:57:43 2024 17 dfstio/main
# - "git+https://github.com/dfstio/o1js.git#8dfd13ee65cbdafe2009dc98f635d555560c3501" #Mon Oct 7 16:07:42 2024 15 dfstio/export-indexed-merkle-map-base
# - "git+https://github.com/iam-dev/o1js.git#b669783887a7df3ad36a51e358aa2eae207073bb" #Tue Oct 15 00:15:57 2024 8 iam-dev/release/v0.18.1
# - "git+https://github.com/krzysztofwujs/o1js.git#0f8ff810237102d26071c8f2b8fb49d0e5d252e3" #Thu Oct 10 13:21:42 2024 13 krzysztofwujs/main
# - "git+https://github.com/krzysztofwujs/o1js.git#2ad7b592b18102412674395095dcc72934a56251" #Tue Oct 15 01:20:55 2024 8 krzysztofwujs/release/v1.8.1
# - "git+https://github.com/lambdaclass/o1js.git#0d9e858777370c5c7ccf002f9b0cb0510cb3a20e" #Tue Oct 15 00:17:57 2024 8 lambdaclass/release/v0.16.3
# - "git+https://github.com/marekyggdrasil/o1js.git#e27a6fdd0887486a17d038d2f9bc97f4b726630a" #Tue Oct 15 00:37:46 2024 8 marekyggdrasil/release/v1.3.2
# - "git+https://github.com/o1-labs/o1js.git#075e8d5858cf9af4ac71397208b9232f5a436e74" #Tue Oct 22 14:32:31 2024 0 origin/test-codeowners
# - "git+https://github.com/o1-labs/o1js.git#103a7f9ffa812c69d9202ba0731c86989ada2f43" #Tue Oct 22 15:43:37 2024 0 origin/test-codeowners-2
# - "git+https://github.com/o1-labs/o1js.git#117694ca361d179d4a65741ac7b1d72ba4c7ad23" #Wed Oct 23 06:21:39 2024 0 origin/main-in-develop
# - "git+https://github.com/o1-labs/o1js.git#3634cdd14a0170c3874abc7f42dacc7ac38f21a4" #Thu Oct 17 18:28:41 2024 5 origin/brian/permisions-precondition
# - "git+https://github.com/o1-labs/o1js.git#3d33cb4034e77b5ebe8401f77b6e17ccfd8b9f2a" #Tue Oct 22 14:31:09 2024 0 origin/main
# - "git+https://github.com/o1-labs/o1js.git#4774682535a191fd5edcb0dae054d79ae96e8114" #Tue Oct 22 12:15:03 2024 1 origin/new-api
# - "git+https://github.com/o1-labs/o1js.git#4e1f855f6314ace8e1c16929531d5ccb3e7f9876" #Wed Oct 16 13:39:30 2024 6 origin/meta/setup-codeowners
# - "git+https://github.com/o1-labs/o1js.git#4fcd62cdde9fda32416b7d29c51e6cf52d3c8d8f" #Tue Oct 15 18:42:59 2024 7 origin/v2
# - "git+https://github.com/o1-labs/o1js.git#526a5cc6297a0e3d338aeade87c881f8a6a7c185" #Fri Oct 4 19:29:00 2024 18 origin/feature/update-tokencontract-transfer
# - "git+https://github.com/o1-labs/o1js.git#5e5b8423b5a7ff5e1005551cc2aaea182b9f2a9c" #Wed Oct 23 08:13:30 2024 0 origin/feature/non-pure-zkprogram-inputs
# - "git+https://github.com/o1-labs/o1js.git#6eb17094635175d0f817812a0f1c8fd208a70562" #Fri Oct 11 13:59:57 2024 11 origin/chunking-mvp-bug
# - "git+https://github.com/o1-labs/o1js.git#729f550a2be0df65d8b7db4d1a062e89b33d27b7" #Fri Oct 18 12:46:10 2024 5 origin/feature/lookup-runtime-tables
# - "git+https://github.com/o1-labs/o1js.git#74121af790d7a0978b93afa8914a3f0b7bed72a7" #Wed Sep 25 18:39:22 2024 27 origin/develop
# - "git+https://github.com/o1-labs/o1js.git#8d856e67994934a10b6e3d40d689b7b08904d660" #Mon Oct 21 14:49:37 2024 1 origin/release/v1.9.1
# - "git+https://github.com/o1-labs/o1js.git#914572272fbcd2190710dac3526f506e346d598d" #Mon Oct 21 15:20:43 2024 1 origin/merge-main-v2-1
# - "git+https://github.com/o1-labs/o1js.git#ad774e191a5331f3106bf704e277dc33109e625c" #Mon Oct 21 15:47:17 2024 1 origin/v1
# - "git+https://github.com/o1-labs/o1js.git#b04520d100a01ed4b1f018155acb65d17f57ef57" #Mon Oct 21 21:18:09 2024 1 origin/v3
# - "git+https://github.com/o1-labs/o1js.git#fa3e1ef0bdde2960fc8ddf0334e26ebb77b1fe4a" #Sat Oct 19 13:58:39 2024 3 origin/2024-10-bugfix-lb-performance
# - "git+https://github.com/o1-labs/o1js.git#fcd6ebf0799a078b26abcbaf26ba9071182d1f82" #Fri Oct 18 12:47:21 2024 5 origin/feature/dynamic-arrays
# - "git+https://github.com/rpanic/o1js.git#52773246910225cd15d08d5f7b11bd3996bf14b3" #Thu Oct 3 13:50:54 2024 19 rpanic/main
# - "git+https://github.com/rpanic/o1js.git#ca9bb8855bd3061877e61ff87ae6a51096010e16" #Fri Oct 4 07:41:20 2024 19 rpanic/rpanic/expose-dummy-vk
# - "git+https://github.com/rpanic/o1js.git#d75cf6cb6928c85e6323728e577c2f031f7fde25" #Thu Oct 10 11:33:31 2024 13 rpanic/fix/state-fetch-token
# - "git+https://github.com/rpanic/o1js.git#f842f7b603fa04c182bee6fc0b0ecdd3329718dd" #Tue Oct 15 01:41:35 2024 8 rpanic/release/v1.8.1
# - "git+https://github.com/satyambnsal/o1js.git#4cd57a3d00e2a3b75248c7f8ec3a371169b2f51a" #Tue Oct 15 01:26:44 2024 8 satyambnsal/release/v0.18.1
# - "git+https://github.com/zksecurity/o1js.git#4c605ff3e7d010ac109cfecdd664a52f1ec4e5c6" #Thu Oct 10 11:58:27 2024 13 zksecurity/zksecurity-ci
# - "git+https://github.com/zksecurity/o1js.git#de4ade3644c24899a03d7d55386abe633bdab899" #Wed Oct 16 13:46:14 2024 6 zksecurity/main
# - "git+https://github.com/zksecurity/o1js.git#e94bb7e4ef2283ac285beaedfb498243a47c851f" #Fri Oct 11 19:35:25 2024 11 zksecurity/fix/package-size
# - "git+https://github.com/zksecurity/o1js.git#ee527961c427d43ea709fce9a0fc3b56c0db3d72" #Fri Oct 11 15:05:32 2024 11 zksecurity/feature/provable-proofs-4
# - "git+https://github.com/zksecurity/o1js.git#f7ac92e752af8d44c37b649017a08ce5aa6b8760" #Thu Oct 10 19:48:51 2024 12 zksecurity/experiment/uint8-value
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#59a6c584e8024ec46ac18acc8e43ee125009b36d" #Sat Oct 5 14:57:43 2024 17 Ressac-No1/main
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#5e67f233af4ad1212d7be4208127b81790952dc6" #Mon Oct 7 07:03:19 2024 16 Ressac-No1/feature/blake2b
# - "git+https://github.com/GACWR/o1js.git#74121af790d7a0978b93afa8914a3f0b7bed72a7" #Wed Sep 25 18:39:22 2024 27 GACWR/main
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#74121af790d7a0978b93afa8914a3f0b7bed72a7" #Wed Sep 25 18:39:22 2024 27 Ressac-No1/develop
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#74f4aee35143a063ff686d62a960b5e8933930bb" #Sun Sep 29 18:34:20 2024 23 Ressac-No1/new-api
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#7a0c8f6222b1522080a7efcfef82c64bf38842e5" #Fri Oct 4 19:32:06 2024 18 Ressac-No1/brian/permisions-precondition
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#92fc7286af9fbd2b541b4aeccf697b5746ed14ba" #Tue Oct 8 13:04:50 2024 15 Ressac-No1/feature/stateful-MKT-extension
# - "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#eb56a567f006f1d6aa9fb2254cfa5c12dfd92e8c" #Thu Sep 26 12:17:41 2024 27 Ressac-No1/v2
# - "git+https://github.com/rpanic/o1js.git#dc44ec443d3271319c6004261659ddb069c51659" #Tue Oct 1 01:48:52 2024 22 rpanic/release/v0.18.1
# grep -F -f parts.txt .github/workflows/node.js.yml
- "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#0598bd09ee5870a38772ccf030c03835ecc1bd0f" #Fri Oct 4 16:49:08 2024 18 Ressac-No1/feature/dynamic-arrays
- "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#526a5cc6297a0e3d338aeade87c881f8a6a7c185" #Fri Oct 4 19:29:00 2024 18 Ressac-No1/feature/update-tokencontract-transfer
- "git+https://github.com/aerius-labs/o1js.git#5ac9d5e383c779a1a5d4ce42049ea84f43e65849" #Tue Oct 15 00:47:32 2024 8 aerius-labs/release/v1.4.1
- "git+https://github.com/iam-dev/o1js.git#b669783887a7df3ad36a51e358aa2eae207073bb" #Tue Oct 15 00:15:57 2024 8 iam-dev/release/v0.18.1
- "git+https://github.com/lambdaclass/o1js.git#0d9e858777370c5c7ccf002f9b0cb0510cb3a20e" #Tue Oct 15 00:17:57 2024 8 lambdaclass/release/v0.16.3
- "git+https://github.com/marekyggdrasil/o1js.git#e27a6fdd0887486a17d038d2f9bc97f4b726630a" #Tue Oct 15 00:37:46 2024 8 marekyggdrasil/release/v1.3.2
- "git+https://github.com/o1-labs/o1js.git#075e8d5858cf9af4ac71397208b9232f5a436e74" #Tue Oct 22 14:32:31 2024 0 origin/test-codeowners
- "git+https://github.com/o1-labs/o1js.git#103a7f9ffa812c69d9202ba0731c86989ada2f43" #Tue Oct 22 15:43:37 2024 0 origin/test-codeowners-2
- "git+https://github.com/o1-labs/o1js.git#117694ca361d179d4a65741ac7b1d72ba4c7ad23" #Wed Oct 23 06:21:39 2024 0 origin/main-in-develop
- "git+https://github.com/o1-labs/o1js.git#3d33cb4034e77b5ebe8401f77b6e17ccfd8b9f2a" #Tue Oct 22 14:31:09 2024 0 origin/main
- "git+https://github.com/o1-labs/o1js.git#4774682535a191fd5edcb0dae054d79ae96e8114" #Tue Oct 22 12:15:03 2024 1 origin/new-api
- "git+https://github.com/o1-labs/o1js.git#4fcd62cdde9fda32416b7d29c51e6cf52d3c8d8f" #Tue Oct 15 18:42:59 2024 7 origin/v2
- "git+https://github.com/o1-labs/o1js.git#526a5cc6297a0e3d338aeade87c881f8a6a7c185" #Fri Oct 4 19:29:00 2024 18 origin/feature/update-tokencontract-transfer
- "git+https://github.com/o1-labs/o1js.git#5e5b8423b5a7ff5e1005551cc2aaea182b9f2a9c" #Wed Oct 23 08:13:30 2024 0 origin/feature/non-pure-zkprogram-inputs
- "git+https://github.com/o1-labs/o1js.git#914572272fbcd2190710dac3526f506e346d598d" #Mon Oct 21 15:20:43 2024 1 origin/merge-main-v2-1
- "git+https://github.com/o1-labs/o1js.git#b04520d100a01ed4b1f018155acb65d17f57ef57" #Mon Oct 21 21:18:09 2024 1 origin/v3
- "git+https://github.com/satyambnsal/o1js.git#4cd57a3d00e2a3b75248c7f8ec3a371169b2f51a" #Tue Oct 15 01:26:44 2024 8 satyambnsal/release/v0.18.1
- "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#74f4aee35143a063ff686d62a960b5e8933930bb" #Sun Sep 29 18:34:20 2024 23 Ressac-No1/new-api
- "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#92fc7286af9fbd2b541b4aeccf697b5746ed14ba" #Tue Oct 8 13:04:50 2024 15 Ressac-No1/feature/stateful-MKT-extension
- "git+https://github.com/Ressac-No1/o1js-ZKADS-extension.git#eb56a567f006f1d6aa9fb2254cfa5c12dfd92e8c" #Thu Sep 26 12:17:41 2024 27 Ressac-No1/v2
- "git+https://github.com/rpanic/o1js.git#dc44ec443d3271319c6004261659ddb069c51659" #Tue Oct 1 01:48:52 2024 22 rpanic/release/v0.18.1


# ]

node-version: [
# 18.x
20.x
# , 21.x
# , 22.x
]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: meta-introspector/checkout@v4

- name: Sets clean version name
env:
O1JS_VERSION: ${{ matrix.o1js-version }}
run: |
#!/bin/bash
#remove Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?, Carriage return \r, Line feed \n, Backslash \, Forward slash /
MODIFIED_O1JS_VERSION=${O1JS_VERSION//[\+\"\<\>\|\*\?\r\n\/\:\.\#\/]/-}
O1JS_REPO=$(echo "${O1JS_VERSION}" | cut -d/ -f4-5 | cut -d. -f1)
O1JS_REF=$(echo "${O1JS_VERSION}" | cut -d# -f2)
echo "MODIFIED_O1JS_VERSION=${MODIFIED_O1JS_VERSION}"
{ echo "MODIFIED_O1JS_VERSION=${MODIFIED_O1JS_VERSION}"; echo "O1JS_REPO=${O1JS_REPO}"; echo "O1JS_REF=${O1JS_REF}"; } >> "$GITHUB_ENV"

#https://github.com/zkcloudworker/zkcloudworker-lib.git
#
#* [new branch] feature/open_deps ->
- uses: meta-introspector/checkout@v4
with:
repository : meta-introspector/zkcloudworker-lib
ref : feature/open_deps
path: vendor/zkcloudworker-lib

- uses: meta-introspector/checkout@v4
with:
repository : ${{ env.O1JS_REPO }}
ref : ${{ env.O1JS_REF }}
path: vendor/o1js


- run: |
git submodule init
git config -f .gitmodules submodule.src/mina.shallow true
git config -f .gitmodules submodule.src/o1js-bindings.shallow true
GIT_LFS_SKIP_SMUDGE=1 git submodule update --recursive --force --recommend-shallow
npm install # get the reqs
npm ci
npm run build || echo skip errors on build 1
working-directory: vendor/o1js

- run: |
npm install # get the reqs
npm ci
npm run build --if-present || echo skip error on build 2
working-directory: vendor/zkcloudworker-lib

- name: Use Node.js ${{ matrix.node-version }}
uses: meta-introspector/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: cp test-env.json env.json
- run: npm ci
#- run: yarn install
- run: npm run build --if-present
- run: npm test
# replace the version number

#- run: sed -e's!O1JSVERSION!${{ matrix.o1js-version }}!g' package.json.template> package.json
# copy the template without the o1js version in there
- run: cp package.json.template package.json
- run: cp test-env.json env.json

# install the vendor versions from subdirs
- run: npm install --save --force ./vendor/zkcloudworker-lib
- run: npm install --save --force ./vendor/o1js/

- run: npm install --force
# rm -rf node_modules
# npm cache clean --force
# npm install
- run: npm ci --force
- run: npm run build --if-present || echo skip error on build 3
- run: npm ls
# copy the recursive build down
- run: cp -vr vendor/zkcloudworker-lib/dist/* dist/ || echo skip
- run: cp -vr vendor/o1js/dist/* dist/ || echo skip

- run: |
node --prof --heap-prof --cpu-prof --expose-gc --enable-source-maps --stack-trace-limit=1000 ./node_modules/.bin/jest --runInBand --logHeapUsage || echo skip fail
- name: list
run: ls -latr
# - name: list
# run: find .
- name: mkdir profile
run: mkdir ./profile
- name: move2
run: |
mv isolate-*-v8.log ./profile || echo ok
mv Heap.*.heapprofile ./profile || echo ok
mv CPU.*.cpuprofile ./profile || echo ok

- name: archive the results
run: tar -czf perf.data.tar.gz ./profile/


- name: Archive results
uses: meta-introspector/upload-artifact@v4
with:
name: ${{ matrix.node-version }}${{ env.MODIFIED_O1JS_VERSION }}-perf.data.tar.gz
path: perf.data.tar.gz
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ flycheck_*.el
addresses.json
isolate-*-v8.log
/node_trace.1.log
/*-perf.data.tar.gz/
/perf.data.tar.gz/
/combinedfile.parquet
/cpureport1.txt
/parts2.txt
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
report:
ts-node ./report.tsx
test4:x
ts-node ./select_sum_csv.ts

#(require 'ansi-color)
#(add-hook 'compilation-filter-hook 'ansi-color-compilation-filter)
test5:
ts-node ./process_multi.ts


test_convert:
ts-node ./process3.ts
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,55 @@ Output file is .clinic/613699.clinic-flame
`clinic flame --visualize-only .clinic/613699.clinic-flame`
`clinic doctor --collect-only -- node "/home/mdupont/.local/share/pnpm/global/5/node_modules/jest/bin/jest.js" "tests/sideloading.nft1.190.test.ts"`
`clinic doctor --visualize-only .clinic/628061.clinic-doctor`


```
gh repo set-default
gh run download

```

# Prof help
`node --help | grep prof `
--cpu-prof Start the V8 CPU profiler on start up,
and write the CPU profile to disk
before exit. If --cpu-prof-dir is not
specified, write the profile to the
--cpu-prof-dir=... Directory where the V8 profiles
generated by --cpu-prof will be placed.
Does not affect --prof.
--cpu-prof-interval=... specified sampling interval in
microseconds for the V8 CPU profile
generated with --cpu-prof. (default:
--cpu-prof-name=... specified file name of the V8 CPU
profile generated with --cpu-prof
--heap-prof Start the V8 heap profiler on start up,
and write the heap profile to disk
before exit. If --heap-prof-dir is not
specified, write the profile to the
--heap-prof-dir=... Directory where the V8 heap profiles
generated by --heap-prof will be
--heap-prof-interval=... specified sampling interval in bytes
for the V8 heap profile generated with
--heap-prof. (default: 512 * 1024)
--heap-prof-name=... specified file name of the V8 heap
profile generated with --heap-prof
help system profilers to translate
--prof Generate V8 profiler output.
--prof-process process V8 profiler output generated
using --prof
# test procedure

1. yaml shellcheck
`yaml_shellcheck .github/workflows/node.js.yml `

2. nektos/act to test github actions

`bash ./act.sh` will test the github actions locally (require gh and act)

## exract hashs from short tests
```
node read_reports.js > parts.txt
grep -F -f parts.txt .github/workflows/node.js.yml
````
this filters the test list to the failed ones
2 changes: 2 additions & 0 deletions act.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
act -s GITHUB_TOKEN="$(gh auth token)" -s ACTIONS_RUNTIME_TOKEN="$(gh auth token)" --verbose
16 changes: 16 additions & 0 deletions list-versions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from git import Repo
import time
import datetime
now = time.time()
r = Repo(".")
for x in r.remotes:
for url in x.urls:
url = url.replace("[email protected]:","git+https://github.com/")
for z in x.refs:
if (z.is_valid()):
cd = time.gmtime(z.commit.committed_date)
diff = now -z.commit.committed_date
diff2 = datetime.timedelta(seconds=diff)
days = diff2.days
if days < 30:
print("\t\""+str(url)+"#" +str(z.commit)+ "\", #" + time.asctime(cd) + " " + str(days) + " " + z.name)
Loading