Skip to content

Conversation

@dgellow
Copy link
Contributor

@dgellow dgellow commented Nov 19, 2025

What does this PR do?

I believe that should avoid CI issues seen in #4173.

Error we see in Stainless logs:

(cannot lock ref 'refs/heads/preview/base/fix/issue-3797-metadata-validation': 'refs/heads/preview/base/fix' exists; cannot create 'refs/heads/preview/base/fix/issue-3797-metadata-validation')

The issue is that if a branch fix exists, fix/<whatever> cannot be created (that's how git refs work unfortunately...). The fix in this PR is to ensure PRs from forks are using the author as a prefix.

In addition we will do changes to the Stainless API to return better error messages here, it should have been a 4xx with a meaningful error, not a 500.

And we will likely need to delete the fix branch.

Test Plan

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2025
@dgellow dgellow force-pushed the sam/workflow-prefix-fork-branches branch from 460da26 to 02caff8 Compare November 19, 2025 14:59
@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2025

✱ Stainless preview builds

This PR will update the llama-stack-client SDKs with the following commit message.

fix(ci): prefix stainless branches with fork author

Edit this comment to update it. It will appear in the SDK's changelogs.

llama-stack-client-go studio · code · diff

Your SDK built successfully.
generate ⚠️lint ❗test ❗

go get github.com/stainless-sdks/llama-stack-client-go@153c50b11dc38dde41cb72c0a9ff57692c2ff718
llama-stack-client-node studio · code · diff

Your SDK built successfully.
generate ⚠️build ✅lint ✅test ✅

npm install https://pkg.stainless.com/s/llama-stack-client-node/9bb125204cfe1a721a91b09bf15a7da924f40dd3/dist.tar.gz
llama-stack-client-kotlin studio · code · diff

Your SDK built successfully.
generate ⚠️lint ✅test ❗

llama-stack-client-python studio · code · diff

generate ⚠️build ⏳lint ⏳test ⏳

⏳ These are partial results; builds are still running.


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
Last updated: 2025-11-19 15:21:08 UTC

Copy link
Contributor

@ashwinb ashwinb left a comment

Choose a reason for hiding this comment

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

Ah I see thanks!

@dgellow dgellow force-pushed the sam/workflow-prefix-fork-branches branch from 7c4b5cb to 574dac4 Compare November 19, 2025 15:48
@dgellow dgellow requested a review from ashwinb November 19, 2025 15:54
@ashwinb
Copy link
Contributor

ashwinb commented Nov 19, 2025

OK I am landing this right now to unblock the other PR, but we can slightly clean this up later to reduce duplication.

@ashwinb ashwinb merged commit 1e4e02e into llamastack:main Nov 19, 2025
6 checks passed
ashwinb pushed a commit that referenced this pull request Nov 19, 2025
# What does this PR do?
<!-- Provide a short summary of what this PR does and why. Link to
relevant issues if applicable. -->

Addresses feedback from
#4187 (comment)

<!-- If resolving an issue, uncomment and update the line below -->
<!-- Closes #[issue-number] -->

## Test Plan
<!-- Describe the tests you ran to verify your changes with result
summaries. *Provide clear instructions so the plan can be easily
re-executed.* -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants