Skip to content

Fix Java nightly CDP imports and Ruby apt install in CI - #2940

Merged
diemol merged 4 commits into
trunkfrom
fix-ci-cdp-and-ruby-apt
Oct 28, 2026
Merged

diemol merged 4 commits into
trunkfrom
fix-ci-cdp-and-ruby-apt

Conversation

@diemol

@diemol diemol commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.

Description

  • Java: CdpApiTest and NetworkTest now import devtools.v155 instead of devtools.v153, the same version the .NET examples use. Only import lines change, so the gh-codeblock line ranges stay the same.
  • Java: CdpApiTest now pins Chrome 155 instead of 153, to match the v155 imports.
  • Ruby workflow: run sudo apt-get update before installing Fluxbox and the other packages.

Motivation and Context

  • Nightly Selenium (4.52.0-SNAPSHOT) no longer ships CDP v153, so the Java nightly jobs fail to compile, and CdpApiTest cannot open a CDP session on Chrome 153. v155 is in both stable 4.51.0 and nightly.
  • Without a package index update, the Ruby Ubuntu jobs ask for package versions the mirror no longer has, get 404s, and stop before any tests run.

The two Java test classes pass locally against stable 4.51.0.

Types of changes

  • Change to the site (I have double-checked the Netlify deployment, and my changes look good)
  • Code example added (and I also added the example to all translated languages)
  • Improved translation
  • Added new translation (and I also added a notice to each document missing translation)

Checklist

  • I have read the contributing document.
  • I have used hugo to render the site/docs locally and I am sure it works.

🤖 Generated with Claude Code

- [java] Use CDP v155 in the CDP examples. Nightly Selenium no longer
  includes v153. v155 is supported by both the stable and nightly builds.
- [ci] Run apt-get update before installing Fluxbox in the Ruby
  workflow, so apt does not request package versions the mirror no
  longer has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Fix Java nightly CDP imports and Ruby apt installation in CI

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 10 minutes

Grey Divider

AI Description

• Switch Java CDP examples to v155 imports available in stable and nightly Selenium.
• Refresh Ubuntu package indexes before Ruby CI installs Fluxbox and related packages.
Diagram

graph TD
  J["Java CI"] --> D["CDP examples"] --> V["CDP v155"]
  R["Ruby Ubuntu CI"] --> U["Refresh apt index"] --> P["Install GUI packages"]
Loading
High-Level Assessment

The targeted fixes preserve nightly coverage and the existing test behavior. Pinning Java tests to an older Selenium release would avoid the missing imports but defeat nightly testing; changing the Ruby package list would not address stale apt metadata.

Files changed (3) +13 / -12

Bug fix (3) +13 / -12
ruby-examples.ymlRefresh apt metadata before Ubuntu GUI setup +1/-0

Refresh apt metadata before Ubuntu GUI setup

• Adds 'sudo apt-get update' immediately before installing Fluxbox and related packages. The step remains limited to Ubuntu jobs and avoids installation failures caused by stale package indexes.

.github/workflows/ruby-examples.yml

CdpApiTest.javaUse CDP v155 imports in API examples +3/-3

Use CDP v155 imports in API examples

• Changes Browser, Network, and Headers imports from v153 to v155 so the test compiles against the targeted Selenium releases. Test methods and line ranges are unchanged.

examples/java/src/test/java/dev/selenium/bidi/cdp/CdpApiTest.java

NetworkTest.javaUse CDP v155 imports in network examples +9/-9

Use CDP v155 imports in network examples

• Moves the versioned Browser, Network, Performance, and model imports from v153 to v155. Test behavior is otherwise unchanged.

examples/java/src/test/java/dev/selenium/bidi/cdp/NetworkTest.java

@qodo-code-review

qodo-code-review Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can turn on the rule miner and Qodo learns your standards from review history

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit ac0e115 🚀 Fast

Results up to commit e21f117 ⚖️ Balanced


No changes from previous review

Grey Divider

Qodo Logo

@netlify

netlify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit d55604a
🔍 Latest deploy log https://app.netlify.com/projects/selenium-dev/deploys/6ae1cff239481e8153ab132a
😎 Deploy Preview https://deploy-preview-2940--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

diemol and others added 2 commits October 28, 2026 10:42
The examples pinned Chrome 153, which nightly Selenium no longer
supports. Chrome 155 matches the v155 CDP imports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown
Contributor

Code review by qodo was updated up to the latest commit ac0e115

@qodo-code-review

qodo-code-review Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

No code changes since the last review — review skipped

Qodo Logo

@diemol
diemol merged commit 892a3f7 into trunk Oct 28, 2026
7 checks passed
@diemol
diemol deleted the fix-ci-cdp-and-ruby-apt branch October 28, 2026 11:01
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