Skip to content

fix(server): keep unrelated profiles from superseding provider waits - #5977

Merged
matthewgrossman merged 3 commits into
mainfrom
fix/5927-profile-import-supersedes-wait/matthewgrossman
Nov 25, 2026
Merged

matthewgrossman merged 3 commits into
mainfrom
fix/5927-profile-import-supersedes-wait/matthewgrossman

Conversation

@matthewgrossman

@matthewgrossman matthewgrossman commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

On a shared gateway, openshell provider update files-demo --config project=two --wait could exit 1 with superseded if someone imported or deleted an unrelated profile, even though the update applied. The wait now reports ready once the update applies. Changing the profile files-demo uses still supersedes the wait.

Related Issue

Closes #5927

Changes

  • Use the selected stored profile's contents and resource version instead of the whole source revision when computing a sandbox's provider environment revision. Keep catalog and interceptor revision tracking unchanged.
  • Cover unrelated profile imports and deletes in the server tests.

Sandboxes using stored profiles reconcile once after upgrade. Existing provider state does not need migration, but receipts from before the upgrade can report superseded.

The conformance skip is not present on main; remove it when #5657 lands.

Release Notes

Testing

  • cargo test -p openshell-server (2,931 passed, 51 ignored).
  • Regression test failed before the fix and passed afterward; the existing selected-profile change test still passes.
  • cargo fmt --all -- --check.
  • cargo clippy -p openshell-server --all-targets -- -D warnings.
  • Local Docker gateway: before the fix, unrelated import and delete both superseded provider update --wait even though the file was updated. With the fix, both reported ready, while editing the attached provider's profile still superseded the wait.

Checklist

  • Follows Conventional Commits.
  • Commit is signed and signed off (DCO).

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman matthewgrossman added the area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. label Nov 25, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 25, 2026
@github-actions

Copy link
Copy Markdown

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman
matthewgrossman marked this pull request as ready for review November 25, 2026 19:14
@matthewgrossman
matthewgrossman added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit f9e7050 Nov 25, 2026
88 of 91 checks passed
@matthewgrossman
matthewgrossman deleted the fix/5927-profile-import-supersedes-wait/matthewgrossman branch November 25, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: importing any provider profile supersedes other sandboxes' provider --wait

2 participants