• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iotaledger / iota / 27996229973
67%

Build:
DEFAULT BRANCH: develop
Ran 23 Jun 2026 02:35AM UTC
Jobs 1
Files 1108
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jun 2026 03:10PM UTC coverage: 67.458% (+0.06%) from 67.402%
27996229973

push

github

web-flow
upstream(iota-test-transaction-builder): add ensure_unique to vary tx digests (#11945)

## Description of change

Port of upstream MystenLabs/sui#26913.

Adds `TestTransactionBuilder::ensure_unique()` — a chainable method that
injects a random unused pure input so that two otherwise-identical
transactions (same sender, gas object and arguments) build to distinct
digests. `build()` is unchanged for callers that don't opt in, so tests
relying on stable digests are unaffected.

This is needed by benchmark workloads that repeatedly submit logically
identical transactions: when a submission fails with a transport error
mid-flight but the transaction has already committed, a later identical
build collides on the already-executed digest and trips an assertion.
`ensure_unique()` gives each build a distinct digest.

The upstream builder accumulates a programmable transaction builder and
calls `force_separate_pure`. Our `TestTransactionBuilder` builds
`TransactionData` directly, so the port instead appends a trailing
unused `Input::Pure` to the resulting programmable transaction — same
effect on the digest, execution unaffected.

## Links to any relevant issues

## How the change has been tested

- [x] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [x] Patch-specific tests (correctness, functionality coverage)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have checked that new and existing unit tests pass locally with
my changes

33 of 34 new or added lines in 1 file covered. (97.06%)

297 existing lines in 10 files now uncovered.

158368 of 234767 relevant lines covered (67.46%)

467695.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
89.03
1.67% crates/iota-test-transaction-builder/src/lib.rs

Coverage Regressions

Lines Coverage ∆ File
152
84.16
0.96% crates/iota-json-rpc/src/read_api.rs
82
80.36
-2.08% crates/starfish/core/src/network/tonic_network.rs
27
74.75
-0.39% crates/test-cluster/src/lib.rs
12
92.73
6.26% crates/iota-network-stack/src/grpc_timeout.rs
7
93.58
-0.48% crates/starfish/core/src/transactions_synchronizer.rs
6
83.82
-1.47% crates/iota-core/src/storage.rs
5
89.03
1.67% crates/iota-test-transaction-builder/src/lib.rs
3
88.36
-0.59% crates/iota-types/src/messages_checkpoint.rs
2
85.27
0.0% crates/starfish/core/src/network/mod.rs
1
85.42
-2.08% crates/iota-network-stack/src/anemo_ext.rs
Jobs
ID Job ID Ran Files Coverage
1 nextest+simtest - 27996229973.1 23 Jun 2026 02:35AM UTC 1108
67.46
GitHub Action Run
Source Files on build 27996229973
  • Tree
  • List 1108
  • Changed 32
  • Source Changed 8
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27996229973
  • 9748147c on github
  • Prev Build on develop (#27924667289)
  • Next Build on develop (#28069178327)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc