Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
f5d6790
feat(submitter): Build and submit transaction for EVM chains (#6148)
ameten May 7, 2025
2eef441
fix(validator): point to fixed ethers-rs fork (#6156)
yjamin May 7, 2025
c7f1b49
fix: build-programs.sh downloading newer solana CLI releases and the …
tkporter May 7, 2025
31ee1c6
feat(sdk): fiat collateral token derivation support in sdk [eng-1552…
xeno097 May 7, 2025
462f0da
feat(submitter): evm GasLimitEstimator (#6159)
daniel-savu May 7, 2025
764642b
feat: may 6 testnet batch (#6151)
paulbalaji May 7, 2025
5281378
feat: fix message status not being stored correctly (#6153)
kamiyaa May 7, 2025
55fbe7e
fix: Scraper - Use previous compact mode version in Cosmos HttpClient…
ameten May 8, 2025
1770318
feat: update registry to 14.0.0 (#6171)
mshojaei-txfusion May 8, 2025
ce0b173
refactor: warp config loading (#6173)
mshojaei-txfusion May 8, 2025
a539ecc
fix: Add rule for CryptoCrew (#6176)
ameten May 8, 2025
c517e5c
feat(submitter): Report reverted payload with success criteria (#6170)
ameten May 8, 2025
ce95ffc
feat: fixes to SVM warp deploy tooling (#6178)
tkporter May 9, 2025
98209a2
feat: chunk message db insertions (#6114)
kamiyaa May 9, 2025
6c9b559
fix(submitter): don't use ethers submission middleware (#6177)
daniel-savu May 9, 2025
46eeda6
feat(submitter): Add naive nonce manager (#6179)
ameten May 9, 2025
e381a8d
chore: bump registry to 15.0.0 and update monitor image (#6187)
Xaroz May 9, 2025
de7c6ae
refactor: registry based warp config (#6174)
mshojaei-txfusion May 9, 2025
d3f8da9
feat: add svmBNB (#6172)
tkporter May 9, 2025
e35ad1a
chore: Upgrade Relayer and Scraper to latest (#6188)
ameten May 9, 2025
df7251d
chore: Upgrade Relayer RC and Neutron to latest (#6197)
ameten May 12, 2025
6bf0df0
chore: re-enable some testnets (#6184)
paulbalaji May 12, 2025
d54435c
fix: re-add registry commit to docker entry (#6203)
Xaroz May 12, 2025
2ae0f72
feat: cli warp check should assert that contracts are verified (#6167)
ltyu May 12, 2025
d182d7d
feat(sdk): fix out of order validators array in ism triggers check vi…
xeno097 May 12, 2025
672d6d1
feat(sdk,cli): expand ism and hook configs to compare on chain and a…
xeno097 May 12, 2025
575013e
feat: basic evm gas price estimator (#6204)
daniel-savu May 13, 2025
b360802
feat(utils,sdk,cli): metadata checks trigger false positives in cli …
xeno097 May 13, 2025
aec8961
feat(cli): improve cli checker output verbosity [ENG-1612] (#6183)
xeno097 May 13, 2025
430d1b4
chore: add cosmos native signer strategy to cli (#6124)
troykessler May 13, 2025
9a87ab6
fix: Retry on getting Relayer balance in E2E since Relayer may not be…
ameten May 13, 2025
e9d58d6
feat: rework server setup for agents (#6164)
kamiyaa May 13, 2025
07faadd
feat: Remove createWarpRouteConfigId() from metrics.ts and monitor-wa…
ltyu May 13, 2025
e2a4727
feat: may 12 mainnets (#6209)
paulbalaji May 14, 2025
0fffbfb
feat: update svm gas oracles (#6218)
paulbalaji May 14, 2025
abf32cd
feat: reduce ccip read dos vector (#6207)
kamiyaa May 14, 2025
d7c7343
chore: resume relayer with reorg failsafe; trial new submitter on lin…
daniel-savu May 14, 2025
6a70b8d
chore: move executeDeploy logic from CLI to SDK (#6222)
Xaroz May 14, 2025
e25af4b
fix: warp route id lookup source (#6223)
mshojaei-txfusion May 14, 2025
6cadc4b
Version Packages (#6116)
github-actions[bot] May 14, 2025
178443c
feat: CCIP-read ISM relayer authentication (#6144)
nambrot May 14, 2025
2a0c848
feat: Support VSXERC20 token standard in warp monitor (#6225)
Mo-Hussain May 15, 2025
cc61fdb
fix: changelog typos (#6234)
paulbalaji May 15, 2025
5b833e8
chore: update svm igp config (#6236)
xeno097 May 15, 2025
f8696c7
feat: Add Starknet contract ABI fetching and contract artifact genera…
ljankovic-txfusion May 15, 2025
1482467
feat: add tUSD/eclipsemainnet-ethereum warp route (#6220)
antigremlin May 15, 2025
0de63e0
feat: add Starknet address and transaction utilities [STARKNET-02] (#…
ljankovic-txfusion May 16, 2025
b98468d
fix: monorepo docker builds (#6245)
paulbalaji May 16, 2025
69b4640
fix: disable suavetoliman + sonicsvmtestnet in infra (#6248)
paulbalaji May 16, 2025
bc58283
feat: Starknet SDK logic integration [STARKNET-03] (#5838)
ljankovic-txfusion May 16, 2025
72b90f8
chore: add cosmos core module & reader (#6241)
troykessler May 16, 2025
bb47b67
feat: add apechain to solana igp (#6246)
paulbalaji May 16, 2025
03eebc3
feat: Make the validator's panic message scarier if there's a detecte…
kamiyaa May 16, 2025
84f5b21
chore: updated registry rc to update docker images (#6252)
xeno097 May 16, 2025
66dac25
chore: default to only amd64 docker builds (#6256)
paulbalaji May 17, 2025
2724559
chore: add routing ism to cosmos-types and sdk (#6244)
troykessler May 19, 2025
1a7222b
refactor: Compress Starknet logo in widgets (#5857)
ljankovic-txfusion May 19, 2025
e193176
Version Packages (#6237)
github-actions[bot] May 19, 2025
93155a4
fix: special-case darwin in fetch-contracts-release.sh (#6266)
paulbalaji May 19, 2025
82be018
chore: update print-latest-checkpoints to support all chains (#6254)
paulbalaji May 19, 2025
4f03dad
fix: add repository to starknet package.json (#6270)
paulbalaji May 19, 2025
736dc19
chore: add `MIRAI/abstract-bsc-solanamainnet` (#6238)
christopherbrumm May 19, 2025
8601b16
feat: subtensor USDC (#6277)
ltyu May 19, 2025
409e325
fix: Avoid holding lock on nonce manager with a remote call (#6268)
ameten May 20, 2025
1a597e9
chore: evm e2e with new submitter (#6196)
daniel-savu May 20, 2025
2faf54e
fix: storage diff-check (#6290)
paulbalaji May 20, 2025
d03a8ff
chore: depot docker recommendations (#6258)
paulbalaji May 21, 2025
7aae0ec
feat: setup turborepo (#3899)
paulbalaji May 21, 2025
ac13dde
chore: add cosmos native core cli commands (#6263)
troykessler May 21, 2025
33f88c2
feat(relayer): optimize ccip-read initialization (#6299)
daniel-savu May 21, 2025
0c4037f
fix: require ssl for connection (#6285)
Mo-Hussain May 21, 2025
61cc963
fix: priority gas price overpayments (#6295)
daniel-savu May 21, 2025
5840ad1
chore: update monitor image to include new token standard handling (#…
Mo-Hussain May 21, 2025
db5744e
fix: token metadata handling (#6175)
christopherbrumm May 21, 2025
1c01a4f
fix: Scraper: Fix issue with missing enum invariant for Sealevel (#6298)
ameten May 21, 2025
197fd87
chore: new relayer image (#6304)
daniel-savu May 21, 2025
689ed7c
chore: reduce release-e2e-matrix frequency (#6296)
paulbalaji May 21, 2025
89a7c6f
fix(submitter): Fix transaction fields (#6306)
ameten May 21, 2025
e67cb5f
chore: Upgrade Scraper to latest (#6307)
ameten May 21, 2025
ec1ba92
chore: add `sol`, `ufd`, `fartcoin`& `pengu` (#6249)
christopherbrumm May 21, 2025
f41f766
feat: yaml sorting eslint plugin (#5909)
mshojaei-txfusion May 22, 2025
754f7ba
fix: disable cosmos signers for now (#6309)
troykessler May 22, 2025
4cb0f8f
chore: add routing ism to cosmos native ism module (#6264)
troykessler May 22, 2025
86a8502
chore: change extractPrivateKey info logs to debug logs (#6310)
paulbalaji May 22, 2025
72db0fc
chore: migrate to workspace dependency syntax (#6308)
antigremlin May 22, 2025
67e280d
chore: disable arthera (#6313)
paulbalaji May 22, 2025
7d5c6b4
chore: share tsconfig.json from a package (#6314)
antigremlin May 22, 2025
9cc195f
fix: Make Solana testnet chunk same as for mainnet (#6311)
ameten May 22, 2025
a1aeb05
feat: may 18 multisig batch (#6259)
paulbalaji May 22, 2025
6e86efa
feat: agent-specific rpc consensus defaults (#6316)
daniel-savu May 22, 2025
c42ea09
feat: may 21 testnet batch (#6300)
paulbalaji May 22, 2025
99e645f
feat: may 20 svm multisig batch (#6283)
paulbalaji May 22, 2025
1838a32
chore: trigger release PR testing automatically (#6318)
paulbalaji May 22, 2025
711ec32
Version Packages (#6302)
github-actions[bot] May 22, 2025
cd510d4
feat: publish with github-hosted runner (#6319)
paulbalaji May 22, 2025
a1635bd
feat: update warp init to generate config with new warp route id (#6230)
ltyu May 22, 2025
ba4deea
Revert "chore: migrate to workspace dependency syntax (#6308)" (#6326)
paulbalaji May 23, 2025
28e19ad
Version Packages (#6327)
github-actions[bot] May 23, 2025
6229159
feat: zksync verification classes (#5210)
mshojaei-txfusion May 23, 2025
b8641a3
chore: disable kyvetestnet (#6328)
paulbalaji May 23, 2025
b4beaa5
fix: add missing tsconfig dep after revert (#6332)
antigremlin May 23, 2025
cb5e27d
feat: Add logging of latest checkpoints reported by each RPC endpoint…
ameten May 23, 2025
f244f59
chore(validator): more verbose merkle tree logic; db integrity check …
daniel-savu May 23, 2025
5db9491
chore: Add .catch() for cases when there are no warp deploy config (#…
ltyu May 23, 2025
973aa72
feat: zksync compatibility checks (#6329)
mshojaei-txfusion May 26, 2025
4fec5d3
fix: token_id as recipient (#6294)
yjamin May 26, 2025
9ef4d27
chore: rename oUSDT warp route path to match token symbol defined in …
Mo-Hussain May 26, 2025
ae1168b
feat: cosmos block events (#6343)
yjamin May 26, 2025
4bfa2da
feat: Configure the lowest sequence to index for sequence-aware syncs…
ameten May 26, 2025
b1c502c
feat: add undeliverable messages to blacklist (#6346)
Mo-Hussain May 26, 2025
36218a4
feat: integrate zksync on SDK (#6330)
mshojaei-txfusion May 26, 2025
aab9be3
chore: Upgrade Scraper Testnet to latest (#6348)
ameten May 26, 2025
df4bc2a
feat(infra): script to check sealevel multisig configs (#6195)
paulbalaji May 26, 2025
45e861a
chore: Upgrade Relayer mainnet to latest (#6349)
Mo-Hussain May 26, 2025
f5d82f0
chore: fix mainnet relayer image (#6352)
paulbalaji May 26, 2025
615876b
chore: add `CHILL/solanamainnet-sonicsvm` (#6335)
christopherbrumm May 27, 2025
f705e80
feat: check tag exists before deploying agents (#6353)
paulbalaji May 27, 2025
af81e3d
chore: fix some comments (#3965)
tongjicoder May 27, 2025
77a592f
chore: blacklist smol messages (#6356)
daniel-savu May 27, 2025
387a2e1
feat: agent support for `Starknet` chains (#5569)
aroralanuk May 27, 2025
17a0fe2
feat: MILK warp route (#6038)
yjamin May 27, 2025
1db2d2a
chore: set batch gas limit multiplier back to 1x (#6357)
daniel-savu May 27, 2025
f25ca22
feat(relayer): config to ignore reported reorgs (#6339)
daniel-savu May 27, 2025
77bac88
feat: support for voyager block explorers addresses (#6360)
Xaroz May 27, 2025
d6b34a9
chore: update eth mainnet igp (#6362)
paulbalaji May 27, 2025
b916cd9
feat: Add reporting of latest checkpoints on reorg at start up (#6361)
ameten May 27, 2025
a58a97c
chore: sync testnet config (#6365)
paulbalaji May 27, 2025
41995e0
chore: release new agent images (#6366)
daniel-savu May 27, 2025
d728435
chore: Bump Registry to version 15.10.1 (#6371)
ltyu May 27, 2025
11b240a
feat: pass starkKey address from GCP secrets (#6367)
aroralanuk May 27, 2025
df49f07
feat: integrate zksync on CLI (#6331)
mshojaei-txfusion May 28, 2025
9990f0a
feat(infra): support nested safe tx parsing (#6020)
paulbalaji May 28, 2025
bf57b41
chore(agents): update relayer hyperlane testnet to include latest sta…
aroralanuk May 28, 2025
9a39e29
feat(starknet): use legacy from secret value (#6379)
yjamin May 28, 2025
986f914
feat: integrate zksync with infra (#6351)
paulbalaji May 28, 2025
f83e113
chore: update to latest registry version (#6381)
yjamin May 28, 2025
a73ec6f
feat: add kubedns regex for offchain lookup ISM (#6372)
kamiyaa May 29, 2025
b431cda
fix: Configure proper index chunk for moonbeam to fix issues with the…
ameten May 29, 2025
3835483
feat: separate tx id indexing and cursor indexing into separate threa…
kamiyaa May 29, 2025
ac1e524
fix: Improve domain logging (#6391)
ameten May 29, 2025
33b2b81
chore(cli): only prompt for API key for etherscan explorer type (#6398)
paulbalaji May 29, 2025
295f408
chore: Upgrade Relayers and Scraper to latest (#6393)
ameten May 29, 2025
a4af0b8
feat(sdk): concurrentDeploy true by default for tokens (#5871)
paulbalaji May 29, 2025
9f4c2e8
feat: update warp deploy to output WarpCoreConfig to --warpRouteId (#…
ltyu May 29, 2025
d0e4803
feat: Add unichain ext to REZ (#6292)
ltyu May 30, 2025
1e0eb9a
chore(infra): update relayer blacklist (#6406)
paulbalaji May 30, 2025
1ad0893
chore: add getTokenCollateral to WarpCore (#6404)
Xaroz May 30, 2025
0ca8676
feat: update warp apply to output WarpCoreConfig to --warpRouteId (#6…
ltyu May 30, 2025
930b2d1
Version Packages (#6333)
github-actions[bot] May 30, 2025
4d66b73
Revert "Version Packages" (#6412)
paulbalaji May 30, 2025
940f2fa
Version Packages (#6411)
github-actions[bot] May 30, 2025
d893089
feat: add bbSOL/solanamainnet-soon warp route (#6389)
antigremlin May 30, 2025
a0ba1b3
feat(infra): misc chain deploy fixes (#6388)
paulbalaji May 30, 2025
8232343
fix(infra): filter out testnets for check-warp-deploy (#6415)
paulbalaji May 30, 2025
3b450f5
feat: multi vm signers (#6344)
troykessler Jun 2, 2025
fbb1441
feat: `export-svm-config` (#6337)
christopherbrumm Jun 2, 2025
a857df7
chore(infra): misc fixes for safe operations (#6407)
paulbalaji Jun 2, 2025
72887f7
chore: update to ethers v5.8.0 (#6422)
paulbalaji Jun 2, 2025
dda33a4
chore: transfer tUSD warp route ownership (#6418)
antigremlin Jun 2, 2025
c58dbb5
feat: starknet core deployment (#6413)
aroralanuk Jun 2, 2025
8aa2e95
chore: update smol route infra (#6426)
Xaroz Jun 2, 2025
09fc4ec
Version Packages (#6424)
github-actions[bot] Jun 2, 2025
5a94a87
chore: Rename renzo ezeth warpId (#6430)
ltyu Jun 2, 2025
28a6f13
chore: Update fees to match onchain (#6431)
ltyu Jun 2, 2025
69a100c
fix: Reduce chunk size to avoid RPC errors (#6427)
ameten Jun 3, 2025
b23399a
fix: Prompt user if a new agent key will be created (#6397)
ameten Jun 3, 2025
cedc8e1
feat: add timeout to AwsSigner (#6414)
tkporter Jun 3, 2025
973641f
chore: Upgrade Relayer and Scraper in Testnet Hyperlane and RC (#6434)
ameten Jun 3, 2025
df8f11d
feat(submitter): Naive NonceManager implementation with passing E2E (…
ameten Jun 4, 2025
e0f1537
chore: Disable Rome Testnet (#6446)
ameten Jun 4, 2025
ba8bedd
feat: deploy agents, faster external-secrets (#6441)
tkporter Jun 4, 2025
fd6e878
refactor(lander): simplify module and type names (#6384)
daniel-savu Jun 4, 2025
f5536c9
feat: Add configurable lowest block height to sequence-aware backward…
ameten Jun 4, 2025
c4f9fa8
feat: fix crashes and set metrics instead when rpcs fail (#6278)
kamiyaa Jun 4, 2025
f8fd7b4
feat(sdk): support MultiSend in Safe TX Submitter (#6433)
paulbalaji Jun 4, 2025
5b6c65d
feat: add endpoints to insert messages and merkle tree insertions (#6…
kamiyaa Jun 4, 2025
1f14d47
merge main, resolve cargo.toml conflict manually
danwt Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .changeset/chilly-lizards-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curly-bobcats-doubt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/modern-owls-beam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nasty-bugs-cross.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/six-berries-ask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Support using MultiSend when proposing txs via the EV5GnosisSafeTxSubmitter.
6 changes: 0 additions & 6 deletions .changeset/soft-foxes-sit.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/wise-files-listen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/yummy-toes-pick.md

This file was deleted.

17 changes: 16 additions & 1 deletion .github/workflows/monorepo-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ on:
- 'docker-entrypoint.sh'
- '.dockerignore'
- '.github/workflows/monorepo-docker.yml'
workflow_dispatch:
inputs:
include_arm64:
description: 'Include arm64 in the build'
required: false
default: 'false'

concurrency:
group: build-push-monorepo-${{ github.ref }}
Expand Down Expand Up @@ -81,6 +87,15 @@ jobs:
REGISTRY_VERSION=$(cat .registryrc)
echo "REGISTRY_VERSION=$REGISTRY_VERSION" >> $GITHUB_ENV

- name: Determine platforms
id: determine-platforms
run: |
if [ "${{ github.event.inputs.include_arm64 }}" == "true" ]; then
echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
else
echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
fi

- name: Build and push
uses: depot/build-push-action@v1
with:
Expand All @@ -92,4 +107,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
REGISTRY_COMMIT=${{ env.REGISTRY_VERSION }}
platforms: linux/amd64,linux/arm64
platforms: ${{ steps.determine-platforms.outputs.platforms }}
53 changes: 44 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,22 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
LOG_FORMAT: PRETTY
TURBO_TELEMETRY_DISABLED: 1
TURBO_API: https://cache.depot.dev
TURBO_TOKEN: ${{ secrets.DEPOT_TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.DEPOT_ORG_ID }}

jobs:
# This job prepares the release by creating or updating a release PR.
# Notice the omission of the `publish` flag in the changesets action.
prepare-release:
outputs:
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
permissions:
id-token: write
contents: write
pull-requests: write
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -46,15 +51,45 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

# The release PR removes individual changesets to prepare for a release.
# This means that once the release PR is merged, there are no changesets left.
# When there are no changesets left, we can run the cli-install-cross-platform-release-test
# workflow to verify that the CLI installs correctly on all platforms.
check-latest-published:
runs-on: ubuntu-latest
outputs:
all_latest: ${{ steps.check.outputs.all_latest }}
steps:
- uses: actions/checkout@v4

- name: Retrieve package versions
id: pkg
run: |
find . -name 'package.json' -print0 | while IFS= read -r -d '' pkg; do
jq -r 'select(.private != true) | .name + "@" + .version' "$pkg"
done | tee versions.txt

- name: Compare package versions
id: check
run: |
all_latest=true
while read -r pkg; do
echo "Checking if $pkg is published..."
exists=$(npm view "$pkg" version 2>/dev/null || echo "N/A")
echo "npm returned: $exists"
if [ "$exists" = "N/A" ]; then
echo "$pkg is NOT published."
all_latest=false
break
else
echo "$pkg is published."
fi
done < versions.txt
echo "all_latest=$all_latest" >> $GITHUB_OUTPUT

# If we detect that not all packages are published, we run the
# cli-install-cross-platform-release-test workflow to verify that the CLI installs correctly on all platforms.
# In all other cases, we already have a barebones `cli-install` test on the default CI platform
# which will catch most issues before any offending PR is merged.
cli-install-cross-platform-release-test:
needs: prepare-release
if: needs.prepare-release.outputs.hasChangesets == 'false'
needs: [check-latest-published]
if: needs.check-latest-published.outputs.all_latest == 'false'
strategy:
matrix:
os: [depot-ubuntu-latest, depot-macos-latest, depot-windows-2022]
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/rust-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
paths:
- 'rust/**'
- '.github/workflows/rust-docker.yml'
workflow_dispatch:
inputs:
include_arm64:
description: 'Include arm64 in the build'
required: false
default: 'false'
concurrency:
group: build-push-agents-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -64,6 +70,14 @@ jobs:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCLOUD_SERVICE_KEY }}
- name: Determine platforms
id: determine-platforms
run: |
if [ "${{ github.event.inputs.include_arm64 }}" == "true" ]; then
echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
else
echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: depot/build-push-action@v1
with:
Expand All @@ -73,4 +87,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
platforms: ${{ steps.determine-platforms.outputs.platforms }}
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ concurrency:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
MIN_SUBMITTERCOVERAGE_PERCENTAGE: 1
MIN_LANDERCOVERAGE_PERCENTAGE: 1
RUSTC_WRAPPER: sccache

jobs:
submitter-coverage:
lander-coverage:
runs-on: depot-ubuntu-24.04-8
steps:
- uses: actions/checkout@v4
Expand All @@ -43,16 +43,16 @@ jobs:
cargo install cargo-llvm-cov@0.5.39 --locked
rustup component add llvm-tools-preview

- name: Generate coverage for submitter package
run: cargo llvm-cov --package submitter --json --output-path coverage.json
- name: Generate coverage for lander package
run: cargo llvm-cov --package lander --json --output-path coverage.json
working-directory: ./rust/main

- name: Check coverage threshold
run: |
COVERAGE=$(cat coverage.json | jq -r '.data[0].totals.lines.percent')
echo "Coverage: $COVERAGE%"
if (( $(echo "$COVERAGE * 100 < $MIN_SUBMITTERCOVERAGE_PERCENTAGE" | bc -l) )); then
echo "Code coverage is below minimum threshold of $MIN_SUBMITTERCOVERAGE_PERCENTAGE percent"
if (( $(echo "$COVERAGE * 100 < $MIN_LANDERCOVERAGE_PERCENTAGE" | bc -l) )); then
echo "Code coverage is below minimum threshold of $MIN_LANDERCOVERAGE_PERCENTAGE percent"
exit 1
fi
working-directory: ./rust/main
Expand All @@ -61,7 +61,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
files: coverage.json
flags: ./rust/main/submitter
flags: ./rust/main/lander
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
Loading
Loading