-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'perf/loading-time-berkeley' into perf/loading-time-develop
- Loading branch information
Showing
15 changed files
with
346 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "Shared steps for live testing jobs" | ||
description: "Shared steps for live testing jobs" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
- name: Make helper script executable | ||
run: chmod +x tests/scripts/wait-for-docker-services.sh | ||
shell: bash | ||
- name: Wait for Docker container services to be ready | ||
run: ./tests/scripts/wait-for-docker-services.sh 8080 | ||
shell: bash | ||
- name: Build SnarkyJS and Execute Tests | ||
env: | ||
TEST_TYPE: "Live integration tests" | ||
USE_LOCAL_NETWORK: "true" | ||
continue-on-error: false | ||
run: | | ||
git submodule update --init --recursive | ||
npm ci | ||
npm run build:node | ||
touch profiling.md | ||
sh run-ci-tests.sh | ||
cat profiling.md >> $GITHUB_STEP_SUMMARY | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Test SnarkyJS against real network | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- berkeley | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- berkeley | ||
- develop | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
main-branch: | ||
timeout-minutes: 25 | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.base_ref == 'main') | ||
services: | ||
mina-local-network: | ||
image: o1labs/mina-local-network:rampup-latest-lightnet | ||
env: | ||
NETWORK_TYPE: 'single-node' | ||
PROOF_LEVEL: 'none' | ||
ports: | ||
- 3085:3085 | ||
- 8080:8080 | ||
- 8181:8181 | ||
# TODO: Disable logging for container as the workaround of long post-job-cleanup phase | ||
# - Will be fixed by improving logging as part of the work on: | ||
# - https://hub.docker.com/r/o1labs/mina-local-network | ||
options: --log-driver=none | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Use shared steps for live testing jobs | ||
uses: ./.github/actions/live-tests-shared | ||
|
||
berkeley-branch: | ||
timeout-minutes: 25 | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/berkeley' || (github.event_name == 'pull_request' && github.base_ref == 'berkeley') | ||
services: | ||
mina-local-network: | ||
image: o1labs/mina-local-network:berkeley-latest-lightnet | ||
env: | ||
NETWORK_TYPE: 'single-node' | ||
PROOF_LEVEL: 'none' | ||
ports: | ||
- 3085:3085 | ||
- 8080:8080 | ||
- 8181:8181 | ||
# TODO: Disable logging for container as the workaround of long post-job-cleanup phase | ||
# - Will be fixed by improving logging as part of the work on: | ||
# - https://hub.docker.com/r/o1labs/mina-local-network | ||
options: --log-driver=none | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Use shared steps for live testing jobs | ||
uses: ./.github/actions/live-tests-shared | ||
|
||
develop-branch: | ||
timeout-minutes: 25 | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/develop' || (github.event_name == 'pull_request' && github.base_ref == 'develop') | ||
services: | ||
mina-local-network: | ||
image: o1labs/mina-local-network:develop-latest-lightnet | ||
env: | ||
NETWORK_TYPE: 'single-node' | ||
PROOF_LEVEL: 'none' | ||
ports: | ||
- 3085:3085 | ||
- 8080:8080 | ||
- 8181:8181 | ||
# TODO: Disable logging for container as the workaround of long post-job-cleanup phase | ||
# - Will be fixed by improving logging as part of the work on: | ||
# - https://hub.docker.com/r/o1labs/mina-local-network | ||
options: --log-driver=none | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Use shared steps for live testing jobs | ||
uses: ./.github/actions/live-tests-shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule bindings
updated
from b15734 to d77e99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let start = performance.now(); | ||
await import('../../snarky.js'); | ||
let time = performance.now() - start; | ||
|
||
console.log(`import jsoo: ${time.toFixed(0)}ms`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let start = performance.now(); | ||
await import('snarkyjs'); | ||
let time = performance.now() - start; | ||
|
||
console.log(`import jsoo: ${time.toFixed(0)}ms`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.