-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1536 from o1-labs/merge-back-to-berkeley
Merge main back to berkeley
- Loading branch information
Showing
353 changed files
with
34,063 additions
and
23,438 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
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,39 @@ | ||
name: 'Shared steps for live testing jobs' | ||
description: 'Shared steps for live testing jobs' | ||
inputs: | ||
mina-branch-name: | ||
description: 'Mina branch name in use by service container' | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Wait for Mina network readiness | ||
uses: o1-labs/wait-for-mina-network-action@v1 | ||
with: | ||
mina-graphql-port: 8080 | ||
max-attempts: 60 | ||
polling-interval-ms: 10000 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- name: Build o1js and execute tests | ||
env: | ||
USE_CUSTOM_LOCAL_NETWORK: 'true' | ||
run: | | ||
git submodule update --init --recursive | ||
npm ci | ||
npm run build | ||
touch profiling.md | ||
bash run-ci-live-tests.sh | ||
cat profiling.md >> $GITHUB_STEP_SUMMARY | ||
shell: bash | ||
- name: Upload Mina logs | ||
uses: actions/upload-artifact@v3 | ||
continue-on-error: true | ||
if: always() | ||
with: | ||
if-no-files-found: ignore | ||
name: mina-logs-${{ inputs.mina-branch-name }} | ||
path: /tmp/*.log | ||
retention-days: 5 |
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,43 @@ | ||
name: Benchmark o1js | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- berkeley | ||
- develop | ||
pull_request: | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
benchmarks: | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node: [20] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.JS ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Build o1js and execute benchmarks on ${{ matrix.os }} and Node.JS ${{ matrix.node }} | ||
env: | ||
GIT_BRANCH: ${{ github.head_ref || github.ref_name }} | ||
INFLUXDB_URL: ${{ secrets.INFLUXDB_URL }} | ||
INFLUXDB_ORG: ${{ secrets.INFLUXDB_ORG }} | ||
INFLUXDB_BUCKET: ${{ secrets.INFLUXDB_BUCKET }} | ||
INFLUXDB_TOKEN: ${{ secrets.INFLUXDB_TOKEN }} | ||
METRICS_SOURCE_ENVIRONMENT: 'o1js GitHub Actions' | ||
METRICS_BASE_BRANCH_FOR_COMPARISON: 'main' | ||
run: | | ||
git submodule update --init --recursive | ||
npm ci | ||
npm run build | ||
echo 'Running o1js benchmarks.' | ||
node --enable-source-maps --stack-trace-limit=1000 src/build/run.js benchmark/runners/with-cloud-history.ts --bundle >>benchmarks.log 2>&1 | ||
cat benchmarks.log >> $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
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,92 @@ | ||
name: Test o1js against the real network | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- berkeley | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- berkeley | ||
- develop | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
main-branch: | ||
timeout-minutes: 45 | ||
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:o1js-main-latest-lightnet | ||
env: | ||
NETWORK_TYPE: 'single-node' | ||
PROOF_LEVEL: 'none' | ||
ports: | ||
- 3085:3085 | ||
- 5432:5432 | ||
- 8080:8080 | ||
- 8181:8181 | ||
- 8282:8282 | ||
volumes: | ||
- /tmp:/root/logs | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Use shared steps for live testing jobs | ||
uses: ./.github/actions/live-tests-shared | ||
with: | ||
mina-branch-name: o1js-main | ||
|
||
berkeley-branch: | ||
timeout-minutes: 45 | ||
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 | ||
- 5432:5432 | ||
- 8080:8080 | ||
- 8181:8181 | ||
- 8282:8282 | ||
volumes: | ||
- /tmp:/root/logs | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Use shared steps for live testing jobs | ||
uses: ./.github/actions/live-tests-shared | ||
with: | ||
mina-branch-name: berkeley | ||
|
||
develop-branch: | ||
timeout-minutes: 45 | ||
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 | ||
- 5432:5432 | ||
- 8080:8080 | ||
- 8181:8181 | ||
- 8282:8282 | ||
volumes: | ||
- /tmp:/root/logs | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Use shared steps for live testing jobs | ||
uses: ./.github/actions/live-tests-shared | ||
with: | ||
mina-branch-name: develop |
Oops, something went wrong.