Skip to content

Reduce qualified type and event names - #2674

Open
leighmcculloch wants to merge 47 commits into
update-xdr-and-sdk-cratesfrom
patch-xdr-and-spec-crates
Open

leighmcculloch wants to merge 47 commits into
update-xdr-and-sdk-cratesfrom
patch-xdr-and-spec-crates

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

What

Reduce the fully qualified UDT type names that stellar/rs-soroban-sdk#1970 emits (e.g. my_contract::inner::State) down to short names during the build process.

Why

The soroban-sdk will be emitting fully qualified user-defined type names as an intermediary step so that the stellar-cli can reduce the spec to only those types needed by the exported interface of a contract, and so that types will be guaranteed to have unique names. The long names are not good for most tooling though which is already accustomed to the short simple names. The cli can make this change in the soroban-sdk a no-op for the rest of the ecosystem by converting the names to unique simple names during the build step.

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Aug 7, 2026
@leighmcculloch leighmcculloch changed the title Patch xdr and spec crates to pending PRs Patch xdr and spec crates to support long type names Aug 7, 2026
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Aug 10, 2026
@leighmcculloch
leighmcculloch force-pushed the patch-xdr-and-spec-crates branch from 65c31be to 69c41b9 Compare September 3, 2026 15:19
@leighmcculloch leighmcculloch changed the title Patch xdr and spec crates to support long type names Reduce fully qualified UDT names in contract info output Sep 3, 2026
@leighmcculloch leighmcculloch changed the title Reduce fully qualified UDT names in contract info output Reduce qualified type and event names Sep 5, 2026
@leighmcculloch
leighmcculloch force-pushed the patch-xdr-and-spec-crates branch from 5fb4d08 to 7f6dacd Compare September 8, 2026 07:25
@leighmcculloch
leighmcculloch force-pushed the patch-xdr-and-spec-crates branch 2 times, most recently from 6a79b08 to 8710d3f Compare September 8, 2026 21:44
@leighmcculloch
leighmcculloch added this pull request to stack #2726 September 16, 2026 11:30
@leighmcculloch
leighmcculloch force-pushed the patch-xdr-and-spec-crates branch from 727af47 to 22f59e5 Compare September 23, 2026 07:01
@leighmcculloch
leighmcculloch removed this pull request from stack #2726 September 23, 2026 08:20
@leighmcculloch
leighmcculloch changed the base branch from main to pass-cli-version-to-sdk September 23, 2026 08:20
@leighmcculloch
leighmcculloch added this pull request to stack #2750 September 23, 2026 08:21

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

Unresolved issues affect correctness, safety, coverage, and consistency across build paths.

Review effort: Lite
Findings: 1 High severity · 3 Medium severity · 1 Low severity

Open (5)

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

Unresolved moderate issues affect build behavior, output correctness, warning safety, and regression coverage.

Review effort: Lite
Findings: 3 Medium severity · 1 Low severity

Open (4)
Resolved since last review (1)

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

Multiple moderate issues remain unresolved, including a compilation blocker and incomplete build-path handling.

Review effort: Lite
Findings: 4 Medium severity · 1 Low severity

Open (5)

Comment on lines +1042 to +1048
// A spec with a single struct whose name is fully qualified.
let entry = ScSpecEntry::UdtStructV0(ScSpecUdtStructV0 {
doc: StringM::default(),
lib: StringM::default(),
name: "mycrate::mymod::MyType".to_string().try_into().unwrap(),
fields: VecM::default(),
});

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 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

Unresolved correctness, safety, container-path, and integration-testing issues remain.

Review effort: Lite
Findings: 4 Medium severity · 1 Low severity

Open (5)

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

Unresolved issues remain around sanitization, integration coverage, image builds, and event-name diagnostics.

Review effort: Lite
Findings: 4 Medium severity · 1 Low severity

Open (5)

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 unresolved moderate issues can omit rewrites, affect container builds, reduce regression coverage, and expose unsafe terminal output.

Review effort: Lite
Findings: 4 Medium severity · 1 Low severity

Open (5)

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

Unresolved issues remain in reference rewriting, container builds, warning sanitization, diagnostics, and end-to-end coverage.

Review effort: Lite
Findings: 4 Medium severity · 1 Low severity

Open (5)

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

Unresolved moderate findings include a compile-blocking API mismatch, bypassed reduction paths, incomplete coverage, and diagnostic-output issues.

Review effort: Lite
Findings: 4 Medium severity · 1 Low severity

Open (5)

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

Unresolved issues affect sanitization, coverage, reference rewriting, container builds, and warning accuracy.

Review effort: Lite
Findings: 4 Medium severity · 1 Low severity

Open (5)

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.

Comment thread cmd/soroban-cli/src/commands/contract/build.rs Outdated

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

Moderate issues remain in build coverage, artifact handling, reference reduction, warning accuracy, and diagnostic sanitization.

Review effort: Lite
Findings: 5 Medium severity · 1 Low severity

Open (6)

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 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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants