android-components icon indicating copy to clipboard operation
android-components copied to clipboard

Fennec migration: The Release migration build number is displayed as Beta

Open ebalazs-sv opened this issue 6 years ago • 11 comments

Preconditions:

Have Firefox Release installed and logged in.

Steps to reproduce

  1. Replace Fennec with Fenix using a build from https://github.com/mozilla-mobile/fenix/wiki/Fennec-Migration;
  2. Launch Fenix;
  3. Go to Settings -> About Firefox Preview and observe the build number.

Expected behavior

The build number is displayed as "Nightly 191209 6:07".

Actual behavior

The build number is displayed as "null".

Notes:

Screenshot

Device information

  • Android device: Google Pixel 2 (Android 9) - ARM64; Nexus 6P (Android 8.1.0) - ARM; Xiaomi Mi Pad 2 (Android 5.1) - x86.
  • Fenix version: Nightly 191209 GV 71

┆Issue is synchronized with this Jira Task

ebalazs-sv avatar Dec 09 '19 09:12 ebalazs-sv

I would like to work on this.

andlzr avatar Dec 17 '19 12:12 andlzr

I tested this on today's Release, Beta, Nightly migration build 12/18 with Google Pixel 2 (Android 9), Samsung Galaxy S8 (Android 9) - ARM64; Nexus 6P (Android 8.1.0) - ARM; Xiaomi Mi Pad 2 (Android 5.1) - x86 and the build number is displayed as follows:

  • Release: 3.1.0-beta.1 GV 72;
  • Beta: 3.1.0-beta.1 GV 72;
  • Nightly: Nightly 191218 GV 73;

Sparky93, The Release build number is displayed as Beta build number.

ebalazs-sv avatar Dec 18 '19 08:12 ebalazs-sv

I had tested this on Release, Beta, Nightly migration builds from 01/10 with Samsung Galaxy S8 (Android 9), Huawei Honor 8 (Android 7.0), Xiaomi Mi4i (Android 5.0.2) and the build numbers are displayed as follows:

  • Release: 3.1.0-beta.1 GV 73;
  • Beta: 3.1.0-beta.1 GV 73;
  • Nightly: Nightly 200110 GV 74;

Due to the different behavior I will change the bug title.

ebalazs-sv avatar Jan 10 '20 09:01 ebalazs-sv

Hello, it looks like the last behavior is intended, based on this line so I'd propose to close this as invalid, @liuche how do you suggest to proceed?

andlzr avatar Jan 17 '20 09:01 andlzr

@st3fan ^^

Please include Stefan for bugs filed for migration, he's the point person that and should be kept aware of these!

liuche avatar Jan 17 '20 21:01 liuche

@JohanLorenzo Since we pass the version string to the build in automation: Do you know why the fennecProduction build picks up a beta version string? Is this only because of our "build this nightly" setup or do you think that will also affect our actual builds once we trigger them through a tagged release?

pocmo avatar Feb 10 '20 15:02 pocmo

Hi there!

TL;DR: fennecProduction contains a bug I didn't foresee when landing https://github.com/mozilla-mobile/fenix/pull/7081. To me, this bug looks minor and shouldn't impact the real migration because we will ship releases thanks to Github Releases. Anyway, Releng should own the fix. I see 4 ways of doing so. Please let me know what you think @Callek.

Thanks for looping me in 🙂

From what I understand, this ticket covers 2 different issues:

  1. About Firefox Preview displays a null version.
  2. fennecProduction displays a beta version number.

I don't know about the first item, although I can answer regarding the second one.

fennecProduction is currently part of the nightly graph because we need to qualify the migration early. This means there is no Github-Release created which means there is no tag to specify the version number.

We introduced a version file stored in the repo in https://github.com/mozilla-mobile/fenix/pull/7081. This version file is meant to replace Github-Releases in order to enable a Releng's tool called Shipit. Shipit will make releases more secure than when kicked off regular Github-Releases. We intend to fully enable once the Fennec migration is done. This version file will be automatically bumped by Shipit once a realease is officially out. At the moment, this file is present for testing only while Releng keeps enabling Shipit.

Anyway, this version file is the default version is there is no tag specified - which is what happens in the nightly graph. That's why fennecProduction ends up with this beta version number.

I see 4 ways of solving this bug: a. Either we move fennecProduction off nightly and the bug will go away. b. Or we revert https://github.com/mozilla-mobile/fenix/pull/7081. c. Or we don't set parameters["release_version"] in the nightly graph so no version number is defined. d. Or we define 2 different version files, just like Fennec does: beta file, release file

I would be inclined to go for option d. @Callek, what do you think?

JohanLorenzo avatar Feb 11 '20 10:02 JohanLorenzo

To me, this bug looks minor and shouldn't impact the real migration because we will ship releases thanks to Github Release

If it does not impact real releases then I think it is absolutely okay to just close the issue. We will pass an "actual release" to QA before starting beta/production migration and can at that point verify the version. I think there is no need to fix that for our "nightly" setup.

pocmo avatar Feb 11 '20 15:02 pocmo

@ebalazs-sv I am going to close this issue and move it to the "QA" column. However note that this will not be fixed until we officially tag a build for sign-off.

pocmo avatar Feb 13 '20 09:02 pocmo

We will check this with the official Release Migration build. I will move this to Done. Thanks!

ebalazs-sv avatar Feb 13 '20 12:02 ebalazs-sv

@JohanLorenzo if we were to tackle from code, (d) probably makes the most sense, followed by (c). I'm happy with the (e) [close this issue] too.

Callek avatar Feb 13 '20 13:02 Callek