Skip to content

Commit 6a3adb5

Browse files
authored
Fixes mozilla-mobile#11427 - Rename master branch to main (mozilla-mobile#20457)
* Fixes mozilla-mobile#11427 - Rename master branch to main (Automation/TC) * Fixes mozilla-mobile#11427 - Rename master branch to main (GitHub Workflows) * Fixes mozilla-mobile#11427 - Rename master branch to main (GitHub Workflows) * Fixes mozilla-mobile#11427 - Rename master branch to main (GitHub Issue Templates) * Fixes mozilla-mobile#11427 - Rename master branch to main (Jenkins) * Fixes mozilla-mobile#11427 - Rename master branch to main (README & Documentation) * Fixes mozilla-mobile#11427 - Rename master branch to main (Jenkins) * Fixes mozilla-mobile#11427 - Rename master branch to main (Random)
1 parent 173786d commit 6a3adb5

14 files changed

+35
-35
lines changed

.github/ISSUE_TEMPLATE/release_checklist.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ There are two releases this covers: the current sprint that is going out to Beta
2828

2929
## Sprint X.1 End [Wednesday, 2nd week] Cutting a Beta
3030
- [ ] Make a new Beta
31-
- [ ] Create a branch off of master (DO NOT PUSH YET) for the *current* milestone of format `releases_v85.0.0`. After that, anything landing in master will be part of the next release.
31+
- [ ] Create a branch off of main (DO NOT PUSH YET) for the *current* milestone of format `releases_v85.0.0`. After that, anything landing in main will be part of the next release.
3232
- ⚠️ Please **do not** use `/` in branch names anymore: Taskcluster silently ignores them and doesn't output tasks at the right index.
3333
- [ ] Bump `version.txt` to match the new version number
3434
- [ ] Grant [mozilla-release-automation-bot](https://github.com/mozilla-release-automation-bot) write access to this branch.
@@ -41,16 +41,16 @@ There are two releases this covers: the current sprint that is going out to Beta
4141
- [ ] Send an email to QA at [email protected] with a link to the Taskcluster build (subdirectory of the [Fenix CI](https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v2.fenix.beta))
4242

4343
### Bugfix uplifts / Beta Product Integrity (Beta Release until PI green signoff)
44-
- [ ] If bugs are considered release blocker then find someone to fix them on master and the milestone branch (cherry-pick / uplift)
44+
- [ ] If bugs are considered release blocker then find someone to fix them on main and the milestone branch (cherry-pick / uplift)
4545
- [ ] Add the uplift request to the appropriate row in the [Uplifts document](https://docs.google.com/spreadsheets/d/1qIvHpcQ3BqJtlzV5T4M1MhbWVxkNiG-ToeYnWEBW4-I/edit#gid=0).
4646
- [ ] If needed, ship a new beta version (e.g. v1.0-beta.2) and follow the submission checklist again.
4747
- [ ] Once there is GREEN QA signoff, file a [release management bugzilla for rollout](https://bugzilla.mozilla.org/show_bug.cgi?id=1664366)
4848
- [ ] Check Sentry each day for issues on [Firefox Beta](https://sentry.prod.mozaws.net/operations/firefox-beta/) and if nothing concerning, bump release in the bugzilla (5%, 20%, 100%)
4949

5050
### Uplifting L10N strings to Beta [Wednesday, 2 weeks after sprint end]
5151
- [ ] Find the issue ([example](https://github.com/mozilla-mobile/fenix/issues/16381)) filed by L10N / delphine saying string are ready for uplift (it takes 2 weeks for localizers to prepare localization).
52-
- [ ] If there are new locales that are ready to be added to Release, add them to [l10n-release.toml](https://github.com/mozilla-mobile/fenix/blob/master/l10n-release.toml)
53-
- [ ] Run the [L10N uplift script](https://github.com/mozilla-mobile/fenix/blob/master/l10n-uplift.py) against the releases/vX.1 branch (releases/v85.0.0). There will likely be conflicts, but if you are confused, they should match the strings in [main/Nightly](https://github.com/mozilla-mobile/fenix/tree/master/app/src/main/res)
52+
- [ ] If there are new locales that are ready to be added to Release, add them to [l10n-release.toml](https://github.com/mozilla-mobile/fenix/blob/main/l10n-release.toml)
53+
- [ ] Run the [L10N uplift script](https://github.com/mozilla-mobile/fenix/blob/main/l10n-uplift.py) against the releases/vX.1 branch (releases/v85.0.0). There will likely be conflicts, but if you are confused, they should match the strings in [main/Nightly](https://github.com/mozilla-mobile/fenix/tree/main/app/src/main/res)
5454
- [ ] Once all conflicts are resolved, tag a new Beta to be released.
5555
- [ ] Notify delphine in the L10N issue that the strings have been uplifted, and string quarantine can be lifted
5656

.github/workflows/sync-strings.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v2
2424
with:
2525
path: main
26-
ref: master
26+
ref: main
2727
- name: "Checkout Beta Branch"
2828
uses: actions/checkout@v2
2929
with:
@@ -40,6 +40,6 @@ jobs:
4040
token: ${{ secrets.GITHUB_TOKEN }}
4141
path: beta
4242
branch: automation/sync-strings-${{ steps.fenix-beta-version.outputs.major-beta-version }}
43-
title: "Sync Strings from master to releases_${{steps.fenix-beta-version.outputs.fenix-beta-version}}.0"
44-
body: "This (automated) PR syncs strings from `master` to `releases_${{steps.fenix-beta-version.outputs.fenix-beta-version}}.0.0`"
43+
title: "Sync Strings from main to releases_${{steps.fenix-beta-version.outputs.fenix-beta-version}}.0"
44+
body: "This (automated) PR syncs strings from `main` to `releases_${{steps.fenix-beta-version.outputs.fenix-beta-version}}.0.0`"
4545
labels: needs:review

Jenkinsfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
pipeline {
22
agent any
33
triggers {
4-
cron(env.BRANCH_NAME == 'master' ? 'H 0 * * *' : '')
4+
cron(env.BRANCH_NAME == 'main' ? 'H 0 * * *' : '')
55
}
66
options {
77
timestamps()
88
timeout(time: 1, unit: 'HOURS')
99
}
1010
stages {
1111
stage('test') {
12-
when { branch 'master' }
12+
when { branch 'main' }
1313
steps {
1414
dir('app/src/androidTest/java/org/mozilla/fenix/syncIntegration') {
1515
sh 'pipenv install'
@@ -22,7 +22,7 @@ pipeline {
2222
post {
2323
always {
2424
script {
25-
if (env.BRANCH_NAME == 'master') {
25+
if (env.BRANCH_NAME == 'main') {
2626
publishHTML(target: [
2727
allowMissing: false,
2828
alwaysLinkToLastBuild: true,
@@ -36,7 +36,7 @@ pipeline {
3636

3737
failure {
3838
script {
39-
if (env.BRANCH_NAME == 'master') {
39+
if (env.BRANCH_NAME == 'main') {
4040
slackSend(
4141
color: 'danger',
4242
message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL}HTML_20Report/)")

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Firefox for Android
22

3-
[![Task Status](https://github.taskcluster.net/v1/repository/mozilla-mobile/fenix/master/badge.svg)](https://github.taskcluster.net/v1/repository/mozilla-mobile/fenix/master/latest)
4-
[![codecov](https://codecov.io/gh/mozilla-mobile/fenix/branch/master/graph/badge.svg)](https://codecov.io/gh/mozilla-mobile/fenix)
3+
[![Task Status](https://github.taskcluster.net/v1/repository/mozilla-mobile/fenix/main/badge.svg)](https://github.taskcluster.net/v1/repository/mozilla-mobile/fenix/main/latest)
4+
[![codecov](https://codecov.io/gh/mozilla-mobile/fenix/branch/main/graph/badge.svg)](https://codecov.io/gh/mozilla-mobile/fenix)
55

66
Fenix (internal codename) is the all-new Firefox for Android browser, based on [GeckoView](https://mozilla.github.io/geckoview/) and [Mozilla Android Components](https://mozac.org/).
77

@@ -207,7 +207,7 @@ See a [demo of auto-publication workflow in action](https://www.youtube.com/watc
207207

208208
In order to build successfully, you need to check out a commit in the dependency repository that has no breaking changes. The two best ways to do this are:
209209
- Run the `<android-components>/tools/list_compatible_dependency_versions.py` script to output a compatible commit
210-
- Check out the latest commit from master in this repository and the dependency repository. However, this may fail if there were breaking changes added recently to the dependency.
210+
- Check out the latest commit from main in this repository and the dependency repository. However, this may fail if there were breaking changes added recently to the dependency.
211211

212212
### Using Nimbus servers during local development
213213
If you're working with the Nimbus experiments platform, by default for local development Fenix configures Nimbus to not use a server.

automation/releasetools/PrintMentionedIssuesAndPrs.kts

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import java.util.concurrent.TimeUnit
1212
* this will default to the tag on origin with the highest version name.
1313
*
1414
* To run this script:
15-
* - Update local master
15+
* - Update local main
1616
* - From project root, run `kotlinc -script automation/releasetools/PrintMentionedIssuesAndPrs.kts`
1717
*
1818
* TODO
19-
* - Use origin/master, instead of local master
19+
* - Use origin/main, instead of local main
2020
* - Interface with the GitHub API to filter out references to PRs
2121
* - Pull down issue names for each, to make constructing the changelog easier
2222
*/
@@ -51,8 +51,8 @@ fun getHighestVersionedTag(): String {
5151

5252
fun getMostRecentCommonAncestorWithMaster(tag: String): String {
5353
runCommand("git fetch $origin --tags")
54-
// TODO use origin master
55-
return runCommand("git merge-base master $tag").trim()
54+
// TODO use origin main
55+
return runCommand("git merge-base main $tag").trim()
5656
}
5757

5858
fun gitLogSince(sha: String): String {

automation/taskcluster/update_android_components.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if [[ $(hub pr list --head "$GITHUB_USER:$BRANCH") ]]; then
5959
echo "There's already an open PR."
6060
else
6161
echo "No PR found. Opening new PR."
62-
hub pull-request --base master --head "$GITHUB_USER:$BRANCH" --no-edit -m "Update Android Components version"
62+
hub pull-request --base main --head "$GITHUB_USER:$BRANCH" --no-edit -m "Update Android Components version"
6363
fi
6464

6565
unset GITHUB_TOKEN

docs/adjust.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Firefox Preview tracks certain types of installs using a third-party install tracking framework called Adjust. The intention is to determine the origin of Firefox Preview installs by answering the question, “Did this user on this device install Firefox Preview in response to a specific advertising campaign performed by Mozilla?”
22

3-
The framework consists of a software development kit (SDK) linked into Firefox Preview and a data-collecting Internet service backend run by the German company [adjust GmbH](https://www.adjust.com). The Adjust SDK is open source and MIT licensed. It is hosted at [https://github.com/adjust/android_sdk](https://github.com/adjust/android_sdk). Firefox Preview pulls in an unmodified copy of the SDK using Gradle. The [Dependencies.kt](https://github.com/mozilla-mobile/fenix/blob/master/buildSrc/src/main/java/Dependencies.kt#L39) contains the version of the framework that is being used. The SDK is documented at [https://docs.adjust.com](https://docs.adjust.com).
3+
The framework consists of a software development kit (SDK) linked into Firefox Preview and a data-collecting Internet service backend run by the German company [adjust GmbH](https://www.adjust.com). The Adjust SDK is open source and MIT licensed. It is hosted at [https://github.com/adjust/android_sdk](https://github.com/adjust/android_sdk). Firefox Preview pulls in an unmodified copy of the SDK using Gradle. The [Dependencies.kt](https://github.com/mozilla-mobile/fenix/blob/main/buildSrc/src/main/java/Dependencies.kt#L39) contains the version of the framework that is being used. The SDK is documented at [https://docs.adjust.com](https://docs.adjust.com).
44

55
## Adjust Integration
66

7-
The Adjust framework is abstracted via the [AdjustMetricService](https://github.com/mozilla-mobile/fenix/blob/master/app/src/main/java/org/mozilla/fenix/components/metrics/AdjustMetricsService.kt) class. All interaction with Adjust happens via this class.
7+
The Adjust framework is abstracted via the [AdjustMetricService](https://github.com/mozilla-mobile/fenix/blob/main/app/src/main/java/org/mozilla/fenix/components/metrics/AdjustMetricsService.kt) class. All interaction with Adjust happens via this class.
88

99
## Adjust Messages
1010

docs/architecture-overview.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Our largest deviation from these architectures is that while they each recommend
1212
#### Overview
1313
A store of state
1414

15-
See [mozilla.components.lib.state.Store](https://github.com/mozilla-mobile/android-components/blob/master/components/lib/state/src/main/java/mozilla/components/lib/state/Store.kt)
15+
See [mozilla.components.lib.state.Store](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/state/src/main/java/mozilla/components/lib/state/Store.kt)
1616

1717
Pushes changes to: [View](#view)
1818

@@ -25,15 +25,15 @@ It is recommended that consumers rely as much as possible on `consumeFrom(store)
2525

2626
Note that there is one Store for any given screen, and only one will be active at any given time. Stores are persisted across configuration changes, but created and destroyed during fragment transactions. This means that data that must be shared across Stores must be passed as arguments to the new fragment.
2727

28-
Stores should be created using [StoreProvider#get](https://github.com/mozilla-mobile/fenix/blob/master/app/src/main/java/org/mozilla/fenix/components/StoreProvider.kt).
28+
Stores should be created using [StoreProvider#get](https://github.com/mozilla-mobile/fenix/blob/main/app/src/main/java/org/mozilla/fenix/components/StoreProvider.kt).
2929

3030
-------
3131

3232
### <a name="action"/>Action
3333
#### Overview
3434
Simple description of a state change
3535

36-
See [mozilla.components.lib.state.Action](https://github.com/mozilla-mobile/android-components/blob/master/components/lib/state/src/main/java/mozilla/components/lib/state/Action.kt)
36+
See [mozilla.components.lib.state.Action](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/state/src/main/java/mozilla/components/lib/state/Action.kt)
3737

3838
Created by: [Controller](#controller)
3939

@@ -48,7 +48,7 @@ Simple data object that carries information about a [State](#state) change to a
4848
#### Overview
4949
Description of the state of a screen
5050

51-
See [mozilla.components.lib.state.State](https://github.com/mozilla-mobile/android-components/blob/master/components/lib/state/src/main/java/mozilla/components/lib/state/State.kt)
51+
See [mozilla.components.lib.state.State](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/state/src/main/java/mozilla/components/lib/state/State.kt)
5252

5353
Referenced by: [Store](#store)
5454

@@ -67,7 +67,7 @@ This also gives us a major advantage when debugging. If the UI looks wrong, chec
6767
#### Overview
6868
Pure function used to create new [State](#state) objects
6969

70-
See [mozilla.components.lib.state.Reducer](https://github.com/mozilla-mobile/android-components/blob/master/components/lib/state/src/main/java/mozilla/components/lib/state/Store.kt)
70+
See [mozilla.components.lib.state.Reducer](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/state/src/main/java/mozilla/components/lib/state/Store.kt)
7171

7272
Referenced by: [Store](#store)
7373

docs/crash-reporting.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ Firefox for Android uses a few libraries for crash and exception reporting. This
44

55
This page documents the types of crash reporting, how the various parts interact, and what kind of data is sent back to Mozilla.
66

7-
Documentation for the specific libraries is included in the [Android Components Crash Reporting README](https://github.com/mozilla-mobile/android-components/blob/master/components/lib/crash/README.md).
7+
Documentation for the specific libraries is included in the [Android Components Crash Reporting README](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/crash/README.md).
88

99
## Glean crash ping
1010

1111
[Glean SDK](https://mozilla.github.io/glean/book/index.html) is a Mozilla open source telemetry library, which Firefox for Android uses to collect app telemetry. It can also collect crash counts as a labeled counter with each label corresponding to a specific type of crash (such as `native_code_crash`, `unhandled_exception`).
1212

13-
The Glean crash ping format is documented [here](https://github.com/mozilla-mobile/android-components/blob/master/components/lib/crash/docs/metrics.md).
13+
The Glean crash ping format is documented [here](https://github.com/mozilla-mobile/android-components/blob/main/components/lib/crash/docs/metrics.md).
1414

1515
To opt in or out of Glean telemetry reporting, visit the Data collection menu under Settings.
1616

1717
## Breadcrumbs
1818

19-
[Breadcrumbs](https://github.com/mozilla-mobile/android-components/blob/master/components/support/base/src/main/java/mozilla/components/support/base/crash/Breadcrumb.kt) are trail of events that are sent with each crash report to both Socorro and Sentry.
19+
[Breadcrumbs](https://github.com/mozilla-mobile/android-components/blob/main/components/support/base/src/main/java/mozilla/components/support/base/crash/Breadcrumb.kt) are trail of events that are sent with each crash report to both Socorro and Sentry.
2020

2121
### Events
2222

23-
In [HomeActivity](https://github.com/mozilla-mobile/fenix/blob/master/app/src/main/java/org/mozilla/fenix/HomeActivity.kt) when `onDestinationChanged` occurs, the destination fragment's name and and whether it is a custom tab is added to the breadcrumbs.
23+
In [HomeActivity](https://github.com/mozilla-mobile/fenix/blob/main/app/src/main/java/org/mozilla/fenix/HomeActivity.kt) when `onDestinationChanged` occurs, the destination fragment's name and and whether it is a custom tab is added to the breadcrumbs.
2424

2525
## Socorro
2626

docs/telemetry.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Additional metrics or pings defined by Fenix are documented in the [Glean Dictio
1010

1111
## Crash reporting
1212

13-
See [here](https://github.com/mozilla-mobile/fenix/blob/master/docs/crash-reporting.md) for details on crash reporting in Firefox for Android.
13+
See [here](https://github.com/mozilla-mobile/fenix/blob/main/docs/crash-reporting.md) for details on crash reporting in Firefox for Android.

l10n-uplift.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import argparse
1515

1616
# TODO don't forget to change this once we switch to 'main' or whatever other name.
17-
MAIN_BRANCH="master"
17+
MAIN_BRANCH="main"
1818
L10N_AUTHOR="[email protected]"
1919

2020
def run_cmd_checked(*args, **kwargs):

l10n.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ locales = [
113113
# Expose the following branches to localization
114114
# Changes to this list should be announced to the l10n team ahead of time.
115115
branches = [
116-
"master",
116+
"main",
117117
]
118118

119119
[env]

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (file('local.properties').canRead()) {
3333
localProperties.load(file('local.properties').newDataInputStream())
3434
log('Loaded local.properties')
3535
} else {
36-
log('Missing local.properties; see https://github.com/mozilla-mobile/fenix/blob/master/README.md#local-properties-helpers for instructions.')
36+
log('Missing local.properties; see https://github.com/mozilla-mobile/fenix/blob/main/README.md#local-properties-helpers for instructions.')
3737
}
3838

3939
if (localProperties != null) {

taskcluster/ci/ui-test/kind.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
screenshots: true
6161
description: Run UI screenshots tests to keep them up to date
6262
run-on-tasks-for: []
63-
run-on-git-branches: [master]
63+
run-on-git-branches: [main]
6464
run:
6565
commands:
6666
- [automation/taskcluster/androidTest/ui-test.sh, x86-screenshots-tests, app.apk, android-test.apk, '-1']

0 commit comments

Comments
 (0)