Skip to content

fix: send LLMService generation as expectRevision - #155

Closed
huskcass wants to merge 2 commits into
modelsphere:mainfrom
huskcass:feat/llmsvc-expect-generation
Closed

huskcass wants to merge 2 commits into
modelsphere:mainfrom
huskcass:feat/llmsvc-expect-generation

Conversation

@huskcass

@huskcass huskcass commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Pairs with modelsphere/swiss#70. Land the two together.

swissd locks an LLMService upgrade on metadata.generation. The preview still returns that value as generation; revision stays last-success Helm history and is not the lock. This console posts the previewed generation as expectRevision on apply and rollback (Pipeline, DeploySheet, RollbackSheet). Helm still sends the diff revision as expectRevision. toRevision stays the history revision.

An older console that sends last-success revision as expectRevision on an LLMService will 409 against current swissd. Annotation-only writes do not bump metadata.generation and stay unlocked on the server; the client does not invent a second token for them.

swissd locks an LLMService upgrade on metadata.generation, returned
by the preview as generation. The console now posts that value as
expectGeneration on apply and rollback. Helm still sends
expectRevision. Last-success status.helm.revision is not used as
the LLMService lock.

Co-authored-by: aceforeverd <11715200+aceforeverd@users.noreply.github.com>

@huskcass huskcass left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No blockers.

Sends expectGeneration for an LLMService and leaves last-success revision out of the lock. Apply and rollback call sites all go through concurrencyLock. Merge together with modelsphere/swiss#70.

Verdict: good to merge with swiss#70.

— Review Golden

The preview still returns generation for an LLMService. Apply and
rollback post that number as expectRevision. Helm still sends the
diff revision. Last-success revision is not the LLMService lock.
toRevision stays the history revision.

Co-authored-by: aceforeverd <11715200+aceforeverd@users.noreply.github.com>
@huskcass huskcass changed the title fix: send expectGeneration for LLMService apply fix: send LLMService generation as expectRevision Nov 29, 2026

@huskcass huskcass left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No blockers.

concurrencyLock sends the preview generation as expectRevision and never last-success revision. toRevision stays the history key. Merge with swiss#70.

Verdict: good to merge with swiss#70.

— Review Golden

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