[build] Resolve Chrome milestone from Chrome-for-Testing channel version#17747
[build] Resolve Chrome milestone from Chrome-for-Testing channel version#17747titusfortner wants to merge 7 commits into
Conversation
PR Summary by QodoFix Chrome milestone resolution: conservative pinning, latest devtools
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules 1.
|
|
Code review by qodo was updated up to the latest commit 000e450 |
|
Code review by qodo was updated up to the latest commit 0cbabf1 |
There was a problem hiding this comment.
Pull request overview
Updates Selenium’s automation scripts to determine the current Chrome milestone via Chrome-for-Testing channel metadata (avoiding N-1 security respin edge cases) and improves robustness of some network fetches used by the CDP/devtools and pinned-browser update flows.
Changes:
- Switch milestone selection to Chrome-for-Testing “last known good” channel versions, then select the newest matching version-with-downloads entry.
- Add explicit non-200 handling for some download/fetch paths (e.g.,
.pdlfetches and SHA computation inputs). - Add a guard for missing
chromedriverdownloads in the selected Chrome-for-Testing entry.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| scripts/update_cdp.py | Resolves Chrome milestone/version from Chrome-for-Testing channel metadata; adds non-200 checks for protocol fetches. |
| scripts/pinned_browsers.py | Resolves Chrome/ChromeDriver pinned versions from Chrome-for-Testing channel metadata; adds non-200/availability guards. |
0cbabf1 to
0fa35a5
Compare
|
Code review by qodo was updated up to the latest commit 0fa35a5 |
|
Code review by qodo was updated up to the latest commit fab7a83 |
|
Code review by qodo was updated up to the latest commit ebd4d00 |
|
Code review by qodo was updated up to the latest commit 4984c25 |
|
Code review by qodo was updated up to the latest commit 66081a9 |
|
Code review by qodo was updated up to the latest commit 50f4c76 |
|
Code review by qodo was updated up to the latest commit 8c69597 |
🔗 Related Issues
💥 What does this PR do?
Resolve the Chrome milestone from Chrome-for-Testing's channel version, which always reflects the current stable/beta release.
Previously the devtools and pinned-browser updaters took the lowest of chromiumdash's latest release per platform, so a late N-1 security respin made them report the old milestone — the
Update Devtoolsjob produced no changes while Chrome 150 was already stable.🔧 Implementation Notes
The resolver is inlined in each script rather than shared; they are independent tools with different consumers (
repositories.bzlbinaries vs. devtools protocol files).Dropping the cross-platform
minchanges two behaviors:.pdl.🤖 AI assistance
💡 Additional Considerations
pinned_browserswill bump Chrome/ChromeDriver to the current stable milestone on its next run.🔄 Types of changes