fix: separate code sample registry + publish on SDK release - #627
Closed
Nelson-PROIA wants to merge 2 commits into
Closed
Nelson-PROIA wants to merge 2 commits into
Nelson-PROIA wants to merge 2 commits into
Conversation
Contributor
Author
|
Wrong repo. The workflow.yaml source of truth is in the dashboard repo (mistralai/dashboard/client-python/.speakeasy/workflow.yaml). Moving there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two fixes for the code sample pipeline that Gregory identified in platform-docs #923:
1. Separate registry location
Both client-python and client-ts were publishing code samples to the same Speakeasy registry location (
mistral-openapi-code-samples). Last-writer-wins meant only TypeScript samples were available. Changed to:mistral-openapi-python-code-samplesmistral-openapi-typescript-code-samples2. Publish code samples on SDK release
The publish workflow (
sdk_publish_mistralai_sdk.yaml) published to PyPI viauvdirectly, bypassing Speakeasy. The code sample overlay never got published. Added a step after PyPI publish that runsspeakeasy ci generate --push-code-samples-only --target mistralai-sdkto push the Python code samples to the registry.Files changed
.speakeasy/workflow.yaml: registry location →mistral-openapi-python-code-samples.github/workflows/sdk_publish_mistralai_sdk.yaml: added code sample publish stepContext