Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add bench-modexp flow to CI script #762

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
- run: cargo make build-contracts
- name: Run Contract cargo clippy
run: cargo make clippy
- name: Run cargo clippy
run: cargo clippy
udeps:
name: Udeps
runs-on: [self-hosted, heavy]
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@ jobs:
run: |
cache-util save cargo_git cargo_registry yarn_cache
cache-util msave aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target

test_modexp:
name: Test modexp suite (mainnet, testnet)
runs-on: [ self-hosted, heavy ]
steps:
- name: Potential broken submodules fix
run: |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v3
- name: Restore cache
run: |
cache-util restore cargo_git cargo_registry yarn_cache
cache-util restore aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target
- name: Test mainnet bench-modexp
run: cargo make --profile mainnet bench-modexp
- name: Test testnet bench-modexp
run: cargo make --profile testnet bench-modexp
- name: Save cache
run: |
cache-util save cargo_git cargo_registry yarn_cache
cache-util msave aurora-engine-target@generic@${{ hashFiles('**/Cargo.lock') }}:target

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
15 changes: 12 additions & 3 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ args = [
"${CARGO_FEATURES_TEST}",
]

[tasks.bench-modexp]
[tasks.bench-modexp-test]
condition = { profiles = ["mainnet", "testnet", "custom"] }
category = "Test"
command = "${CARGO}"
Expand All @@ -353,12 +353,21 @@ dependencies = [
"build-test",
"test-contracts",
"test-workspace",
"bench-modexp",
]

[tasks.bench-modexp]
category = "Test"
dependencies = [
"build-test",
"bench-modexp-test",
]

[tasks.test]
category = "Test"
run_task = "test-flow"
dependencies = [
"test-flow",
"bench-modexp-test",
]

[tasks.default]
condition = { profiles = ["mainnet", "testnet", "localnet", "development", "custom"] }
Expand Down