Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ targets:
{"download_emsdk": true}
dependencies: >-
[
{"dependency": "chrome_and_driver", "version": "version:117.0"},
{"dependency": "chrome_and_driver", "version": "version:118.0.5993.70"},
{"dependency": "curl", "version": "version:7.64.0"}
]
framework: "true"
Expand Down
58 changes: 29 additions & 29 deletions ci/builders/linux_web_engine.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -391,7 +391,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -427,7 +427,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -463,7 +463,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -499,7 +499,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -535,7 +535,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -571,7 +571,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -607,7 +607,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -823,7 +823,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -859,7 +859,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -895,7 +895,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -931,7 +931,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -967,7 +967,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1003,7 +1003,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1039,7 +1039,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1075,7 +1075,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand All @@ -1095,7 +1095,7 @@
"recipe": "engine_v2/tester_engine",
"drone_dimensions": [
"device_type=none",
"os=Mac-12"
"os=Mac"
],
"gclient_variables": {
"download_android_deps": false
Expand Down Expand Up @@ -1127,7 +1127,7 @@
"recipe": "engine_v2/tester_engine",
"drone_dimensions": [
"device_type=none",
"os=Mac-12"
"os=Mac"
],
"gclient_variables": {
"download_android_deps": false
Expand Down Expand Up @@ -1159,7 +1159,7 @@
"recipe": "engine_v2/tester_engine",
"drone_dimensions": [
"device_type=none",
"os=Mac-12"
"os=Mac"
],
"gclient_variables": {
"download_android_deps": false
Expand Down Expand Up @@ -1191,7 +1191,7 @@
"recipe": "engine_v2/tester_engine",
"drone_dimensions": [
"device_type=none",
"os=Mac-12"
"os=Mac"
],
"gclient_variables": {
"download_android_deps": false
Expand Down Expand Up @@ -1223,7 +1223,7 @@
"recipe": "engine_v2/tester_engine",
"drone_dimensions": [
"device_type=none",
"os=Mac-12"
"os=Mac"
],
"gclient_variables": {
"download_android_deps": false
Expand Down Expand Up @@ -1271,7 +1271,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1307,7 +1307,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1343,7 +1343,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1379,7 +1379,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1415,7 +1415,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1451,7 +1451,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1487,7 +1487,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down Expand Up @@ -1523,7 +1523,7 @@
},
{
"dependency": "chrome_and_driver",
"version": "version:117.0"
"version": "118.0.5993.70"
}
],
"tasks": [
Expand Down
22 changes: 8 additions & 14 deletions lib/web_ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ tests locally. To make changes effective on LUCI follow instructions in

### Rolling browsers

When running tests on LUCI using Chromium, LUCI uses the version of Chromium
fetched from CIPD.
When running tests on LUCI using Chrome, LUCI uses the version of Chrome for
Testing fetched from CIPD.

Since the engine code and infra recipes do not live in the same repository
there are few steps to follow in order to upgrade a browser's version.
Expand Down Expand Up @@ -166,26 +166,20 @@ the `--dry-run` flag to the felt command.
NOTE: Because this script uses `fc-config`, this roll step only actually works
on Linux, not on macOS or Windows.

#### Chromium
#### Chrome for Testing

Chromium is an independent project that gets rolled into Flutter manually, and as needed.
Flutter consumes a pre-built Chromium version from chromium.org. When a new version of
Chromium (check [here](https://www.chromium.org/getting-involved/download-chromium/#downloading-old-builds-of-chrome-chromium))
is needed, follow these steps to roll the new version:
Chrome for Testing is an independent project that gets rolled into Flutter
manually, and as needed. Flutter consumes a pre-built Chrome for Testing build.
The available versions of Chrome for Testing available can be found [here](https://googlechromelabs.github.io/chrome-for-testing/). To roll to a newer version:

- Make sure you have `depot_tools` installed (if you are regularly hacking on
the engine code, you probably do).
- If not already authenticated with CIPD, run `cipd auth-login` and follow
instructions (this step requires sufficient privileges; contact
#hackers-infra-🌡 on [Flutter's Discord server](https://github.com/flutter/flutter/wiki/Chat)).
- Edit `dev/browser_lock.yaml` and update the following values under `chrome`:
- Set `Windows`, `Mac` and `Linux` to the `branch_base_position`s given [in this table](https://omahaproxy.appspot.com).
(Pick from `linux`, `mac` and `win` as `os`, and the `stable` channel.)
- Set `version` to a string composed of the Major Version of the browser, and
the number of times that major version has been uploaded to CIPD. For example,
start with `'99'` for version 99.0.4844.51 of Chromium, and update to `'99.1'`,
`'99.2'` and so on if you need to upload newer bundles of the same major version.
(This is required because tags can't be repeated in CIPD).
- Set `version` to the full four part version number of the build of Chrome
for Testing you want to roll (for example, `118.0.5993.70`)
- Run `dart dev/browser_roller.dart` and make sure it completes successfully.
The script uploads the specified versions of Chromium (and Chromedriver) to the
right locations in CIPD: [Chrome](https://chrome-infra-packages.appspot.com/p/flutter_internal/browsers/chrome),
Expand Down
16 changes: 1 addition & 15 deletions lib/web_ui/dev/browser_lock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'dart:io' as io;
import 'package:path/path.dart' as path;
import 'package:yaml/yaml.dart';

import 'common.dart';
import 'environment.dart';

/// Returns the browser configuration based on the `browser_lock.yaml` file in
Expand Down Expand Up @@ -36,23 +35,10 @@ class BrowserLock {

class ChromeLock {
ChromeLock._fromYaml(YamlMap yaml) :
linux = (yaml['Linux'] as int).toString(),
mac = (yaml['Mac'] as int).toString(),
macArm = (yaml['Mac_Arm'] as int).toString(),
windows = (yaml['Win'] as int).toString(),
version = yaml['version'] as String;

final String linux;
final String mac;
final String macArm;
final String windows;
/// The major version of Chromium represented by this lock. E.g: '96' (for Chromium 96.0.554.51)
/// The full version of Chromium represented by this lock. E.g: '119.0.6045.9'
final String version;

/// Return the Chromium Build ID to use for the current operating system.
String get versionForCurrentPlatform {
return PlatformBinding.instance.getChromeBuild(this);
}
}

class FirefoxLock {
Expand Down
18 changes: 1 addition & 17 deletions lib/web_ui/dev/browser_lock.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
# Please refer to the "Upgrade Browser Version" section in the README.md for
# more details on how to update browser version numbers.
chrome:
# It seems Chrome can't always release from the same build for all operating
# systems, so we specify per-OS build number.
#
# Follow these instructions to find the correct build number for a specific
# Chromium version + OS combo:
#
# https://www.chromium.org/getting-involved/download-chromium/#downloading-old-builds-of-chrome-chromium
#
# The OS names here must match what recipe Python expression
# `self.m.platform.name.capitalize()` evaluates to. See:
#
# recipe_modules/web_util/api.py
Linux: 1181205
Mac: 1181205
Mac_Arm: 1181212
Win: 1181217
version: '117.0' # CIPD tag for the above Build IDs. Normally "ChromeMajorVersion.UploadAttempt". ;)
version: '118.0.5993.70'
Copy link
Contributor

Choose a reason for hiding this comment

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

\o/


firefox:
version: '106.0'
Expand Down
Loading