Skip to content

Commit

Permalink
chore(ci): remove release mode from papyrus ci (starkware-libs#3078)
Browse files Browse the repository at this point in the history
commit-id:6f4f3c9c
  • Loading branch information
Itay-Tsabary-Starkware authored Jan 2, 2025
1 parent c29bbbc commit 146c28d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/papyrus_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
- name: Build node
run: |
mkdir data
cargo build -r -p papyrus_node
cargo build -p papyrus_node
- name: Run executable
run: >
target/release/papyrus_node --base_layer.node_url ${{ secrets.CI_BASE_LAYER_NODE_URL }}
target/debug/papyrus_node --base_layer.node_url ${{ secrets.CI_BASE_LAYER_NODE_URL }}
& sleep 30 ; kill $!
executable-run-no-rpc:
Expand All @@ -51,11 +51,11 @@ jobs:
- name: Build node
run: |
mkdir data
cargo build -r -p papyrus_node --no-default-features
cargo build -p papyrus_node --no-default-features
- name: Run executable
run: >
target/release/papyrus_node --base_layer.node_url ${{ secrets.CI_BASE_LAYER_NODE_URL }}
target/debug/papyrus_node --base_layer.node_url ${{ secrets.CI_BASE_LAYER_NODE_URL }}
& sleep 30 ; kill $!
# FIXME: Job is currently running out of disk space, error is hidden inside the `Annoatations`
Expand All @@ -67,7 +67,7 @@ jobs:
# - uses: ./.github/actions/bootstrap

# - name: Build node
# run: cargo build -r -p papyrus_node
# run: cargo build -p papyrus_node

# - name: Run p2p sync end-to-end test
# run: scripts/papyrus/p2p_sync_e2e_test/main.sh ${{ secrets.CI_BASE_LAYER_NODE_URL }}
Expand All @@ -78,12 +78,12 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- run: >
cargo test -r
cargo test
--test latency_histogram
--test gateway_integration_test
--test feeder_gateway_integration_test
-- --include-ignored --skip test_gw_integration_testnet;
cargo run -r -p papyrus_node --bin central_source_integration_test --features="futures-util tokio-stream"
cargo run -p papyrus_node --bin central_source_integration_test --features="futures-util tokio-stream"
test-no-rpc:
runs-on: starkware-ubuntu-latest-medium
Expand Down Expand Up @@ -129,5 +129,5 @@ jobs:
- 'crates/papyrus_storage/src/db/**'
- uses: ./.github/actions/bootstrap
# repeat this job 32 times. this is a random test for part of the code that may cause a corrupted database.
- run: for run in {1..32}; do cargo test -r -p papyrus_storage -- --include-ignored common_prefix_compare_with_simple_table_random; done
- run: for run in {1..32}; do cargo test -p papyrus_storage -- --include-ignored common_prefix_compare_with_simple_table_random; done
if: steps.changes.outputs.target_directory == 'true'
14 changes: 7 additions & 7 deletions .github/workflows/papyrus_nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
- run: mkdir data

- name: Build node
run: cargo build -r -p papyrus_node
run: cargo build -p papyrus_node

- name: Run executable
run: >
target/release/papyrus_node --base_layer.node_url ${{ secrets.CI_BASE_LAYER_NODE_URL }}
target/debug/papyrus_node --base_layer.node_url ${{ secrets.CI_BASE_LAYER_NODE_URL }}
& sleep 30 ; kill $!
test:
Expand All @@ -59,7 +59,7 @@ jobs:


- run: |
cargo test -r -p papyrus_node
cargo test -p papyrus_node
env:
SEED: 0
Expand All @@ -69,7 +69,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- run: cargo build -r -p papyrus_load_test
- run: cargo build -p papyrus_load_test

integration-test:
runs-on: macos-latest
Expand All @@ -78,12 +78,12 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- run: >
cargo test -r
cargo test
--test latency_histogram
--test gateway_integration_test
--test feeder_gateway_integration_test
-- --include-ignored --skip test_gw_integration_testnet;
cargo run -r -p papyrus_node --bin central_source_integration_test --features="futures-util tokio-stream"
cargo run -p papyrus_node --bin central_source_integration_test --features="futures-util tokio-stream"
# TODO(dvir): make this run only if the path 'crates/papyrus_storage/src/db/**' (same path as in the CI) was changed on the
# last day and increase the number of repetitions.
Expand All @@ -92,4 +92,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- run: for run in {1..100}; do cargo test -r -p papyrus_storage -- --include-ignored common_prefix_compare_with_simple_table_random; done
- run: for run in {1..100}; do cargo test -p papyrus_storage -- --include-ignored common_prefix_compare_with_simple_table_random; done

0 comments on commit 146c28d

Please sign in to comment.