Skip to content

fix: version cached binary filename to detect stale/mismatched drivers#733

Merged
christian-bromann merged 1 commit into
webdriverio-community:mainfrom
mccmrunal:fix/versioned-binary-cache-731
Jul 2, 2026
Merged

fix: version cached binary filename to detect stale/mismatched drivers#733
christian-bromann merged 1 commit into
webdriverio-community:mainfrom
mccmrunal:fix/versioned-binary-cache-731

Conversation

@mccmrunal

@mccmrunal mccmrunal commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings June 29, 2026 17:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the geckodriver installer to avoid stale/mismatched cached binaries by incorporating the resolved version into the cached binary filename, and adds tests around caching and staging-directory behavior.

Changes:

  • Add getBinaryFilename(version) and switch cache lookup/output to versioned filenames.
  • Introduce per-download staging directories (mkdtemp) to avoid shared intermediate extraction paths.
  • Expand unit tests to cover versioned filenames and caching hot paths (including “no network when cached”).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/install.ts Versioned cache paths, staging-directory extraction, and final rename into versioned binary name.
tests/unit.test.ts New unit tests and module-scope mocks to validate versioned filenames and caching/staging behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/install.ts
Comment thread src/install.ts Outdated
@mccmrunal mccmrunal force-pushed the fix/versioned-binary-cache-731 branch from 6e56751 to 6db383b Compare June 29, 2026 17:40
@christian-bromann christian-bromann merged commit 6e24754 into webdriverio-community:main Jul 2, 2026
14 checks passed
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.

3 participants