Commit Graph

7844 Commits

Author SHA1 Message Date
Tooru Fujisawa
d63cf11cf0 Bug 1769405 - Part 2: Rename mozconfig_and_target to base_mozconfig_info and return dictionary. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D147272
2022-06-10 19:16:59 +00:00
Bobby Holley
0ad2378dd2 Bug 1773592 - Pass --frozen to cargo-vet in CI. r=glandium
This is the new flag to ensure we don't hit the network.

Differential Revision: https://phabricator.services.mozilla.com/D148869
2022-06-10 02:11:07 +00:00
Dave Townsend
b28af0395e Bug 1772808: Install minidump-stackwalk binaries on arm64 macOS. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D148636
2022-06-09 08:54:22 +00:00
Mike Hommey
b0285893af Bug 1773189 - Reject windows and windows-sys crates when vendoring for now. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D148586
2022-06-08 22:41:53 +00:00
Bobby Holley
b6f69f3506 Bug 1773320 - Tweak error message displayed when cargo vet fails. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D148665
2022-06-08 22:41:06 +00:00
ahochheiden
c236ff78f4 Bug 1761849 - Consistently apply os.path.normpath to paths that end up in the same list r=firefox-build-system-reviewers,glandium
Depends on D148177

Differential Revision: https://phabricator.services.mozilla.com/D148204
2022-06-08 16:11:17 +00:00
Gabriele Svelto
dc16acc300 Bug 1773028 - Install watchman in all Linux & BSD variants that have it in the default package repository r=andi
Differential Revision: https://phabricator.services.mozilla.com/D148635
2022-06-08 11:02:11 +00:00
Mike Hommey
986714cc95 Bug 1773222 - Speed up gn config filtering. r=firefox-build-system-reviewers,andi
This brings down the operation from 12s to 8ms on my machine. Yes,
that's seconds versus milliseconds.

Differential Revision: https://phabricator.services.mozilla.com/D148624
2022-06-08 08:49:06 +00:00
Mike Hommey
a59443cf67 Bug 1773187 - Turn cargo vet failures into errors instead of warnings. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D148580
2022-06-08 01:55:31 +00:00
Norisz Fay
73eac663e1 Bug 1772036 - Fix python3 failures r=fix CLOSED TREE 2022-06-08 00:14:22 +03:00
Mike Hommey
a536287502 Bug 1772459 - Ignore --help after -- in mach subcommand invocations. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D148229
2022-06-07 20:39:09 +00:00
Mike Hommey
799ee0243a Bug 1772036 - Enable cargo vet when running mach vendor rust locally. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D148219
2022-06-07 20:37:12 +00:00
Mike Hommey
48b1edb889 Bug 1772036 - Add a mach cargo vet command. r=firefox-build-system-reviewers,ahochheiden
The cargo-vet toolchain is auto-bootstrapped and setup for things to
work properly. We modify `mach vendor rust` to invoke `mach cargo vet`
instead of doing its own setup, but in a underhanded way to work around
bug 1772453.

