Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Updates Fenix taskcluster tasks to support beta release #1893

Merged
merged 4 commits into from
May 6, 2019

Conversation

mitchhentges
Copy link
Contributor

@mitchhentges mitchhentges commented Apr 22, 2019

This depends on:

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

Copy link
Contributor

@JohanLorenzo JohanLorenzo left a comment

Choose a reason for hiding this comment

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

LGTM overall. I like the way beta is supported! I found some discrepancies between .taskcluster.yml and decision.py. No big deal as they would be caught by a staging release/nightly.

automation/taskcluster/decision_task.py Show resolved Hide resolved
.taskcluster.yml Outdated Show resolved Hide resolved
.taskcluster.yml Outdated Show resolved Hide resolved
automation/taskcluster/lib/tasks.py Outdated Show resolved Hide resolved
automation/taskcluster/lib/tasks.py Show resolved Hide resolved
automation/taskcluster/lib/tasks.py Show resolved Hide resolved
@mitchhentges mitchhentges force-pushed the beta-automation branch 9 times, most recently from e8708d9 to 3d27522 Compare April 26, 2019 15:35
@mitchhentges mitchhentges requested review from JohanLorenzo and removed request for JohanLorenzo April 29, 2019 12:43
@mitchhentges mitchhentges marked this pull request as ready for review April 29, 2019 12:59
@mitchhentges mitchhentges requested review from a team as code owners April 29, 2019 12:59
metadata:
name: Fenix - Decision task
description: Schedules the build and test tasks for Fenix.
- $if: 'tasks_for == "github-release"'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that right now, any github release is assumed to be beta.
As we get closer to the Fenix Preview release, I'll add a parse check to see if the tag has -beta.* on it

Copy link
Contributor

@JohanLorenzo JohanLorenzo left a comment

Choose a reason for hiding this comment

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

r+ \o/
Let's fix the colliding Treeherder symbols before landing, though.

.taskcluster.yml Outdated
&& python automation/taskcluster/decision_task.py beta ${event.release.tag_name}
extra:
treeherder:
symbol: B
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: B might be confused with "build", for people who come from mozilla-central. We might want to go with beta. I'm fine changing N, for the sake of consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point!

I'm fine changing N, for the sake of consistency.

As in changing N to nightly, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Right :)

@@ -25,8 +27,8 @@ android {
applicationId "org.mozilla.fenix"
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion
versionCode Config.versionCode
versionName Config.versionName + Config.generateVersionSuffix()
versionCode 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: do we still want to keep versionCode 1. My understanding was that very first APK has already been uploaded to Google Play.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right that the first APK has already been uploaded to Google Play.
Config.versionCode used to just be 1, so I'm just inlining that value to the one place it's used (here) so it's more obvious at-a-glance.

Note that this is overridden separately here for release builds :)

app/build.gradle Show resolved Hide resolved
app/build.gradle Show resolved Hide resolved
@@ -387,4 +409,4 @@ task printGeckoviewVersions {

// Normally this should use the same version as the glean dependency. But since we are currently using AC snapshots we
// can't reference a git tag with a specific version here. So we are just using "master" and hoping for the best.
apply from: 'https://github.com/mozilla-mobile/android-components/raw/master/components/service/glean/scripts/sdk_generator.gradle'
apply from: 'https://github.com/mozilla-mobile/android-components/raw/master/components/service/glean/scripts/sdk_generator.gradle'
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: EOL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this something that should be addressed? I think that *nix prefers there to be an EOL at EOF, but Windows doesn't care. See this point.

Mildly-relevant side-note: some of my tools automatically add a line to EOF, and I don't want to hunt them down and disable 'em :P
Are you ok with leaving this in?

automation/taskcluster/decision_task.py Show resolved Hide resolved
automation/taskcluster/lib/tasks.py Show resolved Hide resolved
@@ -409,17 +415,17 @@ def craft_nightly_signing_task(
'machine': {
'platform': 'android-all',
},
'symbol': 'Ns',
'symbol': '{}s'.format(capitalized_build_type[0]),
Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand correctly, beta would show up as Bs, right? I don't mean to BS you, but that symbol is already used in mozilla-central for build-signing. I'd prefer to not overload that symbol, if people familiar with Treeherder on m-c go to Fenix.

How about BeS or beta-s ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

beta-s sounds great!

@mitchhentges mitchhentges force-pushed the beta-automation branch 2 times, most recently from 2dbc325 to 618fa05 Compare April 29, 2019 13:55
@mitchhentges mitchhentges force-pushed the beta-automation branch 2 times, most recently from aab01a8 to fb8f3a4 Compare May 6, 2019 15:41
@mitchhentges mitchhentges force-pushed the beta-automation branch 4 times, most recently from 8386d19 to b457f7a Compare May 6, 2019 15:58
@mitchhentges
Copy link
Contributor Author

@mitchhentges mitchhentges merged commit 282ad31 into mozilla-mobile:master May 6, 2019
@mitchhentges mitchhentges deleted the beta-automation branch May 6, 2019 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants