Repository navigation
Conversation
…tion A lost datum transaction left the previous datum in place and was reported as written.
…saction The transaction id was expanded when generating the script, so any UTxO of the address passed the check.
…y are written at Writing the protocol configuration datum spans several epochs when they are short, which left too few epochs for the new parameters to be used.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
An active finding remains because the new public context field lacks rustdoc documentation in the toolkit API.
1 open issue
What changed in this PR
This PR hardens the Cardano devnet and end-to-end test harness against transient downloads, lost transactions, protocol-parameter timing races, and pool-chain partitions.
Changes:
- Adds epoch-aware protocol-parameter scheduling and transaction-specific output validation.
- Strengthens devnet topology and startup checks for connectivity and deep forks.
- Improves archive download retries and gzip integrity validation.
| File | Description |
|---|---|
| mithril-test-lab/mithril-end-to-end/src/toolkit/mod.rs | Exposes the scenario context to scenario implementations. |
| mithril-test-lab/mithril-end-to-end/src/toolkit/context.rs | Provides configured Cardano epoch-duration access and tests it. |
| mithril-test-lab/mithril-end-to-end/src/scenario/full.rs | Schedules protocol-parameter updates with network-dependent lead time and validates activation timing. |
| mithril-test-lab/cardano-devnet/mkfiles/mkfiles-topology-cardano.sh | Connects pool and full nodes through hot local roots. |
| mithril-test-lab/cardano-devnet/mkfiles/mkfiles-start.sh | Checks for deep pool-chain partitions during startup. |
| mithril-test-lab/cardano-devnet/mkfiles/mkfiles-init.sh | Adds archive download retries and gzip integrity validation. |
| mithril-test-lab/cardano-devnet/mkfiles/lib/mkfiles-cardano-chain.sh | Validates transaction-specific outputs and retries propagation failures while detecting partitions. |
Review effort: Lite
Test Results 5 files ± 0 211 suites ±0 49m 33s ⏱️ - 1h 3m 0s Results for commit b657d39. ± Comparison against base commit 736297b. This pull request removes 61 and adds 9 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
…activation on fast networks A retried datum transaction could land after the activation epoch and block the certification. Networks with epochs shorter than 30 s get a 6-epoch lead, and a late update fails with a retryable error.
An HTTP error body was saved as the archive and failed the extraction. The download now fails on HTTP errors, retries them and checks the gzip integrity.
… full nodes A single failed link at the system start let the pools fork away from each other beyond k. The pools also no longer list themselves as producers.
A pool logging ForkTooDeep never rejoins the chain of the other pools, the transaction retries only delayed the failure. The start and the chain writes now exit at once so that the run is retried on a fresh devnet.
jpraynaud
force-pushed
the
jpraynaud/3733-fix-ci-flakiness
branch
from
November 27, 2026 17:25
aac3e38 to
b657d39
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Content
This PR includes fixes of the main sources of flakiness of the devnet in the e2e tests of the CI:
Pre-submit checklist
Issue(s)
Closes #3733