-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into rm/libp2p-dht-persist…
…ence
- Loading branch information
Showing
589 changed files
with
171,440 additions
and
5,198 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
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,8 @@ | ||
ESPRESSO_SEQUENCER_LIGHTWEIGHT=true | ||
ESPRESSO_SEQUENCER_DATABASE_PRUNE=true | ||
ESPRESSO_SEQUENCER_PRUNER_BATCH_SIZE=5000 | ||
ESPRESSO_SEQUENCER_PRUNER_TARGET_RETENTION=3d | ||
ESPRESSO_SEQUENCER_PRUNER_MINIMUM_RETENTION=12h | ||
ESPRESSO_SEQUENCER_PRUNER_INTERVAL=2h | ||
ESPRESSO_SEQUENCER_PRUNER_MAX_USAGE=7000 | ||
ESPRESSO_SEQUENCER_PRUNER_PRUNING_THRESHOLD="100 GB" |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ fi | |
use nix | ||
watch_file flake.nix | ||
watch_file flake.lock | ||
watch_file rust-toolchain.toml |
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
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 was deleted.
Oops, something went wrong.
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,93 @@ | ||
name: HotShot integration tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.run_number) || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
test_suites: | ||
# - test-ci-1 temporarily disabled for (https://github.com/EspressoSystems/espresso-sequencer/issues/2664) | ||
- test-ci-2 | ||
- test-ci-3 | ||
- test-ci-4 | ||
- test-ci-5 | ||
- test-ci-6-1 | ||
- test-ci-6-2 | ||
- test-ci-6-3 | ||
- test-ci-6-4 | ||
- test-ci-6-5 | ||
- test-ci-6-6 | ||
- test-ci-rest | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout Repository | ||
|
||
- name: Install Rust | ||
uses: mkroening/rust-toolchain-toml@main | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
name: Enable Rust Caching | ||
with: | ||
shared-key: "hotshot-tests" | ||
cache-on-failure: "true" | ||
save-if: ${{ github.ref == 'refs/heads/main' && matrix.test_suites == 'test-ci-rest' }} | ||
prefix-key: v0-hotshot | ||
|
||
- uses: taiki-e/install-action@just | ||
|
||
- uses: taiki-e/install-action@nextest | ||
|
||
- name: Show memory | ||
run: free -h | ||
|
||
- name: Collect Workflow Telemetry | ||
uses: catchpoint/workflow-telemetry-action@v2 | ||
with: | ||
comment_on_pr: false | ||
|
||
- name: Unit and integration tests for all crates in workspace | ||
run: | | ||
just hotshot::${{ matrix.test_suites }} | ||
timeout-minutes: 60 | ||
env: | ||
RUST_BACKTRACE: full | ||
|
||
test-examples: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout Repository | ||
|
||
- name: Install Rust | ||
uses: mkroening/rust-toolchain-toml@main | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
name: Enable Rust Caching | ||
with: | ||
shared-key: "hotshot-examples" | ||
cache-on-failure: "true" | ||
save-if: ${{ github.ref == 'refs/heads/main' }} | ||
prefix-key: v0-hotshot | ||
|
||
- uses: taiki-e/install-action@just | ||
|
||
- name: Test examples | ||
run: | | ||
just hotshot::example all-push-cdn -- --config_file ./hotshot-orchestrator/run-config.toml | ||
timeout-minutes: 20 |
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,58 @@ | ||
# This workflow ensures that the nix dev env works on ARM based macOS. | ||
name: Nix env macOS ARM | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
tags: | ||
# YYYYMMDD | ||
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*" | ||
pull_request: | ||
branches: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_LOG: info,libp2p=off | ||
|
||
jobs: | ||
nix-env-macos-arm: | ||
timeout-minutes: 60 | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v30 | ||
|
||
- name: Enable Cachix | ||
uses: cachix/cachix-action@v15 | ||
# If PR is from a non-collaborator (e. g. dependabot) the secrets are missing and the login to cachix fails. | ||
continue-on-error: true | ||
with: | ||
name: espresso-systems-private | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
extraPullNames: nix-community | ||
skipPush: ${{ github.actor == 'dependabot[bot]' }} | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
name: Enable Rust Caching | ||
with: | ||
prefix-key: v0-rust | ||
|
||
- name: Activate nix env | ||
run: nix develop --accept-flake-config -c echo Ok | ||
|
||
- name: Build rust crates | ||
run: nix develop --accept-flake-config -c just build | ||
|
||
- name: Build contracts | ||
run: nix develop --accept-flake-config -c forge build |
Oops, something went wrong.