Closed Bug 2019069 Opened 1 month ago Closed 23 days ago

Split interventions.json up into individual JSON files to make it easier to land intervention patches.

Categories

(Web Compatibility :: Interventions, enhancement)

enhancement

Tracking

(firefox151 fixed)

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: twisniewski, Assigned: twisniewski)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

With interventions.json being one big file, it's difficult to land multiple interventions simultaneously without them depending on one another. This is one of the two procedural pain-points left for writing interventions, so let's remove it.

Instead let's split each intervention's JSON config out into its own file, and build run.js from those. That will give us some minor wins in addition to letting folks land intervention patches in any order.

Assignee: nobody → twisniewski
Status: NEW → ASSIGNED

I will upload part 2 after the stack with this patch finishes landing.

Blocks: 2020152
Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/463705816de6 https://hg.mozilla.org/integration/autoland/rev/5019cdc9554f part 1: generate the webcompat addon run.js at build-time from all JSON files in data/interventions; r=nalexander,geckoview-reviewers,android-reviewers,frontend-codestyle-reviewers,mossop https://github.com/mozilla-firefox/firefox/commit/5ebf41e7f42b https://hg.mozilla.org/integration/autoland/rev/a5c39bd8a082 part 2: actually replace interventions.json with individualized JSON files per intervention; r=webcompat-reviewers,ksenia

Seeing a completely blank intervention list on Fenix/Focus debug builds on auto-land with this. Which the ui-test does not expect @ org.mozilla.fenix.ui.AboutURITest#verifyWebCompatPageIsLoadingTest

https://treeherder.mozilla.org/jobs?repo=autoland&searchStr=ui-&revision=f67ef2becb9a6601c9cda29b92ea49b8a8a3dbb9&selectedTaskRun=dyoObfUJTY26Vz-9q7-jQg.0

Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/78f7778559f0 https://hg.mozilla.org/integration/autoland/rev/c011b366e23d Revert "Bug 2019069 - part 2: actually replace interventions.json with individualized JSON files per intervention; r=webcompat-reviewers,ksenia" for causing failures at WebCompatPage.
Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3cd1dc66669a https://hg.mozilla.org/integration/autoland/rev/d65d3e499f01 part 1: generate the webcompat addon run.js at build-time from all JSON files in data/interventions; r=nalexander,geckoview-reviewers,android-reviewers,frontend-codestyle-reviewers,mossop https://github.com/mozilla-firefox/firefox/commit/0c4c29bc78fa https://hg.mozilla.org/integration/autoland/rev/4fb538073a65 part 2: actually replace interventions.json with individualized JSON files per intervention; r=webcompat-reviewers,ksenia
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6979a436a887 https://hg.mozilla.org/integration/autoland/rev/068ba72f2e08 Revert "Bug 2019069 - part 2: actually replace interventions.json with individualized JSON files per intervention; r=webcompat-reviewers,ksenia" for causing Toolchain bustages.

I don't know what could have caused that bustage, but I just rebased my patches and a try-run with that task seems fine: https://treeherder.mozilla.org/jobs?repo=try&revision=9ee5bad796665cd79b51a56f1ecfc2725bfbc0c5

So I'll try relanding the rebased versions soon.

Flags: needinfo?(twisniewski)
Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3c7d20ed7f4f https://hg.mozilla.org/integration/autoland/rev/726fa1a5b626 part 1: generate the webcompat addon run.js at build-time from all JSON files in data/interventions; r=nalexander,geckoview-reviewers,android-reviewers,frontend-codestyle-reviewers,mossop https://github.com/mozilla-firefox/firefox/commit/ab721efd4c67 https://hg.mozilla.org/integration/autoland/rev/89d270dcc668 part 2: actually replace interventions.json with individualized JSON files per intervention; r=webcompat-reviewers,ksenia
Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Blocks: 2027895
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: