Skip to content

Pin ChromeDriver to 144.0.7559.96 via nanasess/setup-chromedriver - #73

Closed
evnchn wants to merge 1 commit into
mainfrom
pin-chromedriver-nanasess
Closed

evnchn wants to merge 1 commit into
mainfrom
pin-chromedriver-nanasess

Conversation

@evnchn

@evnchn evnchn commented Feb 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pins ChromeDriver version to 144.0.7559.96 using the existing nanasess/[email protected] action's chromedriver-version input
  • Does NOT replace the action or pin the Chrome browser itself -- only ChromeDriver is pinned
  • Serves as a comparison experiment against PR Pin Chrome to 144.0.7559.96 to fix CI failures #72 which uses browser-actions/setup-chrome@v2 to pin both Chrome and ChromeDriver

Context

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:

  1. Pinning ChromeDriver alone is enough, or
  2. Both Chrome browser and ChromeDriver need to be pinned together

Test plan

🤖 Generated with Claude Code

…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]>
@evnchn evnchn closed this Feb 8, 2026
@evnchn
evnchn deleted the pin-chromedriver-nanasess branch February 12, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant