-
Notifications
You must be signed in to change notification settings - Fork 66
59 lines (54 loc) · 2.28 KB
/
papyrus_nightly-tests.yml
File metadata and controls
59 lines (54 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Papyrus-Nightly-Tests
# We run gateway_integration_test at different times, to avoid a nonce race between parallel runs.
on:
schedule:
- cron: "30 22 * * *" # Uses ubuntu runner.
- cron: "30 0 * * *" # Uses macos runner.
workflow_dispatch: # Uses ubuntu runner.
env:
RUSTFLAGS: "-D warnings"
jobs:
GW-integration-test-ubuntu:
uses: ./.github/workflows/papyrus_nightly-tests-call.yml
with:
os: namespace-profile-medium-ubuntu-24-04-amd64
secrets:
INTEGRATION_TESTNET_NODE_URL: ${{ secrets.INTEGRATION_TESTNET_NODE_URL }}
INTEGRATION_TESTNET_SENDER_PRIVATE_KEY: ${{ secrets.INTEGRATION_TESTNET_SENDER_PRIVATE_KEY }}
SLACK_ALERT_CHANNEL: ${{ secrets.SLACK_ALERT_CHANNEL }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
if: github.event.schedule != '30 0 * * *'
GW-integration-test-macos:
uses: ./.github/workflows/papyrus_nightly-tests-call.yml
with:
os: macos-latest
secrets:
INTEGRATION_TESTNET_NODE_URL: ${{ secrets.INTEGRATION_TESTNET_NODE_URL }}
INTEGRATION_TESTNET_SENDER_PRIVATE_KEY: ${{ secrets.INTEGRATION_TESTNET_SENDER_PRIVATE_KEY }}
SLACK_ALERT_CHANNEL: ${{ secrets.SLACK_ALERT_CHANNEL }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
if: github.event.schedule == '30 0 * * *'
integration-test:
runs-on: macos-latest
if: github.event.schedule == '30 0 * * *'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: >
cargo test
--test latency_histogram
--test gateway_integration_test
--test feeder_gateway_integration_test
-- --include-ignored --skip test_gw_integration_testnet
# TODO(dvir): make this run only if the path 'crates/apollo_storage/src/db/**' (same path as in the CI) was changed on the
# last day and increase the number of repetitions.
random-table-test:
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: for run in {1..100}; do cargo test -p apollo_storage -- --include-ignored common_prefix_compare_with_simple_table_random; done