Skip to content
Merged
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
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,24 @@ The keys are listed on https://www.openssl.org/community/omc.html.

The generated binary is of the form `tor-<tor-version>-<os>-brave-<brave-version>`

### Updates:
### Updates

In case of updates for `tor` | `libevent` | `zlib` | `openssl`
Follow these steps in case of updates for `tor` | `libevent` | `zlib` | `openssl`.

This process is now almost fully automated in CI. Start with automation and switch to the manual process if automation fails for some reason.

### Automated process

1. Start a new _Build with Parameters_ on <https://ci.brave.com/job/brave-tor-client-release/> (branch = `master`) specifying the versions and hashes of the components to update, let the others empty to keep the existing versions. To get the hash, download the tarball and run `sha256sum` on it.
2. Look for a PR like <https://github.com/brave/tor_build_scripts/pull/171>, review and merge.
3. Look for a PR like <https://github.com/brave/brave-core-crx-packager/pull/1192> and review, but *do NOT merge*.
4. Look for a thread on `#testers` like https://bravesoftware.slack.com/archives/C0YL5KMA8/p1780427378323769 to know when the new tor daemon is available in dev.
5. Check that the correct version of the tor daemon is downloaded when running `brave-browser --use-dev-goupdater-url` (check the terminal log messages). Open <https://brave.com> and then its onion URL to check that the tor daemon is working.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is there a way to check on disk what version was downloaded? the command doesn't work for macos

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You could do it like this:

$ ls ~/.config/BraveSoftware/Brave-Browser-Beta/biahpgbdmdkfgndcmfiipgcebobojjkp/*

/home/francois/.config/BraveSoftware/Brave-Browser-Beta/biahpgbdmdkfgndcmfiipgcebobojjkp/1.0.43:
manifest.json  tor-0.4.9.8-linux-brave-0*  tor-torrc

/home/francois/.config/BraveSoftware/Brave-Browser-Beta/biahpgbdmdkfgndcmfiipgcebobojjkp/1.0.44:
manifest.json  tor-0.4.9.9-linux-brave-0*  tor-torrc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But you will need the --use-dev-goupdater-url flag otherwise you'll pulling down from the prod server.

6. Wait for QA's verification to be complete before merging the `brave/brave-core-crx-packager` PR
7. Kick off a _Build with Parameters_ on <https://ci.brave.com/job/brave-core-ext-tor-client-update-publish/> (branch = `master`) to upload the new tor daemon to the prod server. Test it like in step 5 but using the prod url for goupdater.
8. Go back to the QA Slack thread and ask for a quick check on all platforms.

### Manual process

1. Increment the brave version number in env.sh if needed.
2. Update the upstream distfile version in env.sh.
Expand Down
Loading