Skip to content

fix: Fix build and regenerate sfield/tx_flags/ledger-objects - #309

Merged
sappenin merged 14 commits into
mainfrom
df/ci-fix-build
Sep 24, 2026
Merged

sappenin merged 14 commits into
mainfrom
df/ci-fix-build

Conversation

@sappenin

@sappenin sappenin commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Upstream (ripple/se/supported) renumbered several sfield codes. This PR regenerates them.
  • Fixed a bug in tools/generateTxFlags.js: it didn't resolve bare-constant lsif*-style ledger-flag aliases (only the LSF_FLAG(...) XMACRO form), so the new tifMPT* trailer flags were emitting references to undefined identifiers. Now also scans for inline constexpr std::uint32_t lsifName = 0x...; declarations.
  • Disabled host_function_audit to be fixed in a follow-on PR (ci: Fix host function audit script #293)
  • Cleanup and unify the way docker is started between CI and scripts.

Test plan

  • cargo build --workspace / cargo test --workspace (root workspace)
  • cargo build --target wasm32v1-none --release in examples/ and e2e-tests/
  • ./scripts/clippy.sh
  • ./scripts/fmt.sh
  • ./scripts/check-wasm-exports.sh
  • ./scripts/generate-ledger-objects.sh --check (confirms no drift)

sappenin and others added 14 commits August 28, 2026 11:55
Signed-off-by: David Fuelling <sappenin@gmail.com>
Script now check if rippled is already running before starting up Docker. Also, Docker image is only defined in one place.

Signed-off-by: David Fuelling <sappenin@gmail.com>
…wasm-stdlib into df/show-docker-instructions
Co-authored-by: ripple-code-reviewer[bot] <291892032+ripple-code-reviewer[bot]@users.noreply.github.com>
Co-authored-by: ripple-code-reviewer[bot] <291892032+ripple-code-reviewer[bot]@users.noreply.github.com>
A code-review suggestion was applied one line too high, replacing the
DEVNET=true usage comment with a stray `if` that had no matching `fi`,
so bash failed with "syntax error: unexpected end of file". Restore the
comment; the intended condition simplification on the real `if` stays.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…mbering

Upstream renumbered several sfield codes (Gas family, new MPToken/Vault
fields) and renamed tmfMPT* flags to tfMPTSet*/tifMPT*, breaking the build
against the newly pinned XRPLD_DOCKER_IMAGE. Regenerate sfield.rs,
tx_flags.rs, and the affected objects/generated/*.rs files from current
upstream rather than hand-patching them.

Also fix generateTxFlags.js, which didn't resolve bare-constant
`lsif*`-style ledger-flag aliases (only the LSF_FLAG XMACRO form), so
tifMPT* trailer flags emitted references to undefined identifiers.

host_function_audit is disabled separately: rippled replaced
HostFuncWrapper.h's typedefs with a WasmHostFunctionsImpl class, which
compareHostFunctions.js's parser doesn't understand yet.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…wasm-stdlib into df/show-docker-instructions
@sappenin sappenin self-assigned this Sep 24, 2026
@sappenin sappenin changed the title fix: Fix build Regenerate sfield/tx_flags/ledger-objects for rippled field renumbering fix: Fix build and regenerate sfield/tx_flags/ledger-objects Sep 24, 2026

@ripple-code-reviewer ripple-code-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This PR is primarily generated-code regeneration (sfield/tx_flags/ledger-object getters) driven by an upstream rippled renumbering, plus tooling/doc improvements (new scripts/docker-rippled.sh, updated run-tests.sh/setup.sh, README/CONTRIBUTING updates) and disabling the host_function_audit job pending a follow-up fix. The sfield and tx_flags renumbering was checked mechanically against the prior values and rippled's field families and lines up consistently (no bit-overlap or off-by-one issues found), and the generator fix in tools/generateTxFlags.js correctly adds a second regex pass for bare-constant lsif*-style declarations. The new docker-rippled.sh script's logic (health check reuse, port-reuse fallback, image lookup from the CI workflow file) looks sound and matches the documented behavior in CONTRIBUTING.md/README.md/scripts/README.md. No correctness, security, or resource-leak issues were found in the added/changed lines that meet the bar for confident flagging.

@sappenin sappenin changed the title fix: Fix build and regenerate sfield/tx_flags/ledger-objects fix: Fix build and regenerate sfield/tx_flags/ledger-objects Sep 24, 2026
@sappenin
sappenin merged commit dba105f into main Sep 24, 2026
23 of 27 checks passed
@sappenin
sappenin deleted the df/ci-fix-build branch September 24, 2026 17:03
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.

2 participants