Closed Bug 827778 Opened 13 years ago Closed 12 years ago

Move shared/resources/languages-*.json to locales/

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(b2g18 fixed, b2g18-v1.0.1 fixed)

RESOLVED FIXED
Tracking Status
b2g18 --- fixed
b2g18-v1.0.1 --- fixed

People

(Reporter: stas, Assigned: mozilla)

References

Details

Attachments

(3 files)

These files don't need to be in shared. On build time, we just need to copy one of them into shared/resources.
Ben -- we'd like to move the json files and rename them (s/-/_). How much hassle is this going to be for releng?
Flags: needinfo?(bhearsum)
I could propose a patch if I knew where the related code lives. :-)
(In reply to Staś Małolepszy :stas from comment #1) > Ben -- we'd like to move the json files and rename them (s/-/_). How much > hassle is this going to be for releng? This isn't a big deal, we just need to update our configs. However, the change needs to happen in two stages to avoid unnecessary burning. * Stage 1 - copy files to new location, after that we'll update our configs to point at them. * Stage 2 - delete old files, after we verify that nothing is using the old configs.
Flags: needinfo?(bhearsum)
Comment on attachment 699675 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7399 Asking for review on behalf of Aki.
Attachment #699675 - Flags: review?(kaze)
Blocks: 823478
Component: Builds → Gaia
Comment on attachment 699675 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7399 [Approval Request Comment] Bug caused by (feature/regressing bug #): multilocale build system User impact if declined: Testing completed: manual Risk to taking this patch (and alternatives if risky): none
Attachment #699675 - Flags: review?(kaze)
Attachment #699675 - Flags: review+
Attachment #699675 - Flags: approval-gaia-master?(21)
Comment on attachment 699675 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7399 Vivien has asked me to process these approvals. This patch has extremely low risk and prevents potential future problems in Gaia so approval-gaia-master+
Attachment #699675 - Flags: approval-gaia-master?(21) → approval-gaia-master+
I’ve just merged this patch, which /copies/ files to the locales/ directory. To close the bug we'll need another patch that actually removes all languages-*.json files from shared/resources/.
Step 1.5: wait for that patch to get merged into the nightly branch Step 2: point buildbot at locales/languages_*.json (patch, review, land, reconfig, verify) Step 3: remove shared/resourcs/languages-*.json
Step 3.5 Change the Makefile's LOCALES_FILE definition: > LOCALES_FILE?=shared/resources/languages.json https://github.com/mozilla-b2g/gaia/blob/f53fc73ad77ff7f7ca50ff4ca279fdf2b3d95eab/Makefile#L81
I don't think I touched languages.json, just languages-*.json. If we end up moving that, that can happen anywhere between step 1 and 3.
Points buildbot at locales/languages_*.json instead of shared/resources/languages-*.json. Also points otoro (b2g18 only, but otoro's only enabled there) to languages_basecamp.json (3 locales).
Attachment #700588 - Flags: review?(bhearsum)
Might as well take this bug.
Assignee: nobody → aki
Attachment #700588 - Flags: review?(bhearsum) → review+
Step 1.5: wait for that patch to get merged into the nightly branch Step 2: point buildbot at locales/languages_*.json * patch: DONE * review: DONE * land: waiting for gaia patch to merge to nightly branch <-- we are here * reconfig * verify Step 3: remove shared/resources/languages-*.json
(In reply to Aki Sasaki [:aki] from comment #16) > Step 1.5: wait for that patch to get merged into the nightly branch: DONE > Step 2: point buildbot at locales/languages_*.json > * patch: DONE > * review: DONE > * land: DONE > * reconfig <-- we are here > * verify > Step 3: remove shared/resources/languages-*.json
> Step 1.5: wait for that patch to get merged into the nightly branch: DONE > Step 2: point buildbot at locales/languages_*.json > * patch: DONE > * review: DONE > * land: DONE > * reconfig: DONE > * verify: DONE > Step 3: remove shared/resources/languages-*.json <-- we are here We're ready to remove the languages-*.json at any point. I'd feel safest if we resolve bug 829683 first though.
The buildbot part of this seems to have broken Date, which uses the gaia-v1-train repo: https://tbpl.mozilla.org/php/getParsedLog.php?id=18988345&tree=Date&full=1
They're missing the pull request https://github.com/mozilla-b2g/gaia/pull/7399 . Is gaia-v1-train not merging from gaia-nightly?
Catlee refreshed the v1-train branch on github.
NOTE: If blocking-basecamp+ is set, just land it for now. [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Testing completed: Risk to taking this patch (and alternatives if risky):
Attachment #705167 - Flags: review?(kaze)
Oops. Other than the add-then-remove the approval flag, I think I did the pull request right.
Attachment #705167 - Flags: review?(kaze) → review+
Comment on attachment 705167 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7742 NOTE: If blocking-basecamp+ is set, just land it for now. [Approval Request Comment] Bug caused by (feature/regressing bug #): This bug, bug 827778 comment 0. User impact if declined: Extraneous files in source. Testing completed: We're already building against locales/languages_*.json, so these should be unused. Risk to taking this patch (and alternatives if risky): Low risk.
Attachment #705167 - Flags: approval-gaia-v1?(21)
Comment on attachment 705167 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7742 just removing unused code, approving for v1-train uplift.
Attachment #705167 - Flags: approval-gaia-v1?(21) → approval-gaia-v1+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
(In reply to Aki Sasaki [:aki] from comment #29) > gaia v1-train: > https://github.com/mozilla-b2g/gaia/commit/ > 0f00aee9dde56ff565bd5419d9ee67e98b3c6f51 > > gaia v1.0.0: > https://github.com/mozilla-b2g/gaia/commit/ > 0abc95774d0bbdfe314fa588e09fc92cac3e6427 > > I think we're done here. Can you please verify that both pull requests have landed. If everything is landed, please set status-b2g18 to 'fixed'
Both are landed, setting flag.
Batch edit: bugs fixed on b2g18 since 1/25 branch of v1.0 are fixed on v1.0.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: