Skip to content

Support -uptr mode in xdrpp - #5467

Open
graydon wants to merge 1 commit into
stellar:masterfrom
graydon:xdrpp-cxx20-uptr
Open

graydon wants to merge 1 commit into
stellar:masterfrom
graydon:xdrpp-cxx20-uptr

Conversation

@graydon

@graydon graydon commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

This adopts the xdrpp changes in https://github.com/xdrpp/xdrpp/tree/cxx20-rebase-2026-09-01 and adds an optional --enable-xdrpp-uptr flag to configure that switches on the newly-supported-on-that-branch -uptr mode in xdrpp.

Copilot AI balanced review requested due to automatic review settings September 21, 2026 23:44

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

Generated headers can remain stale when toggling the option, and the new build mode lacks automated coverage.

Get a fresh assessment by requesting another Copilot review.

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

Open (2)
What changed in this PR

Adds optional pointer-backed XDR union generation and updates XDR query validation for the newer xdrpp API.

Changes:

  • Adds --enable-xdrpp-uptr.
  • Passes -uptr during XDR header generation.
  • Uses union metadata to validate fields without copying unions.
File Description
configure.ac Defines the optional uptr configuration flag.
src/​Makefile.am Passes configured flags to xdrc.
src/​util/​xdrquery/​XDRFieldResolver.h Adapts union-field validation to the new API.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Makefile.am
Comment thread configure.ac Outdated
Copilot AI review requested due to automatic review settings September 22, 2026 05:28

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

Generated headers are not invalidated when the mode changes, and the new build variant lacks CI coverage.

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

Open (2)

Copilot AI review requested due to automatic review settings September 22, 2026 19:47

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

The -uptr path lacks CI coverage, incremental builds may retain stale headers, and a required standard header is not directly included.

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

Open (2)

Copilot AI review requested due to automatic review settings September 22, 2026 20:11

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

The generated-header dependency and CI coverage issues must be addressed before approval.

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

Open (2)

Copilot AI review requested due to automatic review settings September 23, 2026 00:51

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 build rule has a critical clean-build failure, and the new mode lacks CI coverage.

Get a fresh assessment by requesting another Copilot review.

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

Open (2)
Resolved since last review (1)

Comment thread src/Makefile.am
Copilot AI review requested due to automatic review settings September 23, 2026 05:43

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 missing include and lack of CI coverage for the new supported mode must be addressed.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (2)

Comment thread src/util/xdrquery/XDRFieldResolver.h
Copilot AI review requested due to automatic review settings September 26, 2026 00:16

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 default configuration selects an invalid empty threshold, and the new storage modes lack CI coverage.

Get a fresh assessment by requesting another Copilot review.

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

Open (2)
Resolved since last review (1)

Comment thread configure.ac Outdated
Comment thread configure.ac Outdated
Copilot AI review requested due to automatic review settings September 26, 2026 00:58

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

Empty option validation remains faulty, and the new union-storage modes are not exercised by CI.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
Resolved since last review (1)

Comment thread configure.ac Outdated
Copilot AI balanced review requested due to automatic review settings October 2, 2026 22:37

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

Dependency incompatibilities block builds, union validation accepts invalid paths, and unchanged headers repeatedly regenerate.

Review effort: Balanced
Findings: 1 High severity · 3 Medium severity

Open (4)
Resolved since last review (1)

Comment thread configure.ac
Comment thread src/Makefile.am Outdated
Comment thread src/util/xdrquery/XDRFieldResolver.h Outdated
Copilot AI balanced review requested due to automatic review settings October 2, 2026 23:43

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

Parallel recovery of missing generated headers can launch competing generators and fail the build.

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

Open (2)
Resolved since last review (3)

Comment thread src/Makefile.am Outdated
Copilot AI balanced review requested due to automatic review settings October 3, 2026 00:06

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

The default union-storage change needs human review backed by build, runtime, and performance validation against the adopted xdrpp revision.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)

Copilot AI balanced review requested due to automatic review settings October 3, 2026 00:10

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

The default changes storage layouts across core XDR types and needs full build and runtime validation before human approval.

Review effort: Balanced
Findings: None

Resolved since last review (1)

Copilot AI balanced review requested due to automatic review settings October 3, 2026 00:24

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

Default-on changes to core XDR storage layouts require human confirmation of dependency compatibility, runtime correctness, and performance.

Review effort: Balanced
Findings: None

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