Commit Graph

5420 Commits

Author SHA1 Message Date
Nika Layzell
b9da521e9e Bug 1786062 - Stop discarding non-vet errors from cargo vet in ./mach vendor rust, r=tjr,glandium
This should make handling errors more reliable in this situation.

Unfortunately I was unable to test this change, as on my local machine,
`./mach vendor rust` fails with an error even on a fresh checkout of
mozilla-central due to what appears to be an issue with loading
jsparagus sources.

Differential Revision: https://phabricator.services.mozilla.com/D155090
2022-08-24 13:40:03 +00:00
Tom Ritter
05eb26435b Bug 1785139 - linting fixup for vendor_manifest. r=lint-fix CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D155109
2022-08-19 19:49:26 +00:00
Tom Ritter
1931664d08 Bug 1785139: Try the shorthash when running ./mach vendor on a rust create r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D154827
2022-08-19 19:36:52 +00:00
Butkovits Atila
22480aa8be Backed out changeset d937f31a99c1 (bug 1785139) for causing linting failures. CLOSED TREE 2022-08-18 17:36:14 +03:00
Tom Ritter
696b99e059 Bug 1785139: Try the shorthash when running ./mach vendor on a rust create r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D154827
2022-08-18 14:19:35 +00:00
Marian-Vasile Laza
2dac282ab0 Backed out changeset a36fe75347a1 (bug 1785174) for causing linting failures. 2022-08-17 20:51:11 +03:00
Ryan VanderMeulen
e2fec65aa0 Bug 1785174 - Bump JDK to 18.0.2+9. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D154858
2022-08-17 15:20:24 +00:00
Makoto Kato
32efa4b16e Bug 1783959 - Add --profile argument when using custom profile. r=firefox-build-system-reviewers,glandium
This is regression by bug 1581971.

When using custom profile to run GVE via `./mach run --profile <directory>`,
we add "--profile" argument on `adb`. But, after landing bug 1581971, we
don't pass any profile arguments unfortunately.

So we should add it to use custom profile.

Also, This fixes that `./mach run --enable-fission` is broken. We don't need
`--profile` argument to run GVE with fission.

Differential Revision: https://phabricator.services.mozilla.com/D154772
2022-08-17 03:13:55 +00:00
Kershaw Chang
35d82ae8cc Bug 1783822 - Add node 'ws' library for xpcshell test, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D154097
2022-08-16 07:39:34 +00:00
Sylvestre Ledru
e9eade44dc Bug 1784857 - ride along: fix some 'line too long' r=linter-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D154641
2022-08-15 20:09:05 +00:00
Tom Ritter
ec23b10cb4 Bug 1783494: Keep moz.build files within the full directory tree; not just the top level directory r=andi
Differential Revision: https://phabricator.services.mozilla.com/D154002
2022-08-15 18:54:47 +00:00
Mike Hommey
78274e3bef Bug 1784178 - Set host compiler flags in directories with rust code. r=firefox-build-system-reviewers,andi
While here, square off the situation wrt compiler flags:
- target compiler flags used to be set conditionally but have been made
  unconditional in bug 1409276, while leaving a hack around that adds
  them under some conditions for host directories. We remove the hack
  but keep the corresponding comment that is still relevant and should
  be taken into account if target compiler flags are made conditional
  later on.
- host compiler flags were excluded for host rust libraries, but that
  was an oversight of bug 1409276, which should have applied the same
  logic for host compilations.
- host compiler flags are actually potentially necessary for target rust
  compilations because rust build scripts may build host C/C++ code
  (that's the case for GLSL). We have no idea when that may happen, so
  we always propagate them. config/makefiles/rust.mk then further
  propagates the flags to cargo, but they have to be set in the backend
  in the first place for that to happen.

Differential Revision: https://phabricator.services.mozilla.com/D154326
2022-08-12 20:16:11 +00:00
Nika Layzell
665766a29c Bug 1759555 - Part 2: Partially configure rust-analyzer for ./mach ide vscode, r=glandium,andi
In order to allow rust-analyzer to be able to use the build script in
the mozbuild crate to discover the configuration information, this patch
adds new flags to the vscode config to tell rust-analyzer to invoke
cargo through `./mach cargo check`, and use the correct target directory
within the objdir rather than `$(topsrcdir)/target`.

Due to the virtual filesystem used by rust-analyzer not including files
in the object directory, this is not sufficient to get suggestions for
symbols from the included files, however it will accurately fetch
diagnostics upon save and run things like proc macros.

A new feature will likely need to be added to rust-analyzer to allow us
to specify additional paths to add to the source root for packages to
fix that issue.

Due to this change using `./mach cargo check`, rather than running it
independently, we don't run into issues caused by running `check`
against crates in the workspace which aren't being used, making the
diagnostics more useful.

An additional feature needed to be added to `./mach cargo check` to
allow specifying `--message-format=json`. I am open to suggestions for a
more elegant way to communicate this flag into the makefile.

Depends on D153269

Differential Revision: https://phabricator.services.mozilla.com/D153270
2022-08-09 14:12:12 +00:00
Nicholas Rishel
6e432b193e Bug 1782818 - Use COM notification server for toast notifications in MSIX packages. r=nalexander,Jamie
This converges Windows native notification behavior across all installers to use the COM notification server.

This also fixes an issue where interacting with an MSIX notification opened a new window with new tabs correlated to the toast notification launch arguments. MSIX by default calls the application sending a notification with the provided launch arugments, which was an problem as we use launch arguments in the COM server to reconstruct the origin of a notification.

Differential Revision: https://phabricator.services.mozilla.com/D153538
2022-08-04 21:46:15 +00:00
Tom Ritter
a0aee377f9 Bug 1778567: Add GECKO_PATH to any scripts or commands we run via run- action r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D151746
2022-08-04 14:09:39 +00:00
Mark Banner
a335851da6 Bug 1782523 - Update NodeJS to latest versions for the branches. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D153445
2022-08-03 07:29:08 +00:00
Ryan Hunt
5b07c7d827 Bug 1781425 - wasm: Remove baldrdash. r=jseward,supply-chain-reviewers
The baldrdash integration of Cranelift is agreed between SM and CL
to be the wrong shape. Our import of the code base is also old and
causes difficulties for us when upgrading some crates (see bug
1774829). We should remove it for now to unblock bug 1774829.

Differential Revision: https://phabricator.services.mozilla.com/D152806
2022-07-27 22:30:17 +00:00
Jim Blandy
5528bb5fa6 Bug 1772635: Handle some new ccache categories. r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D151570
2022-07-20 23:38:16 +00:00
Andrew Halberstadt
816f3eeaca Bug 1780087 - [docs] Implement a 'searchfox' role, r=firefox-source-docs-reviewers,sylvestre
See the docstring in this patch for usage examples.

Differential Revision: https://phabricator.services.mozilla.com/D152124
2022-07-19 15:41:07 +00:00
Gijs Kruitbosch
90e2a23978 Bug 1780159 - add a default value for cmd_and_path in vscode detection for non-Windows/macOS/Linux OSes, r=andi,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152159
2022-07-19 13:53:54 +00:00
Gijs Kruitbosch
e00e722239 Bug 1773520 - add vscode build backend by default if vscode is installed, r=firefox-build-system-reviewers,nalexander,glandium
Differential Revision: https://phabricator.services.mozilla.com/D150147
2022-07-18 13:14:23 +00:00
Sebastian Hengst
5f5698c214 Bug 1765416 - disable test_vendor.py on all platforms. r=ahochheiden DONTBUILD
Test can be reenabled after the migration to Python 3.7+ (bug 1734402) because
the fixed Poetry version (1.2.0) has that as minimum requirement.

Differential Revision: https://phabricator.services.mozilla.com/D151913
2022-07-15 15:54:56 +00:00
Andi-Bogdan Postelnicu
3fe05b85d6 Bug 1778358 - add c++17 flag to the static analysis test. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151910
2022-07-15 08:26:25 +00:00
Nick Alexander
cf7750a206 Bug 1775132 - Part 1: Make profile service select background task profile directory. r=mossop
This allows the profile service to handle `XRE_PROFILE_PATH`,
`--profile`, etc as normal before choosing a "default" background task
profile directory.

Differential Revision: https://phabricator.services.mozilla.com/D149918
2022-07-13 20:12:12 +00:00
Tom Ritter
2b7db8ded5 Bug 1776492: Add support for a run-command action in moz.yaml r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D150279
2022-07-11 19:26:28 +00:00
Andreea Pavel
64bec9174f Bug 1765416 - disable test_vendor.py on opt builds r=ahochheiden DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151435
2022-07-11 17:29:50 +00:00
Mark Banner
fbbe33b4ea Bug 1762571 - Upgrade NodeJS to v12 for the build system and v16 for tests. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D147173
2022-07-07 22:08:59 +00:00
Andi-Bogdan Postelnicu
dce3119e29 Bug 1650335 - for clang-tidy based analysis do not set cpp std option. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151101
2022-07-06 08:15:33 +00:00
Narcis Beleuzu
ea20959e2d Backed out 1 changesets (bug 1773520) for breaking the ./mach ide vscode
Backed out changeset d9571dde686f (bug 1773520)
2022-07-01 09:32:36 +03:00
Iulian Moraru
eaae7245b9 Backed out 3 changesets (bug 1762571) for causing xpcshell failures on test_trr_httpssvc_wrap.js. CLOSED TREE
Backed out changeset 9e6eb444acb4 (bug 1762571)
Backed out changeset f24051722cee (bug 1762571)
Backed out changeset 0ead2f6d0582 (bug 1762571)
2022-06-30 18:43:06 +03:00
Mark Banner
72f5384587 Bug 1762571 - Upgrade NodeJS to v12 for the build system and v16 for tests. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D147173
2022-06-30 13:23:24 +00:00
Gijs Kruitbosch
e5852b6d8d Bug 1773520 - add vscode build backend by default if vscode is installed, r=firefox-build-system-reviewers,nalexander,glandium
Differential Revision: https://phabricator.services.mozilla.com/D150147
2022-06-30 08:38:02 +00:00
Alessio Placitelli
9fa5e395be Bug 1776219 - Gracefully handle psutils failures in mach telemetry. r=firefox-build-system-reviewers,ahochheiden
On OpenBSD/i386, psutils fails in the generator used to enumerate the
active processes, breaking the build.

Differential Revision: https://phabricator.services.mozilla.com/D150462
2022-06-29 09:03:28 +00:00
Ryan VanderMeulen
f9c1827b88 Bug 1776461 - Don't define the WIN32 and _WIN32_IE macros in mozilla-config.h if they're already defined. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D150268
2022-06-28 18:56:34 +00:00
Tom Ritter
a88546bae0 Bug 1772198 - Only require an origin revision if the vendoring section is present r=jewilde
Depends on D149308

Differential Revision: https://phabricator.services.mozilla.com/D149309
2022-06-24 20:07:07 +00:00
Ryan VanderMeulen
b667d62420 Bug 1776344 - Properly strip newlines when reading path files. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D150257
2022-06-24 18:34:58 +00:00
Mike Hommey
0985192f22 Bug 1760484 - Add webrtc configs for arm64 openbsd. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D149473
2022-06-21 20:03:56 +00:00
Mike Hommey
9b1024c681 Bug 1738845 - Add webrtc configs for arm and ppc64 linux. r=mjf
Adding arm alone breaks ppc64el.

Differential Revision: https://phabricator.services.mozilla.com/D134738
2022-06-21 20:03:56 +00:00
Mike Hommey
0317120cba Bug 1738845 - Add some missing combinations of conditions to GN processing. r=firefox-build-system-reviewers,andi
Ideally, the code would handle things in a more general way that doesn't
require manually dealing with these lists, but this would require more
testing than there is time left before 102 releases.

While here, remove HOST_CPU_ARCH, which is always the same and thus
never appears in a condition.

This changes none of the generated moz.builds for the current
configuration (but changes the outcome when adding new configurations)

Differential Revision: https://phabricator.services.mozilla.com/D149850
2022-06-21 20:03:55 +00:00
Mike Hommey
14fe89a8ed Bug 1775183 - Remove fork_interpose.py. r=firefox-build-system-reviewers,nalexander
Its use was removed in bug 1720591.

Differential Revision: https://phabricator.services.mozilla.com/D149840
2022-06-21 06:44:55 +00:00
Mike Hommey
602a4659ca Bug 1773223 - Remove now irrelevant gn processor tests.
Differential Revision: https://phabricator.services.mozilla.com/D149814
2022-06-21 02:30:46 +00:00
Mike Hommey
ff501ba00a Bug 1773223 - Filter-out _FORTIFY_SOURCE in GN processing. r=firefox-build-system-reviewers,andi
This is redundant with the build system setting it in
toolchain.configure.

Differential Revision: https://phabricator.services.mozilla.com/D149471
2022-06-21 02:30:46 +00:00
Mike Hommey
6bf54e3307 Bug 1773223 - Make the definition of MOZ_X11 independent of the OS. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D149474
2022-06-21 02:30:45 +00:00
Mike Hommey
217bd35159 Bug 1773223 - Make the GN processor an independent script. r=firefox-build-system-reviewers,mjf,ahochheiden
The way the processor works currently is that it relies on two different
build backends, one of which produces json files for specific
configurations, and the other which produces moz.build files from the
aggregate of all those configs.

Each of these json files is huge, and we actually don't have enough to
support all the platforms we're supposed to be supporting. Adding more
files is not enticing.

Now that we've made the first step described above work in a single pass
on a single machine (as opposed to multiple passes on multiple machines
previously), we can actually merge both steps and avoid producing the
intermediate json files altogether. This will allow to add more
configurations without having to worry about the weight of those files.

And because this all doesn't need to depend on having the first step
hooked up in the build system, we make the whole an independent script
rather than a build backend.

Differential Revision: https://phabricator.services.mozilla.com/D149210
2022-06-21 02:30:37 +00:00
Ryan VanderMeulen
78ab363cf5 Bug 1738054 - Remove obsolete "skip-if = python == 2" keys from testing manifests and re-enable some skipped tests which now pass. r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D149573
2022-06-21 01:46:44 +00:00
smolnar
feea9954b2 Backed out 6 changesets (bug 1738845, bug 1773223, bug 1760484) for causing multiple failures CLOSED TREE
Backed out changeset e759ac4fb646 (bug 1773223)
Backed out changeset 20c541be9a37 (bug 1760484)
Backed out changeset 653d2024a187 (bug 1738845)
Backed out changeset fd9540114bfd (bug 1773223)
Backed out changeset f24f3dfa49aa (bug 1773223)
Backed out changeset 11f3375a4a70 (bug 1773223)
2022-06-21 03:00:53 +03:00
Mike Hommey
7451720a4e Bug 1773223 - Remove now irrelevant gn processor tests.
Differential Revision: https://phabricator.services.mozilla.com/D149814
2022-06-20 22:04:22 +00:00
Mike Hommey
854b9ec966 Bug 1760484 - Add webrtc configs for arm64 openbsd. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D149473
2022-06-20 22:04:22 +00:00
Mike Hommey
0146508375 Bug 1738845 - Add webrtc configs for arm and ppc64 linux. r=mjf
Adding arm alone breaks ppc64el.

Differential Revision: https://phabricator.services.mozilla.com/D134738
2022-06-20 22:04:21 +00:00
Mike Hommey
1bec54f814 Bug 1773223 - Filter-out _FORTIFY_SOURCE in GN processing. r=firefox-build-system-reviewers,andi
This is redundant with the build system setting it in
toolchain.configure.

Differential Revision: https://phabricator.services.mozilla.com/D149471
2022-06-20 22:04:20 +00:00