Skip to content

Merge v29.0.0 to master - #5476

Merged
anupsdf merged 19 commits into
stellar:masterfrom
anupsdf:merge-v29-to-master
Oct 2, 2026
Merged

anupsdf merged 19 commits into
stellar:masterfrom
anupsdf:merge-v29-to-master

Conversation

@anupsdf

@anupsdf anupsdf commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Merge v29.0.0 to master

dmkozh and others added 15 commits October 1, 2026 12:25
Also add overlay filter for potentially useless offers that clear for 0 amount.
Adds src/rust/soroban/p29, pinned to a7e15b43 on stellar/rs-soroban-env
main (stellar/rs-soroban-env#1732), and makes it the current host:
soroban_curr, HOST_MODULES and SorobanModuleCache all gain p29, and p28
loses its `features = ["next"]` now that it is no longer the max host.

Bumps CURRENT_LEDGER_PROTOCOL_VERSION to 29. ProtocolVersion::V_29 already
exists on this branch, added by the DEX offer-crossing change.

Re-records test-tx-meta-baseline-current through protocol 29, which adds
1522 entries. The only non-additive change is ManageBuyOfferTests, whose
matrix runs for {current, previous} and so shifts from 27/28 to 28/29.
The p29 host now counts a module's custom sections towards its data
segment cost inputs (and BrTable targets towards its instructions), which
grows the accounted soroban state size and thus the rent fees at protocol
29.

Rebases the hardcoded rent fee, refund and state size expectations on the
new values, gated on V_29 where the test runs across protocol versions.
ParallelApplyTest compares a protocol 22 apply against the current one, so
it now has to tolerate contract code entries whose cost inputs differ
across that boundary, on top of the restoration lastModifiedLedgerSeq
diffs it already tolerated.
Counting custom sections towards the Wasm data segment cost inputs changes
the rent fees, and thus the TxMeta, of the soroban tests. Only hash values
change: no test context is added or removed, and the changes are confined
to InvokeHostFunctionTests (59 of 339 contexts) and FrozenLedgerKeysTests
(1 context).

Recorded with:
  stellar-core test [tx] --all-versions --rng-seed 12345 \
    --record-test-tx-meta test-tx-meta-baseline-current
Pins the cross-protocol comparison in ParallelApplyTest to the first
protocol with the parallel Soroban phase instead of the current one, rather
than teaching the comparison to tolerate the contract code cost inputs that
diverge at protocol 29. Neither p22 nor p23 counts the Wasm custom sections,
so the entries match again and the tolerance is no longer needed.

Also assigns the archival test's rent bumps per protocol version in an
if/else chain instead of nesting conditionals.
The Soroban config upgrade in the test setup is charged more rent under the
p29 host, so ledger stellar#10's feePool and the root's balance both shift by
310001 stroops. Regenerated with GENERATE_TEST_LEDGER_CLOSE_META=1.
This is pretty inconsequential optimization that may actually lead to performance degradation when used incorrectly.
Resolves stellar#731

This change lowers the message size cap to 5MB, and the tx set size cap
to 4MB. It goes into effect after the p29 vote to avoid a scenario where
a quroum of non-updated validators externalizes a large tx set that
upgraded validators cannot download.
Copilot AI balanced review requested due to automatic review settings October 1, 2026 22:07
@anupsdf
anupsdf enabled auto-merge October 1, 2026 22:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Neither core nor the host uses contract specs, and hash-xdrs.sh already skips
the file. The v29.0.0 host predates stellar-xdr's contract spec limit change.
Copilot AI balanced review requested due to automatic review settings October 1, 2026 23:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The new offer test is missing protocol-29 and protocol-30 tx-meta baseline entries required by CI.

Review effort: Balanced
Findings: 2 High severity

Open (2)

Comment thread src/transactions/test/OfferTests.cpp Resolved
Reverts the Stellar-contract-spec.x exemption and instead rolls the quorum
analyzer back to 502a354 (rs-stellar-xdr 3305b3e), which matches the p29 host.
Copilot AI balanced review requested due to automatic review settings October 1, 2026 23:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Current and next TxMeta baselines omit newly executed protocol contexts, causing metadata checks to fail.

Review effort: Balanced
Findings: 3 High severity

Open (3)

@anupsdf
anupsdf marked this pull request as draft October 2, 2026 04:44
auto-merge was automatically disabled October 2, 2026 04:44

Pull request was converted to draft

@anupsdf
anupsdf force-pushed the merge-v29-to-master branch from e01ef1f to 7ed7836 Compare October 2, 2026 15:43
The p30 host was pinned at 169890d5, which predates the p29 Wasm cost input
changes (counting custom sections, wasmi bump). Protocol 30 therefore produced
different rent and resource fees from protocol 29, failing the Soroban fee
tests that were updated for the p29 cost inputs. fddfd567 is the merge of
release/v29.0.0 into main and brings those changes into the p30 host.

Also update the p30 dep-tree expectation for the wasmi rev change.
@anupsdf
anupsdf force-pushed the merge-v29-to-master branch from 7ed7836 to 00c3d35 Compare October 2, 2026 15:49
@anupsdf
anupsdf marked this pull request as ready for review October 2, 2026 15:49
Copilot AI balanced review requested due to automatic review settings October 2, 2026 15:49
@anupsdf
anupsdf enabled auto-merge October 2, 2026 15:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

It combines consensus-sensitive exchange changes, overlay concurrency and limits, dependency updates, and extensive generated metadata requiring final human validation.

Review effort: Balanced
Findings: 2 High severity · 1 Low severity

Open (3)
Resolved since last review (1)

Comment thread src/overlay/FlowControl.cpp Resolved
Regenerate the protocol 30 ledger-close-meta reference files
Copilot AI balanced review requested due to automatic review settings October 2, 2026 16:38
@anupsdf
anupsdf force-pushed the merge-v29-to-master branch from 00c3d35 to c1b8012 Compare October 2, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The direct flood-message test helper can violate the new queue invariant and trigger an assertion during write completion.

Review effort: Balanced
Findings: 2 High severity · 1 Medium severity · 1 Low severity

Open (4)

Comment thread src/overlay/Peer.cpp Resolved
@SirTyson
SirTyson self-requested a review October 2, 2026 19:30
@anupsdf
anupsdf added this pull request to the merge queue Oct 2, 2026
Merged via the queue into stellar:master with commit 88d2431 Oct 2, 2026
55 of 56 checks passed
@anupsdf
anupsdf deleted the merge-v29-to-master branch October 2, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants