Skip to content

disable checkout credential persistence - #3674

Merged
ww-oai merged 2 commits into
mainfrom
oss-remediation/01-artipacked
Aug 19, 2026
Merged

disable checkout credential persistence#3674
ww-oai merged 2 commits into
mainfrom
oss-remediation/01-artipacked

Conversation

@ww-oai

@ww-oai ww-oai commented Aug 19, 2026

Copy link
Copy Markdown
Contributor
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

@ww-oai
ww-oai marked this pull request as ready for review August 19, 2026 15:32
@ww-oai
ww-oai requested a review from a team as a code owner August 19, 2026 15:32
@openai-sdks

openai-sdks Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

OkTest Summary

237/237 SDK tests passed in 11.331s for Python SDK PR #3674.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 208ms
tests/chat-completions-create.test.ts ✅ Passed 269ms
tests/chat-completions-stream.test.ts ✅ Passed 121ms
tests/files-content-binary.test.ts ✅ Passed 199ms
tests/files-create-multipart.test.ts ✅ Passed 136ms
tests/files-list-pagination.test.ts ✅ Passed 158ms
tests/initialize-config.test.ts ✅ Passed 161ms
tests/instance-isolation.test.ts ✅ Passed 190ms
tests/models-list.test.ts ✅ Passed 131ms
tests/responses-background-lifecycle.test.ts ✅ Passed 226ms
tests/responses-body-method-errors.test.ts ✅ Passed 318ms
tests/responses-cancel-timeout.test.ts ✅ Passed 227ms
tests/responses-cancel.test.ts ✅ Passed 247ms
tests/responses-compact-retries.test.ts ✅ Passed 425ms
tests/responses-compact.test.ts ✅ Passed 219ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 114ms
tests/responses-create-advanced.test.ts ✅ Passed 217ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.301s
tests/responses-create-errors.test.ts ✅ Passed 214ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 290ms
tests/responses-create-retries.test.ts ✅ Passed 334ms
tests/responses-create-stream-failures.test.ts ✅ Passed 128ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 236ms
tests/responses-create-stream-wire.test.ts ✅ Passed 3.79s
tests/responses-create-stream.test.ts ✅ Passed 326ms
tests/responses-create-terminal-states.test.ts ✅ Passed 226ms
tests/responses-create-timeout.test.ts ✅ Passed 248ms
tests/responses-create.test.ts ✅ Passed 238ms
tests/responses-delete.test.ts ✅ Passed 195ms
tests/responses-input-items-errors.test.ts ✅ Passed 388ms
tests/responses-input-items-list.test.ts ✅ Passed 322ms
tests/responses-input-items-options.test.ts ✅ Passed 417ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 267ms
tests/responses-input-tokens-count.test.ts ✅ Passed 259ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.93s
tests/responses-not-found-errors.test.ts ✅ Passed 247ms
tests/responses-parse.test.ts ✅ Passed 425ms
tests/responses-retrieve-retries.test.ts ✅ Passed 224ms
tests/responses-retrieve.test.ts ✅ Passed 195ms
tests/responses-stored-method-errors.test.ts ✅ Passed 657ms
tests/retry-behavior.test.ts ✅ Passed 2.933s
tests/sdk-error-shape.test.ts ✅ Passed 297ms

View OkTest run #32271606727

SDK merge (8bd3d0cb9a72) · head (e88260caa9af) · base (d5b00659d665) · OkTest (0ad95c429af9)

@ww-oai
ww-oai force-pushed the oss-remediation/01-artipacked branch from 048594b to 6cc98cd Compare August 19, 2026 15:36
Comment on lines +21 to +26
FETCH_DEPTH: 0
steps:
- name: Calculate fetch-depth
if: github.event_name == 'pull_request'
env:
PR_COMMITS: ${{ github.event.pull_request.commits }}
run: |
echo "FETCH_DEPTH=$((PR_COMMITS + 1))" >> "$GITHUB_ENV"

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
# Ensure the comparison base is available to the scripts below.
fetch-depth: ${{ env.FETCH_DEPTH }}
fetch-depth: 0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

NB: This didn't interact well with stacked PRs:

 It failed because the breaking-change workflow’s shallow clone is too shallow for stacked PR merge commits—not because it found an API break.

  The workflow computes fetch-depth = PR_COMMITS + 1. PR #3676 has one commit, so it fetched depth 2. But GitHub represents the stack with nested synthetic merges:

  top synthetic merge
  ├── base synthetic merge
  │   └── actual BASE_SHA  ← depth 3, not fetched
  └── PR #3676 head

  griffe.load_git() then tried to create a worktree at the missing BASE_SHA and raised:

  RuntimeError: Could not create git worktree

  The current replacement runs reproduce the same issue, so it isn’t transient. The robust workflow fix is to use fetch-depth: 0 for this job, or otherwise explicitly fetch BASE_SHA. No
  SDK test or vulnerability audit failed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(I think I have a cleaner/faster solution though, incoming.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yea i ran into similar things w/ stacked prs getting a little wonky

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think part of the annoyance is our breaking change detector only runs based on diff from main and is using that as the branch head; and then you can't merge the whole stack in.

We should fix this though unintended and probably better to do something like using the last release

@ww-oai
ww-oai force-pushed the oss-remediation/01-artipacked branch from 4cd7b5f to e88260c Compare August 19, 2026 15:41
Comment on lines +24 to +28
persist-credentials: false
fetch-depth: 1

- name: Fetch comparison base
run: git fetch --no-tags --depth=1 origin "$BASE_SHA"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@apcha-oai I think this does the trick 🙂

@ww-oai
ww-oai added this pull request to the merge queue Aug 19, 2026
Merged via the queue into main with commit 8174e24 Aug 19, 2026
20 checks passed
@ww-oai
ww-oai deleted the oss-remediation/01-artipacked branch August 19, 2026 15:57
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