Closed Bug 1087940 Opened 10 years ago Closed 9 years ago

Make ro.build.version.incremental available through settings

Categories

(Core :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36
Tracking Status
firefox35 --- wontfix
firefox36 --- fixed
b2g-v2.1 --- fixed
b2g-v2.1S --- fixed
b2g-v2.2 --- fixed
b2g-master --- unaffected

People

(Reporter: leila.hadji, Assigned: leila.hadji)

Details

Attachments

(2 files, 1 obsolete file)

This is to add support for adding incremental build number in Settings app.
This patch should be built together with gecko patch.
This path is to add incremental "Build Number" on Settings app.

deviceinfo has been used in gaia-ui-tests and ftu as following:

tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/test_settings_device_info.py
tests/python/gaia-ui-tests/gaiatest/apps/settings/regions/device_info.py
gaia/apps/system/js/ftu_ping.js
apps/system/test/unit/ftu_ping_test.js

should I add the build_number to test and ftu in this bug or a new bug?
Attachment #8510210 - Flags: review?(fabrice)
Attachment #8510210 - Flags: review?(cjones.bugs)
Attachment #8510321 - Flags: review?(fabrice)
Attachment #8510321 - Attachment is obsolete: true
Attachment #8510321 - Flags: review?(fabrice)
Attachment #8510371 - Flags: review?(fabrice)
Attachment #8510210 - Flags: review?(cjones.bugs)
Why do we need that? Note that you are adding strings, and we are way past string freeze so we can't take that on 2.1.
Hi Fabrice,

This field is used to specify our SW version and we want to have the SW version visible in the settings, both for our end users and for internal users. Today we only see the Firefox OS version, gecko version and a build identifier which none of these can be set by us.
We are aware that it's late for 2.1, thus we are fine with getting it to 2.2(later version).

Thanks
Attachment #8510210 - Flags: review?(fabrice) → review+
Attachment #8510371 - Flags: review?(fabrice) → review?(arthur.chen)
Comment on attachment 8510371 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/25456

Newly added strings are only required to be added in the english language file. L10n team will work on the other languages.
Attachment #8510371 - Flags: review?(arthur.chen)
Attachment #8510371 - Flags: review?(arthur.chen)
Comment on attachment 8510371 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/25456

It seems that the build number does not always exist. Could you add logic determining the visibility of the item and related unit tests? Thanks.
Attachment #8510371 - Flags: review?(arthur.chen)
Running gaia on top of gonk, "ro.build.version.incremental" is always set to $BUILD_NUMBER
(in android tree: build/tools/buildinfo.sh), which in turn is set to "eng.$(USER).$(shell date +%Y%m%d.%H%M%S)" (in build/core/version_defaults.mk), if nothing else is provided (we can always set BUILD_NUMBER as environment variable), so the build number should always exists. 
I will add the patch for unit test. Thanks.
Attachment #8510371 - Flags: review?(arthur.chen)
Shawn, regarding comment9, could you provide inputs from the aspect of the build process? Thanks!
Flags: needinfo?(sku)
build/tools/buildinfo.sh shows "ro.build.version.incremental" is always there. Hence I agree with comment 9 to have a test case for preventing this.
Flags: needinfo?(sku)
Comment on attachment 8510371 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/25456

Thanks Leila and Shawn. The settings part looks good to me. Flagging Zac for reviewing the gaia ui tests.
Attachment #8510371 - Flags: review?(zcampbell)
Attachment #8510371 - Flags: review?(arthur.chen)
Attachment #8510371 - Flags: review+
Comment on attachment 8510371 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/25456

r+, thanks, but can you land the Gecko patch before the Gaia patch? 
As otherwise of course, then the tests will fail until the Gecko patch matches :)
Attachment #8510371 - Flags: review?(zcampbell) → review+
Fabrice, Can you help landing gecko patch before gaia? Thanks.
Flags: needinfo?(fabrice)
Flags: needinfo?(fabrice)
Attachment #8510210 - Flags: approval-mozilla-b2g34+
Keywords: checkin-needed
checkin-needed isn't needed for uplifts. We have separate queries for it.
Assignee: nobody → leila.hadji
Keywords: checkin-needed
Oh nevermind, it was for the Gaia patch. In the future, a bit of context to the request is appreciated :)

Master: https://github.com/mozilla-b2g/gaia/commit/8dc75432e27aa532faffc415b16f409e230ea80b
Thanks Ryan.
Argh, this bug somehow never got resolved when the Gecko patch landed on mozilla-central. Sorry for the huge delay here :(

https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/ff62b8fb461b

v2.1: https://github.com/mozilla-b2g/gaia/commit/88c44f2243a5ca1683587aca9faf29023974b96c
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Why are we pushing strings to a branch that has been string frozen for months?
Crap. I guess that means we should backout at least the Gaia patch? Not sure if the Gecko patch is worth keeping in by itself or not.
Flags: needinfo?(fabrice)
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #21)
> Crap. I guess that means we should backout at least the Gaia patch? Not sure
> if the Gecko patch is worth keeping in by itself or not.

It's fine to keep it. No one will be harmed ;)
Flags: needinfo?(fabrice)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: