Commit Graph

8340 Commits

Author SHA1 Message Date
Gijs Kruitbosch
402b55c414 Bug 1738056 - use fluent to insert channel ref into about dialog instead of hoping nothing gets retranslated, r=mkaply,fluent-reviewers,flod
The extant code would fail if the user switched languages while the dialog was
open, as fluent would throw the manually-inserted content away. This patch
properly uses fluent to insert the channel, which also means we don't need to
wait for it to happen after `load` (because of the previous patch in this
stack), it'll be there immediately.

Differential Revision: https://phabricator.services.mozilla.com/D172299
2023-03-14 00:03:42 +00:00
Norisz Fay
4a35828e21 Backed out 2 changesets (bug 1820947) for causing build bustage CLOSED TREE
Backed out changeset eb6419bb8748 (bug 1820947)
Backed out changeset 9990083e8ea2 (bug 1820947)
2023-03-14 01:20:54 +02:00
Mike Hommey
f5844f16c5 Bug 1820947 - Use "new style" sysroot on Android. r=firefox-build-system-reviewers,andi
For a few NDK releases now, the situation has been simplified wrt
headers and libraries, and while we're currently still using things here
and there because we never changed our ways, we can simplify things a
lot by using the new simplified things. This involves:
- Using a --target that contains the Android version, making clang set
  __ANDROID_API__ itself, and makes it look in $sysroot/usr/lib/$target/$ver
  when linking.
- Using the sysroot that is under toolchains/llvm/prebuilt/*.
- Removing the hacks around libstdc++/libc++.

This ends up emptying stlport compiler flags, which allows to remove a
bunch of things.

Differential Revision: https://phabricator.services.mozilla.com/D172039
2023-03-13 21:14:47 +00:00
Ben Hearsum
ece5cc8bfc Bug 1814727: allow dlsource OR existing required keys when attributing builds r=releng-reviewers,gbrown
We've decided to use a new attribution field when attributing our vanilla builds. This field is valid as the _only_ field in the attribution data.

Differential Revision: https://phabricator.services.mozilla.com/D171592
2023-03-13 19:04:05 +00:00
Ben Hearsum
feb34d8fd9 Bug 1814727: enhance attribution script args to make it easier to append additional attributions r=releng-reviewers,gbrown
This allows us to easily append attributions, which is helpful when configuring this script in taskgraph. (You can set up some defaults, and then add others for specific jobs.)

As far as I can tell, all current usage of this script uses the environment variables, so it should be safe to remove the current arguments.

Differential Revision: https://phabricator.services.mozilla.com/D170240
2023-03-13 19:04:05 +00:00
Ben Hearsum
89e06a6146 Bug 1814727: Rename partner_attribution.py to a more generic name r=releng-reviewers,gbrown
There's actually nothing partner-specific in this script, and it's about to be used for other types of attribution as well.

Differential Revision: https://phabricator.services.mozilla.com/D170239
2023-03-13 19:04:04 +00:00
Greg Mierzwinski
673064a167 Bug 1821705 - Improve testing for perftestetl.py file. r=perftest-reviewers,afinder DONTBUILD
This patch fixes an issue in our perftestetl.py which was causing our coverage percent to drop "artificially". This is happening because there's a bit of code that's unreachable because of an exception that would always be triggered before it. This patch removes the unreachable code, and replaces it with an exception.

Differential Revision: https://phabricator.services.mozilla.com/D172281
2023-03-13 12:50:34 +00:00
Marian-Vasile Laza
ee72efd1e9 Backed out 5 changesets (bug 1809843) for causing Cargo related build bustages. CLOSED TREE
Backed out changeset 5c494680f448 (bug 1809843)
Backed out changeset 02742b38edab (bug 1809843)
Backed out changeset 2b9b32ca8294 (bug 1809843)
Backed out changeset 56631cb02ae6 (bug 1809843)
Backed out changeset 37e35a60a71f (bug 1809843)
2023-03-13 13:53:26 +02:00
Kershaw Chang
7d99157362 Bug 1809843 - Run mochitest with Http/3 server on try, r=gbrown,necko-reviewers,ci-and-tooling,valentin,suhaib,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D167515
2023-03-13 11:12:33 +00:00
Kershaw Chang
2b54ddaca8 Bug 1809843 - Add DoH server and Http/3 server into mochitest, r=necko-reviewers,ahal,valentin,gbrown,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D166644
2023-03-13 11:12:32 +00:00
Andreas Pehrson
21108df795 Bug 1818170 - Load python files directly with our python. r=glandium
This ignores the shebang in python scripts that would be used when executed
directly.

This is unfortunate but needed as libwebrtc/chromium scripts rely on vpython3.

Differential Revision: https://phabricator.services.mozilla.com/D171971
2023-03-08 23:16:50 +00:00
Andreas Pehrson
ce735a014a Bug 1818170 - In gn_processor.py pretty print lists when serializing. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D171452
2023-03-08 23:16:49 +00:00
Andreas Pehrson
d3552664fd Bug 1818170 - Allow files generated during libwebrtc build in LOCAL_INCLUDES. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D170858
2023-03-08 23:16:49 +00:00
Andreas Pehrson
f83bb9479d Bug 1818170 - Make gn_processor.py handle actions that generate files. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D170857
2023-03-08 23:16:48 +00:00
Sandor Molnar
c8d4131030 Backed out 5 changesets (bug 1774569) because changes are incompatible with flake8. CLOSED TREE
Backed out changeset ac6c7441099b (bug 1774569)
Backed out changeset 1081432f3f97 (bug 1774569)
Backed out changeset 111d7f2021c3 (bug 1774569)
Backed out changeset 2cc0b2a54106 (bug 1774569)
Backed out changeset cb45ff55284c (bug 1774569)
2023-03-07 23:21:19 +02:00
Mike Hommey
40bb771e9f Bug 1819783 - Avoid logging errors when dealing with records with no params. r=ahal
Under some conditions, logging fails with messages like:

```
--- Logging error ---
Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 1083, in emit
    msg = self.format(record)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/__init__.py", line 927, in format
    return fmt.format(record)
  File "/Users/glandium/mozilla-unified/python/mach/mach/logging.py", line 156, in format
    formatted_msg = record.msg.format(**record.params)
AttributeError: 'LogRecord' object has no attribute 'params'
```

In those cases, the record does have a message, as expected, but it's
preformatted and there are no params in the record at all, rather than
an empty dict.

Differential Revision: https://phabricator.services.mozilla.com/D171408
2023-03-07 21:04:39 +00:00
Johan Lorenzo
b3753edb42 Bug 1799042 - part 8: Create mach repackage deb-l10n command r=gabriel
Depends on D171728

Differential Revision: https://phabricator.services.mozilla.com/D171124
2023-03-07 19:28:25 +00:00
Johan Lorenzo
d071f0150d Bug 1799042 - part 7: Allow _render_deb_templates() to ignore files r=gabriel
Depends on D171123

Differential Revision: https://phabricator.services.mozilla.com/D171728
2023-03-07 19:28:24 +00:00
Johan Lorenzo
1cc1374477 Bug 1799042 - part 6: Expand _get_build_variables() to support package name and description suffixes r=gabriel
Depends on D171122

Differential Revision: https://phabricator.services.mozilla.com/D171123
2023-03-07 19:28:24 +00:00
Johan Lorenzo
b054c60d00 Bug 1799042 - part 5: Support chroot path when using debian arch "all" r=gabriel
Depends on D171121

Differential Revision: https://phabricator.services.mozilla.com/D171122
2023-03-07 19:28:23 +00:00
Johan Lorenzo
fbf47c3c73 Bug 1799042 - part 4: Create _extract_langpack_metadata() to read manifest.json from XPI files r=gabriel
Depends on D171120

Differential Revision: https://phabricator.services.mozilla.com/D171121
2023-03-07 19:28:23 +00:00
Johan Lorenzo
b869541ece Bug 1799042 - part 3: Create _extract_application_ini_data() which reads from input tar file directly r=gabriel
Depends on D171119

Differential Revision: https://phabricator.services.mozilla.com/D171120
2023-03-07 19:28:23 +00:00
Johan Lorenzo
246c14df7a Bug 1799042 - part 2: Rename _extract_application_ini_data() into ..._from_directory() r=gabriel
Depends on D162225

Differential Revision: https://phabricator.services.mozilla.com/D171119
2023-03-07 19:28:21 +00:00
Johan Lorenzo
46cf83184f Bug 1799042 - part 1: Make deb dependencies customizable r=gabriel
Differential Revision: https://phabricator.services.mozilla.com/D162225
2023-03-07 19:28:21 +00:00
Alex Hochheiden
68383a7401 Bug 1774569 - Removed the patching mechanism that was only needed for poetry version 1.2.0a2 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D171762
2023-03-07 08:08:47 +00:00
Alex Hochheiden
3a166128b7 Bug 1774569 - Update poetry to 1.4.0 r=ahal
https://github.com/python-poetry/poetry/releases/tag/1.4.0https://github.com/python-poetry/poetry/releases/tag/1.4.0
https://github.com/python-poetry/poetry-core/releases/tag/1.5.1

The changes in `third_party/python/requirements.txt` and `mozbuild/test/vendor_requirements.txt` are due to the newer version.

Differential Revision: https://phabricator.services.mozilla.com/D171761
2023-03-07 08:08:46 +00:00
Alex Hochheiden
cd627befe5 Bug 1774569 - Vendor jsonschema at 4.10.0 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D171760
2023-03-07 08:08:45 +00:00
Alex Hochheiden
620ab78947 Bug 1774569 - Vendor importlib_metadata at 6.0.0 r=firefox-build-system-reviewers,glandium,ahal
This version is compatible with `poetry` `1.4.0` and removes blockers for various other ongoing projects.

https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v660

Differential Revision: https://phabricator.services.mozilla.com/D150813
2023-03-07 08:08:45 +00:00
Alex Hochheiden
8e85044e17 Bug 1734402 - Regenerate lockfile with Python 3.7 as the minimum version r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D171628
2023-03-07 08:08:44 +00:00
Andi-Bogdan Postelnicu
7ee3609186 Bug 1820494 - mozlint should output file no matter if there are issues for json formatter. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D171790
2023-03-07 05:53:30 +00:00
Cristian Tuns
416f31a511 Backed out 6 changesets (bug 1734402, bug 1774569) for causing build bustages Python related CLOSED TREE
Backed out changeset c8fefbece0f6 (bug 1774569)
Backed out changeset 5ae4dd2cfcbe (bug 1774569)
Backed out changeset e027acb00eb5 (bug 1774569)
Backed out changeset 5b820a21a13c (bug 1774569)
Backed out changeset 2b022e4e2607 (bug 1774569)
Backed out changeset 39ff773cfa63 (bug 1734402)
2023-03-07 00:46:00 -05:00
Alex Hochheiden
887c4a8fb7 Bug 1774569 - Removed the patching mechanism that was only needed for poetry version 1.2.0a2 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D171762
2023-03-07 04:16:02 +00:00
Alex Hochheiden
5a32e5be6f Bug 1774569 - Update poetry to 1.4.0 r=ahal
https://github.com/python-poetry/poetry/releases/tag/1.4.0https://github.com/python-poetry/poetry/releases/tag/1.4.0
https://github.com/python-poetry/poetry-core/releases/tag/1.5.1

The changes in `third_party/python/requirements.txt` and `mozbuild/test/vendor_requirements.txt` are due to the newer version.

Differential Revision: https://phabricator.services.mozilla.com/D171761
2023-03-07 04:16:02 +00:00
Alex Hochheiden
34444fc38a Bug 1774569 - Vendor jsonschema at 4.10.0 r=ahal
`Poetry` version `1.4` depends on `jsonschema>=4.10.0`. Unfortunately, our current implementation of `./mach vendor python` cannot see that specific dependency, because it specific to the `vendor` site.

`glean-parser` depends on `jsonschema>=3.2`, and when the lockfile is generated, it pulls in `jsonschema==3.2`, which causes an incompatibility with `poetry` in the `vendor` site.

Fortunately the loose dependencies of `glean-parser` and `poetry` are compatible, the lockfile just doesn't know it. As such, if we explicitly specify `jsonschema==4.10.0`, the compatibility in the `vendor` site is resolved.

This is a temporary workaround and will be resolved by either vendoring `poetry` itself, or adding `lockfiles` to every site.

Differential Revision: https://phabricator.services.mozilla.com/D171760
2023-03-07 04:16:01 +00:00
Alex Hochheiden
7ce7cf19ce Bug 1734402 - Regenerate lockfile with Python 3.7 as the minimum version r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D171628
2023-03-07 04:15:59 +00:00
andrej
110e4fac1e Bug 1816042 - WPT permafail JSONDecodeError. r=perftest-reviewers,AlexandruIonescu,sparky
Differential Revision: https://phabricator.services.mozilla.com/D170101
2023-03-06 18:31:27 +00:00
Greg Mierzwinski
1dc7ff9b55 Bug 1816171 - Update, and add a test for new summarization methods. r=perftest-reviewers,kshampur
This patch updates the existing tests so that they're inline with the new default of providing no summary value at the suite level. A new test is also added to test out custom transforms.

Differential Revision: https://phabricator.services.mozilla.com/D171613
2023-03-06 17:37:06 +00:00
Greg Mierzwinski
915fe6cd07 Bug 1816171 - Default to no summary value for suites in the perfherder layer. r=perftest-reviewers,kshampur
This patch removes the default summary value for perfherder suites. Afterwards, no summary value will be produced unless a new Transformer is provided, or the existing ones are modified.

The patch goes further and creates a path through which we can let users modify the suites, and subtest in any way they want. This is done by adding two new methods that can be added to the transformer being used on the data. Some changes also needed to be made to the MetricsStorage so that we keep track of the transformer. They can be specified on a per-subtest basis some day, but right now it applies a single transformer to all subtests of a given suite/data-type.

Differential Revision: https://phabricator.services.mozilla.com/D171612
2023-03-06 17:37:05 +00:00
ogiorgis
bf64e21d0b Bug 1749473 - fix docstring for autodoc r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D171436
2023-03-03 09:37:42 +00:00
Francesco Lodolo (:flod)
194759ed0c Bug 1819836 - Set up language names for Tajik (tg), r=eemeli
Differential Revision: https://phabricator.services.mozilla.com/D171432
2023-03-02 08:25:48 +00:00
Norisz Fay
1fadd8d525 Backed out 2 changesets (bug 1808026) for causing python failures CLOSED TREE
Backed out changeset 80627767254a (bug 1808026)
Backed out changeset c33452202b5c (bug 1808026)
2023-03-01 18:50:04 +02:00
ogiorgis
40456be3b8 Bug 1808026 - upgrade doc dependencies r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D171227
2023-03-01 11:28:54 +00:00
ogiorgis
6b94cc2729 Bug 1808026 - upgrade Pygments r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D171225
2023-03-01 11:28:54 +00:00
ogiorgis
df034b803f Bug 1749473 - fix some typos in doc r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D171191
2023-03-01 09:35:11 +00:00
Chris H-C
319a2387c2 Bug 1816454 - Update Glean SDK to v52.3.0 r=TravisLong,supply-chain-reviewers,emilio
Also update some FOG tests that are now incorrect (label limits have been
lifted).

The `default_features = false` on `env_logger` are to avoid a new, duplicate
dependency on hermit-abi.

Differential Revision: https://phabricator.services.mozilla.com/D170816
2023-02-28 16:44:02 +00:00
Cristina Horotan
7bd3967451 Backed out 2 changesets (bug 1816835, bug 1817043) for causing multiple bc tests to timeout
Backed out changeset 78d5cd985e6f (bug 1817043)
Backed out changeset 9613b1bcc57c (bug 1816835)
2023-02-28 15:26:31 +02:00
ahochheiden
749b4c8995 Bug 1807907 - Cache the results of try_invoke_compiler on disk for re-use between different runs of configure r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D165671
2023-02-28 08:42:52 +00:00
Matthew Gregan
10ea15f976 Bug 1816835 - Update AudioIPC macOS branch to 89de5602. r=cubeb-reviewers,glandium,supply-chain-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D169877
2023-02-27 22:28:08 +00:00
Stanca Serban
8917a2896e Backed out changeset aba2a1dc6802 (bug 1816454) for causing PNGEncoder related build bustages. CLOSED TREE 2023-02-27 16:42:40 +02:00
Chris H-C
68d8ce8104 Bug 1816454 - Update Glean SDK to v52.3.0 r=TravisLong,supply-chain-reviewers
Also update some FOG tests that are now incorrect (label limits have been
lifted).

Differential Revision: https://phabricator.services.mozilla.com/D170816
2023-02-27 14:04:03 +00:00