Skip to content

Commit

Permalink
[CodeHealth] version_up command-line tool
Browse files Browse the repository at this point in the history
This PR introduces a command line tool to assist with version upgrade
tasks. This initial version supports the creation of the four basic
changes necessary to get a new brave version building.

This script is capable of a) updating the version number for Chromium,
b) perform basic conflict resolution, c) create the "Update Patches"
change for the new version, d) create the "Updated strings" change.

This tool is being introduced as a starting point for making the daily
"canary" tasks easier, as well as providing to provide more robust infra
support for these tasks and for version bumps.

This tool is should be usuable both at CI and locally.

A basic run:

```
script/version_up.py --previous=origin/master --to=135.0.7035.1
```

Changes to `.gitignore` are being introduced as this local file is
required when the tool has give up on conflict resolution and wait for
the user to resolve them.

Finally, the changes to `.style.yapf` are being added to have our own
style matching what is used in Chromium.

Resolves brave/brave-browser#44244
  • Loading branch information
cdesouza-chromium committed Feb 26, 2025
1 parent 49ffee3 commit 7534f41
Show file tree
Hide file tree
Showing 3 changed files with 601 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,8 @@ build/config/gclient_args.gni
third_party/rust/target
xcuserdata

# This is a temp file used by script/version_up.py
.version_upgrade

# buffer exclusion file generated locally during sync
build/config/unsafe_buffers_paths.txt
3 changes: 3 additions & 0 deletions .style.yapf
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[style]
based_on_style = pep8

column_limit = 80
indent_width = 2

# Workaround yapf dict formatting bug.
# See for details: https://github.com/google/yapf/issues/392
allow_split_before_dict_value = False
Loading

0 comments on commit 7534f41

Please sign in to comment.