Differential Revision: https://phabricator.services.mozilla.com/D148218
2022-06-07 20:37:11 +00:00
Mike Hommey
6a1fc0607e Bug 1772036 - Avoid "configure" output from the bootstrap sandbox when using bootstrap_toolchain. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D148217
2022-06-07 20:37:11 +00:00
Mike Hommey
5b877fc381 Bug 1772036 - Move toolchain bootstrapping code to some shared module. r=firefox-build-system-reviewers,ahochheiden
We're going to use it to auto-bootstrap cargo-vet in the upcoming `mach
cargo vet` command.

Differential Revision: https://phabricator.services.mozilla.com/D148216
2022-06-07 20:37:11 +00:00
Mike Hommey
ee785fa2da Bug 1772980 - Check for unused crates in build/rust. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D148473
2022-06-07 20:34:35 +00:00
Jeff Muizelaar
510e4cf132 Bug 1772955 - Remove broken ns[Int]Region lldb pretty printers. r=mstange
These were broken with Bas's region rewrite. They seem to just
pretty 'empty' now which is less useful than not having a pretty
printer at all.

Differential Revision: https://phabricator.services.mozilla.com/D148459
2022-06-07 17:16:04 +00:00
Jan-Erik Rediger
4ca6841988 Bug 1768834 - Switch to Glean with UniFFI integration r=glandium,chutten
Upgrades to Glean v50.0.1, which comes with a rewritten core and
UniFFI-powered bindings.
Glean has some API changes, so we swap it over to that. Mostly mechanical changes.
Also upgrades to inherent v1.0 in fog.
This matches what Glean uses internally and gets rid of one duplicated crate.

Also upgrades to glean-parser==6.0.1

One crate duplication now (change in `python/mozbuild/mozbuild/vendor/vendor_rust.py` required).
Some new crates now vendored.
These are transitive dependencies of Glean dependencies, all with valid
licenses and already used in other products (mobile).

Differential Revision: https://phabricator.services.mozilla.com/D146062
2022-06-07 12:37:20 +00:00
Mike Hommey
47e7e51885 Bug 1772960 - Upgrade geckodriver to base64 0.13. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148460
2022-06-07 09:26:16 +00:00
Geoff Lankow
446a42b3b9 Bug 1741360 - Fix Thunderbird artifact builds from comm-esr* trees. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D147840
2022-06-02 23:09:56 +00:00
ahochheiden
4828a8adf4 Bug 1766497 - Updated a log call to use command_context instead of self (since self would never work in this instance) r=firefox-build-system-reviewers,nalexander
Depends on D142274

Differential Revision: https://phabricator.services.mozilla.com/D148176
2022-06-02 22:15:40 +00:00
ahochheiden
cbf025e19c Bug 1761849 - Added missing pathlib conversions in mach.util r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D142274
2022-06-02 22:16:39 +00:00
Nika Layzell
5ccf948421 Bug 1743020 - Part 2: Vendor the function2 library, r=glandium,mhoye
The function2 library is a header-only library which provides support
for defining move-only function types, similar to the proposed
std::move_only_function in C++23, but with support for additional
customization.

This appears to be the first time we've vendored code using the boost
license, so I've added it to license.html and moz_yaml.py, and have
requested review to ensure it is OK to use code with this license.

Differential Revision: https://phabricator.services.mozilla.com/D145690
2022-06-02 13:24:10 +00:00
Mike Hommey
b0692a54ed Bug 1772035 - Hook cargo vet into rust vendoring lint. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D147821
2022-06-02 06:54:25 +00:00
Mike Hommey
094a6cca1a Bug 1772043 - Allow duplicate crates when one depends on the other. r=firefox-build-system-reviewers,andi
In bug 1769902, we allowed such duplicate crates when one of them is
under build/rust. This changes the logic to be more generic and allow
a crate duplicate when it depends on a crate of the same name, whether
in build/rust or elsewhere, which could happen for vendored transitional
crates (rare, but happens). This is also a more generic way to handle
our situation with build/rust and doesn't rely on parsing Cargo.toml.

Differential Revision: https://phabricator.services.mozilla.com/D147824
2022-06-02 06:49:18 +00:00
Mike Hommey
a07667a477 Bug 1771089 - Add a lint-like task to check rust vendoring. r=firefox-build-system-reviewers,linter-reviewers,marco,andi
This is deliberately simple. Future improvements will report if the
vendoring doesn't produce the same content as what's in the tree, and
attach errors to a better location than the first line of Cargo.lock.

Differential Revision: https://phabricator.services.mozilla.com/D147466
2022-06-02 06:42:02 +00:00
ahochheiden
22424a4c9b Bug 1769631 - Remove 'U' from 'mode' parameters for various 'open' calls to ensure Python3.11 compatibility r=firefox-build-system-reviewers,glandium
The 'U' flag represents "universal newline". It has been deprecated
since Python3.3. Since then "universal newline" is the default when a
file is opened in text mode (not bytes). In Python3.11 using the 'U'
flag throws errors. There should be no harm in removing 'U' from 'open'
everywhere it is used, and doing allows the use of Python3.11.

For more reading see: https://docs.python.org/3.11/whatsnew/3.11.html#changes-in-the-python-api

Differential Revision: https://phabricator.services.mozilla.com/D147721
2022-06-02 06:27:44 +00:00
Mike Hommey
bfc979cd84 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 22:05:53 +00:00
Mike Hommey
1c56197caa Bug 1710421 - [webdriver] Update time and cookie dependencies. r=webdriver-reviewers,glandium,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147000
2022-06-01 22:05:53 +00:00
Butkovits Atila
dc343cf73c Bug 1760161 - lint fix. a=testonly. CLOSED TREE 2022-06-01 21:19:40 +03:00
Simon Farre
5c3ff76f9c Bug 1760161 - Enhance string & smartptr pretty printers. r=nalexander
Added two additional string types to be pretty printed by the string
pretty printer.

Added the children method to smartpr, which yields 1 child. Has
the added benefit of returning (name, gdb.Value) which can be used
from an IDE with support for Python in GDB.

Differential Revision: https://phabricator.services.mozilla.com/D141404
2022-06-01 17:23:45 +00:00
Marian-Vasile Laza
3e60395bf9 Backed out 6 changesets (bug 1772068, bug 1710421) for causing multiple web-platform failures. CLOSED TREE
Backed out changeset 7dc183461431 (bug 1772068)
Backed out changeset 437682fe4871 (bug 1772068)
Backed out changeset 717912ea0672 (bug 1772068)
Backed out changeset 6790f990c322 (bug 1772068)
Backed out changeset 33831638ba99 (bug 1710421)
Backed out changeset b35aaa56fa54 (bug 1710421)
2022-06-01 15:01:10 +03:00
Mike Hommey
863a2cecc2 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 09:57:13 +00:00
Mike Hommey
8ceb57fe30 Bug 1710421 - [webdriver] Update time and cookie dependencies. r=webdriver-reviewers,glandium,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147000
2022-06-01 09:57:13 +00:00
Marian-Vasile Laza
8acd2f6a04 Backed out 2 changesets (bug 1710421) for causing web-platform failures on context.rs. CLOSED TREE
Backed out changeset bdd6f29ebeeb (bug 1710421)
Backed out changeset 1739da34411f (bug 1710421)
2022-06-01 10:34:41 +03:00
Mike Hommey
59dc8e3445 Bug 1710421 - [webdriver] Update warp and hyper dependencies. r=mjf,webdriver-reviewers
At the same time, update mdns_service to socket2 0.4 to avoid a duplicate.

Differential Revision: https://phabricator.services.mozilla.com/D147479
2022-06-01 06:44:07 +00:00
Mike Hommey
f16991ea67 Bug 1710421 - [webdriver] Update time and cookie dependencies. r=webdriver-reviewers,glandium,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147000
2022-06-01 06:44:06 +00:00
Mike Hommey
f11d081ede Bug 1770894 - Update style to uluru 3.0. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147477
2022-05-31 22:05:05 +00:00
ahochheiden
75c4ec535c Bug 1761849 - Removed 'ancestors' function and replaced the only use of it with a Pathlib equivalent r=firefox-build-system-reviewers,mhentges
While testing the change, I noticed that the old implementation also
considered the 'current' path as a part of all ancestors. As such, I
added an additional path component to the path that is immediately
discarded so that the behavior is consistent.

Differential Revision: https://phabricator.services.mozilla.com/D142273
2022-05-31 15:45:24 +00:00
Tom Ritter
fa78f3d656 Bug 1770895: Support specifying a blocking bug r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D147214
2022-05-31 15:43:38 +00:00
ahochheiden
54e294e615 Bug 1761849 - Removed 'samepath' function and replaced the only use of it with a Pathlib equivalent r=firefox-build-system-reviewers,mhentges
In test_base.py the backslashes had to be replaced with forward slashes,
otherwise the string isn't read properly from the mozconfig during the
test. This was always 'broken', but the test just happened to pass since
the old path comparison was naive.

Differential Revision: https://phabricator.services.mozilla.com/D142272
2022-05-31 03:38:25 +00:00
Mike Hommey
8172294f92 Bug 1771089 - Report the vendor_rust.py path relative to topsrcdir. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D147461
2022-05-30 21:54:30 +00:00
Mike Hommey
da57d4b2b4 Bug 1771089 - Fail more gracefully when cargo update/vendor fail during mach vendor rust. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D147458
2022-05-30 21:54:29 +00:00
Mike Hommey
c9101381f4 Bug 1771089 - Fix typo in extra dupes error message. r=firefox-build-system-reviewers,andi
and clarify we prefer avoiding dupes.

Differential Revision: https://phabricator.services.mozilla.com/D147406
2022-05-30 21:54:29 +00:00
Mike Hommey
e4eecf10f4 Bug 1771089 - Make VendorRust.vendor return a bool rather than hard exit on error. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D147403
2022-05-30 21:54:29 +00:00
Mike Hommey
08dc534b0a Bug 1771089 - Error out with a message when cargo is missing. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D147402
2022-05-30 21:54:28 +00:00
Mike Hommey
7d37e2d0b1 Bug 1771089 - Properly error out on license errors in mach vendor rust. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D147401
2022-05-30 21:54:28 +00:00
Mike Hommey
f43415271f Bug 1770894 - Update profiler-helper to object 0.28. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D147256
2022-05-30 21:37:36 +00:00
Mike Hommey
840f96e714 Bug 1770894 - Force update memmap2 to 0.3. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D147255
2022-05-30 21:37:35 +00:00
Mike Hommey
ed361443b6 Bug 1770894 - Update cert_storage to base64 0.13. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D147254
2022-05-30 21:37:35 +00:00