Skip to content

feat(browser): fetch Playwright driver bundle from Maven at runtime#117

Merged
alexk-dev merged 6 commits intomainfrom
feat/playwright-driver-bundle-maven
Feb 24, 2026
Merged

feat(browser): fetch Playwright driver bundle from Maven at runtime#117
alexk-dev merged 6 commits intomainfrom
feat/playwright-driver-bundle-maven

Conversation

@alexk-dev
Copy link
Owner

Summary

  • remove driver-bundle from application packaging so the fat JAR does not embed Playwright browser bundles
  • add PlaywrightDriverBundleService that resolves the current Playwright version from classpath and downloads driver-bundle-{version}.jar from Maven Central (hardcoded trusted hosts) when needed
  • store downloaded bundles under ${bot.update.updates-path}/playwright-driver/bundles and extracted installs under ${bot.update.updates-path}/playwright-driver/installs/{version}/{platform} while keeping old versions
  • wire driver preparation into startup (AutoConfiguration) and browser lazy init (PlaywrightAdapter) by setting playwright.cli.dir to the installed path
  • add unit tests for download/extract flow, reuse of installed driver, and retention of older bundle jars

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
78.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@alexk-dev alexk-dev merged commit 2121f20 into main Feb 24, 2026
16 of 17 checks passed
@alexk-dev alexk-dev deleted the feat/playwright-driver-bundle-maven branch February 24, 2026 23:14
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.

1 participant