Repository navigation
fix(ci): use an explicit browser demo dependency - #4185
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Castiron custom codeEvaluated main: Trusted main policy: ✅ No new custom-code files detected. 0 mixed files remain; 0 existing customizations changed. Compared A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 40420699510 --repo openai/openai-python \
--name castiron-custom-code-40420699510-1 --dir /tmp/castiron-custom-code-40420699510-1
git apply --stat /tmp/castiron-custom-code-40420699510-1/custom-code.patch
cat /tmp/castiron-custom-code-40420699510-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 06dbb5d019d7b6870b5898bf5df579ca60b61d28 5aa0852ee2dbcca00dcdced3bab432a2e21ab80c
python3 scripts/castiron/custom_code_report.py report \
--base 06dbb5d019d7b6870b5898bf5df579ca60b61d28 \
--head 5aa0852ee2dbcca00dcdced3bab432a2e21ab80c --target-branch main --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-5aa0852ee2db
cat /tmp/castiron-custom-code-5aa0852ee2db/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08c09a692a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if isinstance(entry, str): | ||
| result.append(entry) | ||
| elif isinstance(entry, dict) and set(entry) == {"include-group"} and isinstance(entry["include-group"], str): | ||
| result.extend(dependency_group_requirements(project, entry["include-group"], (*active, key))) |
There was a problem hiding this comment.
Bound dependency-group include expansion
A valid acyclic include graph can expand exponentially here because every path recursively materializes another list, while active only detects cycles. For example, a small layered diamond where each group includes two groups from the preceding layer doubles the copied requirements per layer; roughly 30 layers can make the security check consume gigabytes or hang CI before validation completes. Memoize or traverse into bounded sets/contexts, and enforce an explicit work/output limit as the marker-expansion code does.
Useful? React with 👍 / 👎.
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Reviewed the final one-line change at 5aa0852. The explicit browser-demo requirement matches provider-browser and the existing uv.lock metadata, while avoiding the security checker’s string-only parsing failure. The earlier recursive resolver and its expansion concern are absent from this revision. No actionable findings. Static review only; no local code or tests ran. Hosted lock freshness, Python policy, browser-demo types, and Castiron checks have passed; other hosted checks are still running.
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed 5aa0852ee2dbcca00dcdced3bab432a2e21ab80c. The explicit browser-demo pin matches provider-browser and the existing lock metadata. It also fits the security checker's string-only dependency parser. No blocking findings in this one-line change.
Source-only review; no candidate tests or installs ran here. Hosted CI and the required human SDK CODEOWNER review remain separate gates.
Automated Release PR --- ## [3.40.0](openai/openai-python@v3.39.0...v3.40.0) (2026-10-27) ### Features * **api:** add prompt cache breakpoint TTL options ([openai#4188](openai#4188)) ([3596d18](openai@3596d18)) ### Bug Fixes * **ci:** use an explicit browser demo dependency ([openai#4185](openai#4185)) ([a3f4302](openai@a3f4302)) ### Chores * **api:** record completed generated-code separation ([openai#4190](openai#4190)) ([d7ab5ee](openai@d7ab5ee)) * **deps-dev:** bump griffe from 1.14.0 to 2.3.0 ([openai#4069](openai#4069)) ([766b849](openai@766b849)) * **deps:** bump actions/create-github-app-token from 3.2.0 to 3.3.0 ([openai#4178](openai#4178)) ([06dbb5d](openai@06dbb5d)) * **deps:** bump actions/download-artifact from 8.0.1 to 8.0.2 ([openai#4110](openai#4110)) ([2404d04](openai@2404d04)) * **deps:** bump actions/upload-artifact from 7.0.1 to 7.0.2 ([openai#4107](openai#4107)) ([0adf711](openai@0adf711)) * **deps:** bump github/codeql-action/analyze from 4.38.2 to 4.39.0 ([openai#4177](openai#4177)) ([1e42321](openai@1e42321)) * **deps:** bump openai/codex-action from 1.12 to 1.13 ([openai#4070](openai#4070)) ([904ed3f](openai@904ed3f)) * update generated-code verification and preserve SDK helpers ([openai#4186](openai#4186)) ([9412200](openai@9412200)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
…rity floors (#4127) Update aiohttp 3.14.3 → 3.14.4, multidict 6.7.1 → 6.9.1, PyJWT 2.14.0 → 2.15.0, and yarl 1.24.2 → 1.25.1. aiohttp 3.14.4 requires yarl>=1.25.1 upstream. Publish the aiohttp-extra minimums so downstream installers cannot select the replaced releases; retain the PyJWT development constraint, public hashed artifacts, and release-please marker. Compatibility validation covers supported Python versions, synchronous and asynchronous TLS/redirect behavior, streaming, wheel metadata, and preservation of repeated, blank, Unicode, and percent-encoded query values through the public aiohttp client. Local focused metadata/transport checks: 243 passed, 112 skipped. All required CI checks pass on dff3214, including Python 3.10/3.14, HTTPX2, build, lint, security scanning, and the trusted dependency-security gate. The additional browser-demo job is still installing Chromium. Prerequisite #4185 has merged. This branch is refreshed against main, retaining the previously merged Griffe 2.3.0 update and limiting dependency version changes to aiohttp, multidict, PyJWT, and yarl. Upstream behavior changes to consider for applications sharing these dependencies: aiohttp adds a default 1,000-field limit when its **server** parses URL-encoded forms (configurable via client_max_fields); yarl corrects query decoding; PyJWT tightens malformed-input handling and changes JWKS cache object reuse. This SDK does not use aiohttp's form server or PyJWT at runtime. SDK API symbols and the Python minimum are unchanged. <details><summary>Original Dependabot release notes</summary> Bumps the python-security group with 3 updates in the / directory: [aiohttp](https://github.com/aio-libs/aiohttp), [multidict](https://github.com/aio-libs/multidict) and [pyjwt](https://github.com/jpadilla/pyjwt). Updates `aiohttp` from 3.14.3 to 3.14.4 Updates `multidict` from 6.7.1 to 6.9.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/aio-libs/multidict/releases">multidict's releases</a>.</em></p> <blockquote> <h2>6.9.1</h2> <h2>Bug fixes</h2> <ul> <li> <p>Fixed the C extension reading freed memory on free-threaded builds when a list handed to :py:meth:<code>~multidict.MultiDict.update</code>, :py:meth:<code>~multidict.MultiDict.extend</code>, :py:meth:<code>~multidict.MultiDict.merge</code> or the :py:class:<code>~multidict.MultiDict</code> and :py:class:<code>~multidict.CIMultiDict</code> constructors, a <code>[key, value]</code> item inside any iterable handed to them, or a list tested with <code>in</code> against :py:meth:<code>~multidict.MultiDict.items</code>, is changed by another thread; a call that catches the list shrinking under it now raises :py:exc:<code>RuntimeError</code> -- by :user:<code>rodrigobnogueira</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/multidict/issues/1437">#1437</a>.</p> </li> <li> <p>Fixed a data race on the free-threaded build where a retired hash table's reader count used relaxed atomics, letting a lock-free <code>get()</code>/<code>getone()</code>/ <code>__getitem__()</code> read race a concurrent free of that table. The reader-exit decrement and the drain's free check now use release/acquire ordering instead -- by :user:<code>asvetlov</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/multidict/issues/1481">#1481</a>.</p> </li> <li> <p>Fixed a free-threaded build bug where two threads calling <code>update()</code>, <code>merge()</code>, or <code>__setitem__()</code> on the same key at the same time could lose the key entirely instead of just racing on which value wins. A decref of the replaced value could transiently suspend the writer's critical section, letting a second writer for the same key observe the first writer's in-progress entry as absent and, once both settled, mistake it for a stale duplicate and delete it. Every such decref is now deferred until the writer has released its critical section, so the window can no longer open. <code>setdefault()</code> had an unrelated instance of the same blind spot (it could insert a duplicate rather than recognizing an in-flight key), fixed alongside it -- by :user:<code>asvetlov</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/multidict/issues/1483">#1483</a>.</p> </li> <li> <p>Fixed a free-threaded build bug where <code>getall()</code> and the <code>items()</code>/ <code>keys()</code>/<code>values()</code> equality path could raise <code>KeyError</code> or report a present, never-deleted key as missing. A concurrent <code>update()</code>/<code>extend()</code>/ <code>__setitem__()</code> call can have its critical section transiently suspended (a decref triggering a blocking allocator call) while an entry is marked as part of its own bookkeeping; a reader landing in that window used to treat the mark as "not found" instead of "still there, in flight" -- by :user:<code>asvetlov</code>.</p> <p><em>Related issues and pull requests on GitHub:</em></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/aio-libs/multidict/blob/master/CHANGES.rst">multidict's changelog</a>.</em></p> <blockquote> <h1>6.9.1</h1> <p><em>(2026-09-21)</em></p> <h2>Bug fixes</h2> <ul> <li> <p>Fixed the C extension reading freed memory on free-threaded builds when a list handed to :py:meth:<code>~multidict.MultiDict.update</code>, :py:meth:<code>~multidict.MultiDict.extend</code>, :py:meth:<code>~multidict.MultiDict.merge</code> or the :py:class:<code>~multidict.MultiDict</code> and :py:class:<code>~multidict.CIMultiDict</code> constructors, a <code>[key, value]</code> item inside any iterable handed to them, or a list tested with <code>in</code> against :py:meth:<code>~multidict.MultiDict.items</code>, is changed by another thread; a call that catches the list shrinking under it now raises :py:exc:<code>RuntimeError</code> -- by :user:<code>rodrigobnogueira</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>1437</code>.</p> </li> <li> <p>Fixed a data race on the free-threaded build where a retired hash table's reader count used relaxed atomics, letting a lock-free <code>get()</code>/<code>getone()</code>/ <code>__getitem__()</code> read race a concurrent free of that table. The reader-exit decrement and the drain's free check now use release/acquire ordering instead -- by :user:<code>asvetlov</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>1481</code>.</p> </li> <li> <p>Fixed a free-threaded build bug where two threads calling <code>update()</code>, <code>merge()</code>, or <code>__setitem__()</code> on the same key at the same time could lose the key entirely instead of just racing on which value wins. A decref of the replaced value could transiently suspend the writer's critical section, letting a second writer for the same key observe the first writer's in-progress entry as absent and, once both settled, mistake it for a stale duplicate and delete it. Every such decref is now deferred until the writer has released its critical section, so the window can no longer open. <code>setdefault()</code> had an unrelated instance of the same blind spot (it could insert a duplicate rather than recognizing an in-flight key), fixed alongside it -- by :user:<code>asvetlov</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>1483</code>.</p> </li> <li> <p>Fixed a free-threaded build bug where <code>getall()</code> and the <code>items()</code>/ <code>keys()</code>/<code>values()</code> equality path could raise <code>KeyError</code> or report a present, never-deleted key as missing. A concurrent <code>update()</code>/<code>extend()</code>/ <code>__setitem__()</code> call can have its critical section transiently suspended (a decref triggering a blocking allocator call) while an entry is marked as</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aio-libs/multidict/commit/0a1770c7e69845c8ef2000b3707cd7f1917a6944"><code>0a1770c</code></a> Release 6.9.1 (<a href="https://redirect.github.com/aio-libs/multidict/issues/1504">#1504</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/d220522b54b1989c90a96aa50c42bb0264d46210"><code>d220522</code></a> Upload release assets one at a time to avoid the secondary rate limit (<a href="https://redirect.github.com/aio-libs/multidict/issues/1503">#1503</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/30cd596f945ed7b69f5502c693339224043eb9e9"><code>30cd596</code></a> Stop a GIL-releasing <strong>del</strong> from segfaulting the standard C extension build ...</li> <li><a href="https://github.com/aio-libs/multidict/commit/d1c331ab2617299a1385fff29ef4da64e50bd071"><code>d1c331a</code></a> Recheck the reader gate after taking the retired list (<a href="https://redirect.github.com/aio-libs/multidict/issues/1502">#1502</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/b37f07c1a16122f95208936f2e58f55ea99cdbaf"><code>b37f07c</code></a> Allocate deferred decrefs in fixed-size blocks (<a href="https://redirect.github.com/aio-libs/multidict/issues/1501">#1501</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/563f667307c376744ca345802ca835f8b84ba947"><code>563f667</code></a> Run CodSpeed benchmarks on Python 3.14 and loop the smallest ones (<a href="https://redirect.github.com/aio-libs/multidict/issues/1498">#1498</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/157c87c6cecbeac0011b085e8f6c2496754c17e6"><code>157c87c</code></a> Cancel superseded CI runs on pull requests (<a href="https://redirect.github.com/aio-libs/multidict/issues/1500">#1500</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/d43adfe27f759a2810a900db73fc85ab3660e75b"><code>d43adfe</code></a> Drop -I from the ASan test command so PYTHONMALLOC takes effect (<a href="https://redirect.github.com/aio-libs/multidict/issues/1499">#1499</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/2a68472db036f199ecb1c1a0c66872eeb03a3135"><code>2a68472</code></a> Stop items() iteration from reading a freed entry in CIMultiDict (<a href="https://redirect.github.com/aio-libs/multidict/issues/1496">#1496</a>)</li> <li><a href="https://github.com/aio-libs/multidict/commit/cd528d6d82dc1465042459b3cc143dc58c5ce6ab"><code>cd528d6</code></a> Rename GHSA-54p9-h82j-f925 changelog fragment to the merged commit (<a href="https://redirect.github.com/aio-libs/multidict/issues/1495">#1495</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aio-libs/multidict/compare/v6.7.1...v6.9.1">compare view</a></li> </ul> </details> <br /> Updates `pyjwt` from 2.14.0 to 2.15.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/releases">pyjwt's releases</a>.</em></p> <blockquote> <h2>2.15.0</h2> <p>See the <a href="https://github.com/jpadilla/pyjwt/blob/2.15.0/CHANGELOG.rst">2.15.0 changelog</a> for complete release details.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst">pyjwt's changelog</a>.</em></p> <blockquote> <h2><code>v2.15.0 <https://github.com/jpadilla/pyjwt/compare/2.14.0...2.15.0></code>__</h2> <p>Security</p> <pre><code> - Wrap recursion errors from deeply nested JWT payloads in ``DecodeError`` instead of exposing a raw ``RecursionError``. <p>Added</p> <pre><code> - Support Python 3.15 by @kytta in `[#1202](jpadilla/pyjwt#1202) &lt;https://github.com/jpadilla/pyjwt/pull/1202&gt;`__ Changed </code></pre> <ul> <li><code>JWKSetCache</code> now stores the parsed <code>PyJWKSet</code> rather than the raw JWKS payload, so a cache hit no longer re-parses every key. <code>JWKSetCache.put()</code> accepts either form and raises <code>PyJWKSetError</code> for anything else. As a result, <code>PyJWKClient.get_jwk_set()</code> returns the same <code>PyJWKSet</code> instance for as long as it stays cached, rather than a freshly built one per call in <code>[#1208](jpadilla/pyjwt#1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;</code>__</li> <li><code>PyJWKClient.fetch_data()</code> now raises <code>PyJWKClientError(&quot;The JWKS endpoint did not return a JSON object&quot;)</code> when the endpoint response is not a JSON object, instead of returning it for <code>get_jwk_set()</code> to reject. Callers reaching the JWKS through <code>get_jwk_set()</code> see the same error as before in <code>[#1208](jpadilla/pyjwt#1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;</code>__</li> </ul> <p>Fixed</p> <pre><code> - Return cached ``PyJWKSet`` values from ``PyJWKClient.get_jwk_set()`` instead of raising ``PyJWKClientError(&quot;The JWKS endpoint did not return a JSON object&quot;)``. ``JWKSetCache.put()`` documents ``PyJWKSet`` as the cached value, so callers pre-populating the cache to avoid a network round-trip could not read it back in `[#914](jpadilla/pyjwt#914) &lt;https://github.com/jpadilla/pyjwt/issues/914&gt;`__ and `[#1208](jpadilla/pyjwt#1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;`__ - ``PyJWKClient.get_jwk_set()`` now caches the key set it returns, so a ``fetch_data()`` override that filters or transforms the JWKS is no longer undone by the next cache hit in `[#1208](jpadilla/pyjwt#1208) &lt;https://github.com/jpadilla/pyjwt/pull/1208&gt;`__ - Raise the documented ``PyJWTError`` subclass instead of leaking a ``TypeError`` when the ``exp``, ``nbf``, or ``iat`` claim decodes to a non-numeric, non-string value such as a list, dict, or ``null``. - Reject OKP JWK private keys when their public ``x`` component does not match the private ``d`` component. - Treat malformed JWK Set members as unusable keys rather than letting ``AttributeError`` or ``TypeError`` escape ``PyJWKSet``. A member that is not &lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="jpadilla/pyjwt@1d41a6478e1562e68ff667fcd703356acf085f68"><code>1d41a64</code></a> chore: prepare 2.15.0 release</li> <li><a href="jpadilla/pyjwt@9bc06658f875b9b40091539140bbbdc4639161c3"><code>9bc0665</code></a> fix: make recursive payload tests deterministic</li> <li><a href="jpadilla/pyjwt@5fde08a6cf906aa7698de2d6391d88b73006b17b"><code>5fde08a</code></a> fix: normalize recursive JWT payload errors</li> <li><a href="jpadilla/pyjwt@171062d2d734315272a901100aa4b109f2fc3c19"><code>171062d</code></a> utils: mention bytes in force_bytes type error (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1173">#1173</a>)</li> <li><a href="jpadilla/pyjwt@c9d4d5375bf464ef363506fed9eb6e7f33217ab6"><code>c9d4d53</code></a> docs/conf: drop duplicate 'and' from read() docstring (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1174">#1174</a>)</li> <li><a href="jpadilla/pyjwt@2763752196113e1473b0ed7905aa6034aedfbe53"><code>2763752</code></a> Add support for Python 3.15 (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1202">#1202</a>)</li> <li><a href="jpadilla/pyjwt@4adcd02722f5011c60079d3978dfc167b9a8eaa5"><code>4adcd02</code></a> Catch http.client.HTTPException in PyJWKClient.fetch_data (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1201">#1201</a>)</li> <li><a href="jpadilla/pyjwt@9e501d993b4d3e7dba14bdb1722b1d993ac75097"><code>9e501d9</code></a> fix: correct docstring typo in _validate_jti (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1179">#1179</a>)</li> <li><a href="jpadilla/pyjwt@4047c44d51950ffda15f40054508d3f17c43b1e2"><code>4047c44</code></a> docs: clarify JWK certificate member handling (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1212">#1212</a>)</li> <li><a href="jpadilla/pyjwt@f4e2b59f543cc82d46d9d69922bba59e804216b9"><code>f4e2b59</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/1210">#1210</a>)</li> <li>Additional commits viewable in <a href="jpadilla/pyjwt@2.14.0...2.15.0">compare view</a></li> </ul> </details> <br /></code></pre> </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcus Wood <marcuswood@openai.com>
The security-update checker on main expects dependency-group entries to be requirement strings and crashes on the browser-demo group's include-group entry, blocking #4127.
Replace that alias with
playwright==1.63.0, the exact requirement already declared by provider-browser. The final change is one line in pyproject.toml. Package versions, the resolved dependency graph, and uv.lock remain unchanged.Validation: Python policy check, focused dependency-policy tests, and CI. This must land on main first because #4127's security gate executes the checker from the immutable base commit.