| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
1 issue found across 3 files
Confidence score: 2/5
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/ci.yml">
<violation number="1" location=".github/workflows/ci.yml:85">
P1: In `stainless-sdks/*` repositories, this `runs-on` expression always picks the Ubuntu depot runner, so the Windows matrix job never gets a Windows runner. Gate the depot override to the Ubuntu matrix entry so `windows-latest` still runs on Windows.</violation>
</file>
sequenceDiagram
participant GH as GitHub Actions
participant CI as CI Workflow (test job)
participant Runner as CI Runner (Ubuntu/Windows)
participant Bash as Bash Shell
participant Bootstrap as Bootstrap Script
participant Test as Test Script
participant Git as Git Checkout (LF forced)
participant PyTest as Pytest (Python 3.9/3.14)
participant Env as Environment Variables
participant Tracemalloc as Tracemalloc Leak Check
participant ProxyTest as Proxy Env Test
participant Client as DefaultHttpxClient
Note over GH,Runner: CI Test Matrix (Ubuntu + Windows)
GH->>CI: Trigger test job
CI->>Runner: Select runner (matrix.os)
Runner->>Git: Checkout repo
Git->>Git: CHANGED: Force LF for tests/sample_file.txt (.gitattributes)
Runner->>Bash: Run bootstrap
Bash->>Bootstrap: Execute ./scripts/bootstrap
Bootstrap-->>Bash: Setup complete
Runner->>Bash: Run tests
Bash->>Test: Execute ./scripts/test
Test->>PyTest: Run test suite (3.9 and 3.14)
alt Windows OS
Note over PyTest,Tracemalloc: Platform-specific behavior
PyTest->>Tracemalloc: Skip leak assertions (win32)
PyTest->>ProxyTest: Run proxy env test (case-insensitive vars)
else Ubuntu OS
PyTest->>Tracemalloc: Skip only if Python >= 3.10
PyTest->>ProxyTest: Run proxy env test
end
ProxyTest->>Env: Clear HTTP_PROXY, ALL_PROXY, lowercase variants
ProxyTest->>Env: Set HTTPS_PROXY (last, after clearing)
Env-->>ProxyTest: Case-insensitive handling on Windows
ProxyTest->>Client: Instantiate client with proxy env
Client-->>ProxyTest: Client configured
PyTest-->>Test: Test results
Test-->>Bash: Exit code
Bash-->>Runner: Pass/Fail
Runner-->>CI: Report status
CI-->>GH: Job status
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Sorry, something went wrong.
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest] | ||
| runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || matrix.os }} |
There was a problem hiding this comment.
P1: In stainless-sdks/* repositories, this runs-on expression always picks the Ubuntu depot runner, so the Windows matrix job never gets a Windows runner. Gate the depot override to the Ubuntu matrix entry so windows-latest still runs on Windows.
Prompt for AI agentsCheck if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/ci.yml, line 85:
<comment>In `stainless-sdks/*` repositories, this `runs-on` expression always picks the Ubuntu depot runner, so the Windows matrix job never gets a Windows runner. Gate the depot override to the Ubuntu matrix entry so `windows-latest` still runs on Windows.</comment>
<file context>
@@ -77,8 +77,12 @@ jobs:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || matrix.os }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
</file context>
| runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || matrix.os }} | |
| runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && matrix.os == 'ubuntu-latest' && 'depot-ubuntu-24.04' || matrix.os }} |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Testing
Fixes #355
Summary by cubic
Add Windows to the CI test matrix and make tests cross-platform stable. CI previously ran only on Ubuntu; now it runs on Ubuntu and Windows, with fixes for CRLF-sensitive fixtures, Windows proxy env var behavior, and flaky tracemalloc leak checks. Fixes #355.
Written for commit b3ea05e. Summary will update on new commits.