en un clic
upgrade-browser
// Upgrade browser versions (Chrome or Firefox) in the Flutter Web Engine and/or Framework tests. Use when asked to roll or upgrade Chrome or Firefox to a newer version.
// Upgrade browser versions (Chrome or Firefox) in the Flutter Web Engine and/or Framework tests. Use when asked to roll or upgrade Chrome or Firefox to a newer version.
[HINT] Téléchargez le répertoire complet incluant SKILL.md et tous les fichiers associés
| name | upgrade-browser |
| description | Upgrade browser versions (Chrome or Firefox) in the Flutter Web Engine and/or Framework tests. Use when asked to roll or upgrade Chrome or Firefox to a newer version. |
This skill automates the process of upgrading Chrome and Firefox versions in the Flutter Web Engine and the Framework tests.
Before updating any files, find and verify the existence of the version you want to use.
dart scripts/fetch_versions.dart latest <chrome|firefox>
dart scripts/fetch_versions.dart verify <chrome|firefox> <version>
This command will return true or false.Verification Rules:
false, do not proceed.The user may request to upgrade one or both locations. They may also use different versions for each location.
engine/src/flutter/lib/web_ui/dev/package_lock.yaml)Update the version field for chrome or firefox.
chrome:
version: 'NEW_VERSION'
firefox:
version: 'NEW_VERSION'
.ci.yaml)Update all occurrences of chrome_and_driver with the new version.
- {"dependency": "chrome_and_driver", "version": "version:NEW_VERSION"}
Use replace with allow_multiple: true to ensure all instances are updated. Note: Currently, only Chrome is managed this way in .ci.yaml.
After updating the browser versions, synchronize the CI configurations. This step updates engine/src/flutter/ci/builders/linux_web_engine_test.json.
Only run this once. To verify if it needs to run, check the modification time of the file:
ls -l engine/src/flutter/ci/builders/linux_web_engine_test.json
From engine/src/flutter/lib/web_ui, run:
dev/felt generate-builder-json
Validation: Confirm the file engine/src/flutter/ci/builders/linux_web_engine_test.json has a new timestamp after the command finishes.
Before uploading to CIPD, run tests locally to ensure no regressions. From engine/src/flutter/lib/web_ui, run:
dev/felt test
Note: You can use --browser <chrome|firefox> to limit the scope.
This is the final step as it uploads binaries to CIPD and requires special, temporary permissions.
engine/src/flutter/lib/web_ui, run:
dart dev/package_roller.dart
Note: Use --dry-run if the user wants to test first.User: "Upgrade Chrome and Firefox to the latest stable versions everywhere."
Agent:
dart scripts/fetch_versions.dart latest to get the latest versions.engine/src/flutter/lib/web_ui/dev/package_lock.yaml and .ci.yaml.dev/felt generate-builder-json to sync CI configs.User: "Roll Chrome to version 135.0.0.0 everywhere. Skip verification."
Agent:
dart scripts/fetch_versions.dart verify because the user requested it.package_lock.yaml and .ci.yaml directly with 135.0.0.0.User: "Update Firefox in the web engine to 130.0."
Agent:
130.0 for Firefox using dart scripts/fetch_versions.dart verify firefox 130.0.package_lock.yaml.