Skip to content

submit: Update native stacks after publishing - #1400

Draft
abhinav wants to merge 1 commit into
shamhub-native-stacksfrom
submit-native-stacks
Draft

submit: Update native stacks after publishing#1400
abhinav wants to merge 1 commit into
shamhub-native-stacksfrom
submit-native-stacks

Conversation

@abhinav

@abhinav abhinav commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Submission can create or update change requests without refreshing a
forge's native stack metadata. After successful publication, reload the
branch graph and send each affected tracked tree to repositories that
implement WithStacks.

Use BranchGraph.Bottom to find each affected tree and collect its
published changes. Treat an unsupported capability as a no-op, and warn
for other update failures without changing the successful submission
result.

Model the capability in ShamHub behind an opt-in configuration so
end-to-end tests can observe complete, order-independent native stack
trees without changing existing script behavior.

@abhinav
abhinav force-pushed the submit-native-stacks branch from d2b0de3 to 669b4fd Compare August 12, 2026 02:43
@abhinav
abhinav force-pushed the submit-native-stacks branch from 669b4fd to 3103d14 Compare August 12, 2026 03:06
@abhinav
abhinav force-pushed the submit-native-stacks branch from 3103d14 to cfd7ab6 Compare August 12, 2026 04:19
@abhinav
abhinav force-pushed the submit-native-stacks branch 2 times, most recently from 187704a to 122a068 Compare August 12, 2026 13:19
@abhinav
abhinav marked this pull request as ready for review August 12, 2026 13:19
@abhinav
abhinav marked this pull request as draft August 15, 2026 13:56
@abhinav
abhinav force-pushed the submit-native-stacks branch from 972551d to 31015cd Compare August 15, 2026 13:56
@abhinav
abhinav changed the base branch from github-stacks-config to shamhub-native-stacks August 15, 2026 15:31
@abhinav
abhinav force-pushed the submit-native-stacks branch from 31015cd to e0b1410 Compare August 23, 2026 13:41
@abhinav
abhinav force-pushed the submit-native-stacks branch from e0b1410 to 8cd268a Compare August 24, 2026 04:08
Submission can publish change requests without refreshing provider-native stack
metadata.
For a stack-capable repository, changing an existing pull request base first
can also prevent the provider from safely restructuring its current stack.

Defer provider-facing base edits during submission.
After every requested branch publishes successfully, load one branch graph,
project each affected complete tree, and plan the desired native stacks in one
batch.
Execution then owns any required unstack, retarget, and recreate sequence.

When planning reports `ErrUnsupported`, apply the deferred ordinary base edits
instead.
Warn for genuine native-stack planning or execution failures without changing
the successful submission result.
ShamHub script coverage inserts a branch between two already stacked changes
to exercise the ordering boundary.
@abhinav
abhinav force-pushed the submit-native-stacks branch from 8cd268a to 3acc7a4 Compare August 24, 2026 12:41
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.

1 participant