Repository navigation
Conversation
…iver Pin the ChromeDriver version to test whether pinning ChromeDriver alone (without pinning Chrome browser) resolves CI test failures. This serves as a comparison experiment against PR #72 which uses browser-actions/setup-chrome. Co-Authored-By: Claude Opus 4.6 <[email protected]>
github-merge-queue Bot
pushed a commit
to zauberzeug/nicegui
that referenced
this pull request
Feb 8, 2026
…d Chrome (#5740) ### Motivation The `ubuntu-latest` runner image already ships with matched Chrome and ChromeDriver versions ([runner-images manifest](https://github.com/actions/runner-images/blob/ubuntu24/20260201.15/images/ubuntu/Ubuntu2404-Readme.md)). The third-party `nanasess/[email protected]` action is redundant and introduces a point of fragility: when Chrome auto-updates on the runner image, the action may install a mismatched or conflicting ChromeDriver version, causing test failures unrelated to any code change. This issue materialized on Feb 8, 2026, when Chrome auto-updated from `144.0.7559.96` to `144.0.7559.109` on the runner image. The update caused 4 test failures and 1 error across multiple unrelated PRs: | Test | Error | |------|-------| | `test_page::test_exception` | `AssertionError: Could not find "500"` | | `test_select::test_add_new_values[add-False-True]` | `IndexError: pop from empty list` | | `test_select::test_add_new_values[add-True-True]` | `IndexError: pop from empty list` | | `test_storage::test_missing_storage_secret` | `IndexError: pop from empty list` | | `test_page::test_exception_after_connected` | JS `RangeError: Maximum call stack size exceeded` | These failures appeared identically on two completely unrelated PRs ([evnchn#68](evnchn#68), [evnchn#71](evnchn#71)), confirming they are environment-caused, not code-caused. Upstream last ran CI on Feb 5 with Chrome `.96` (passing); the next CI run will encounter the same failures. ### Implementation Remove the `nanasess/[email protected]` step from `.github/workflows/_test.yml`. The runner image's preinstalled Chrome and ChromeDriver are used instead. This is the most maintainable approach because: - The runner image always ships a matched Chrome + ChromeDriver pair - If the preinstalled Chrome breaks, it affects the entire GitHub Actions ecosystem, guaranteeing rapid upstream fixes from GitHub/Microsoft - No third-party action to maintain, audit, or pin versions for - One fewer network fetch during CI (the action downloads ChromeDriver on every run) ### Alternatives explored Five approaches were tested on [evnchn/nicegui](https://github.com/evnchn/nicegui) to triangulate the root cause and find the best fix: | PR | Approach | Result | Trade-off | |----|----------|--------|-----------| | [#72](evnchn#72) | Pin Chrome+ChromeDriver to `.96` via `browser-actions/setup-chrome@v2` | **All 769 tests pass** | Requires manual version bumps; masks Chrome regressions | | [#73](evnchn#73) | Pin ChromeDriver only to `.96` via `nanasess` with `chromedriver-version` | **All 769 tests pass** | Same pinning burden; still depends on third-party action | | [#74](evnchn#74) | ARM64 runner (`ubuntu-24.04-arm`) + Chromium via apt | **3 failures**, 769 passed | 8% slower pytest (24m06s vs 22m18s), +93s Chromium install overhead, new platform-specific test failures (`test_upload` file path bug, `test_xterm` terminal size mismatch) | | [#75](evnchn#75) | Remove `nanasess`, use preinstalled Chrome | **All 769 tests pass** | **This approach** — zero maintenance, zero overhead | ### Timing comparison (PR #75 vs PR #74) | | PR #75 x86_64 (this approach) | PR #74 ARM64 | |---|---|---| | Chrome install | 0s (preinstalled) | 93s (apt-get) | | pytest duration | 22m 18s | 24m 06s | | Total job wall-clock | 22m 30s | 25m 56s | | Test result | **769 passed** | 3 failed, 769 passed | ### Root cause analysis - Chrome auto-updated from `144.0.7559.96` to `144.0.7559.109` between Feb 6 and Feb 8 on the `ubuntu-latest` runner image - All Python dependencies are identical across passing and failing runs (`selenium==4.40.0`, `cpython-3.10.19`) - Chromium commit log between `.97` and `.110` contains only Chrome-internal changes (contextual tasks UI, i18n, Android GPU, sandbox policy, translation, PDF, PKI metadata) — no V8, CSS, WebDriver, or networking changes - The behavioral regression in `.109` is likely in a rolled dependency (via DEPS) rather than a direct Chromium commit - Removing `nanasess` resolves the issue because the runner image's preinstalled Chrome `.109` and its matched ChromeDriver work correctly together — the problem was the version mismatch introduced by the action ### Progress - [x] I chose a meaningful title that completes the sentence: "If applied, this PR will..." - [x] The implementation is complete. - [x] If this PR addresses a security issue, it has been coordinated via the [security advisory](https://github.com/zauberzeug/nicegui/security/advisories/new) process. - [x] Pytests have been added (or are not necessary). - [x] Documentation has been added (or is not necessary). Co-authored-by: Claude Opus 4.6 <[email protected]>
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.
Summary
144.0.7559.96using the existingnanasess/[email protected]action'schromedriver-versioninputbrowser-actions/setup-chrome@v2to pin both Chrome and ChromeDriverContext
CI tests have been failing due to Chrome/ChromeDriver version mismatches. This PR tests the hypothesis that pinning only ChromeDriver (and letting the system Chrome remain unpinned) is sufficient to fix CI failures. By comparing the results of this PR against PR #72, we can determine whether:
Test plan
144.0.7559.96🤖 Generated with Claude Code