Closed Bug 1343585 Opened 7 years ago Closed 7 years ago

[Fennec-Relpro] fennec nightly task: include beta in version number for beetmover when appropriate

Categories

(Release Engineering :: Release Automation: Other, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlorenzo, Assigned: mozilla)

References

Details

Attachments

(3 files)

For the upcoming Fennec Release Promotion, Aki noted candidate builds are sent to https://s3.amazonaws.com/net-mozaws-stage-delivery-archive/pub/mobile/candidates/53.0-candidates/* [1] instead of 53.0b1-candidate.

Beetmover is aware of the version via balrog_props.json[2] which is generated by a buildbot configuration used by mozharness[3]. This buildbot config comes from application.ini[4], which itself gets its value from browser/config/version.txt[5].

We have never encountered this problem on the buildbot infrastructure, because the version is actually defined in the buildbot-config[6].

After discussing with :mshal, it seems we should pass the MOZ_APP_DISPLAY_VERSION, instead of MOZ_APP_VERSION. MOZ_APP_DISPLAY_VERSION was renamed this way in bug 1176533. On IRC, :Sylvestre was okay with us to use this var that way.

[1] For instance https://s3.amazonaws.com/net-mozaws-stage-delivery-archive/pub/mobile/candidates/53.0-candidates/build1/android-api-15/cy/fennec-53.0.cy.android-arm.checksums 
[2] For instance: https://queue.taskcluster.net/v1/task/YmvSQYOzRZiJrHWMzJzbCw/runs/0/artifacts/public/build/balrog_props.json
[3] https://dxr.mozilla.org/mozilla-central/rev/e1135c6fdc9bcd80d38f7285b269e030716dcb72/testing/mozharness/mozharness/mozilla/updates/balrog.py#17 and https://dxr.mozilla.org/mozilla-central/rev/e1135c6fdc9bcd80d38f7285b269e030716dcb72/testing/mozharness/mozharness/mozilla/buildbot.py#64
[4] https://dxr.mozilla.org/mozilla-central/rev/e1135c6fdc9bcd80d38f7285b269e030716dcb72/testing/mozharness/mozharness/mozilla/building/buildbase.py#740
[5] https://dxr.mozilla.org/mozilla-central/rev/e1135c6fdc9bcd80d38f7285b269e030716dcb72/build/application.ini.in#25 and https://dxr.mozilla.org/mozilla-central/rev/e1135c6fdc9bcd80d38f7285b269e030716dcb72/browser/confvars.sh#39 and https://dxr.mozilla.org/mozilla-central/source/old-configure.in#787
[6] https://hg.mozilla.org/build/buildbot-configs/file/7cb9f28ef3ff/mozilla/release-fennec-mozilla-beta.py#l23
Blocks: 1343393
:mtabara - would it make more sense to update balrog_props.json (which will affect the balrog submission as well), or to pass in the version info through the decision task, like build_number ?

balrog_props.json

* balrog will specify 53.0b1 instead of 53.0
* beetmover will specify 53.0b1 instead of 53.0

task.payload.version ?

* balrog will continue to specify 53.0
* beetmover can specify 53.0b1 instead of 53.0, if it gets the version info from the task payload instead of balrog_props.json
Flags: needinfo?(mtabara)
Good question. I don't have a strong opinion here. However, I never liked the fact that we're so dependent on balrog_props so I'm leaning towards the latter, to use via payload.

(In reply to Aki Sasaki [:aki] from comment #3)
> task.payload.version ?
> * balrog will continue to specify 53.0

Yes and no. We will soon need to alter/add logic in beetmoverscript to generate the correct release-type manifest to fit ahttps://github.com/mozilla-releng/balrogscript/blob/master/balrogscript/script.py#L41 . If we have the task.payload.version at hand, we can use that instead of the version from balrog_props.json and get the correct version in balrog submission for free (per 'toVersion' argument from https://github.com/mozilla-releng/balrogscript/blob/master/balrogscript/script.py#L43 )
Flags: needinfo?(mtabara)
Summary: [Fennec-Relpro] fennec nightly task: pass complete version number to balrog_props → [Fennec-Relpro] fennec nightly task: include beta in version number for beetmover when appropriate
Attachment #8842558 - Flags: review?(mtabara)
Attachment #8842558 - Flags: review?(mtabara) → review+
add task.payload.version to release beetmover tasks.
Attachment #8842564 - Flags: review?(mtabara)
Comment on attachment 8842564 [details] [diff] [review]
in-tree-version.diff

Review of attachment 8842564 [details] [diff] [review]:
-----------------------------------------------------------------

Wow, this is super smooth approach, nice!
To be honest, I would have added it similarly to the build_number, taking it from the environment passed by from the Ship-it interface.
But we have sanity checks that make sure the Ship-it version is the same with the value from version_display.txt so this is even better! Taking it from the source of truth!
Attachment #8842564 - Flags: review?(mtabara) → review+
Assignee: jlorenzo → aki
https://hg.mozilla.org/projects/jamun/rev/b244e3ea2d982f79abc606ce364a854b1c881478
bug 1343585 - add task.payload.version to release beetmover tasks. r=mtabara
We still need to land on m-c and uplift to m-a... I think this patch also needs to land in m-i... we can hold off til we verify though.
Testing a new fennec staging beta.
https://hg.mozilla.org/integration/mozilla-inbound/rev/7ab155596912494146faebc0ce30b542e2b730fa
bug 1343585 - add task.payload.version to release beetmover tasks. r=mtabara a=release
Uplifted to aurora, and I believe this is fixed in the staging beta1.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.