Commit Graph
754 Commits
Author SHA1 Message Date
Glenn Watson 57ce6d6d2d Bug 2045587 - Support renderdoc captures in webrender + wrshell r=firefox-build-system-reviewers,gfx-reviewers,wsmind,nical,sergesanspaille
Add a /renderdoc-capture debug-server endpoint plus a wrshell `rd`
command and "Capture (RenderDoc)" GUI button. To produce a self-contained
capture, it clears the resource caches and forces a full invalidated
rebuild, so the captured frame re-rasterizes all picture-cache tiles,
glyphs and images in-frame (a single-frame RenderDoc capture can't replay
WebRender's persistent caches populated in earlier frames).

Includes a `mach wrshell` launcher (preloads librenderdoc, disables the
GPU process, starts wrshell) and a RenderDoc bootstrap script. Gated
behind --enable-webrender-debugger.

Differential Revision: https://phabricator.services.mozilla.com/D305080
2026-06-12 03:27:30 +00:00
Atila Butkovits 4349feb0b9 Revert "Bug 2045587 - Support renderdoc captures in webrender + wrshell r=firefox-build-system-reviewers,gfx-reviewers,wsmind,nical,sergesanspaille" for causing WR bustages.
This reverts commit 2d7d556788.
2026-06-12 00:20:12 +00:00
Glenn Watson 2d7d556788 Bug 2045587 - Support renderdoc captures in webrender + wrshell r=firefox-build-system-reviewers,gfx-reviewers,wsmind,nical,sergesanspaille
Add a /renderdoc-capture debug-server endpoint plus a wrshell `rd`
command and "Capture (RenderDoc)" GUI button. To produce a self-contained
capture, it clears the resource caches and forces a full invalidated
rebuild, so the captured frame re-rasterizes all picture-cache tiles,
glyphs and images in-frame (a single-frame RenderDoc capture can't replay
WebRender's persistent caches populated in earlier frames).

Includes a `mach wrshell` launcher (preloads librenderdoc, disables the
GPU process, starts wrshell) and a RenderDoc bootstrap script. Gated
behind --enable-webrender-debugger.

Differential Revision: https://phabricator.services.mozilla.com/D305080
2026-06-11 22:57:30 +00:00
Dan Mosedale 73620ff460 Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D294087
2026-06-02 07:19:43 +00:00
Atila Butkovits 57580e540b Revert "Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot" for causing failures at test_devtools_mcp.py.
This reverts commit b207c82cd9.
2026-06-01 18:07:01 +00:00
Dan Mosedale b207c82cd9 Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D294087
2026-06-01 17:17:08 +00:00
Atila Butkovits 0f83429bd7 Revert "Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot" for causing failures at test_devtools_mcp.py.
This reverts commit a7ecdc80fe.
2026-06-01 17:07:49 +00:00
Dan Mosedale a7ecdc80fe Bug 2018245 - Give firefox-devtools-mcp better defaults r=ai4dev-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D294087
2026-06-01 16:32:55 +00:00
Dineth fef5161685 Bug 2042443 - Changed strings with percentage formats to fstrings with formatting specifiers. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D303093
2026-05-28 16:43:58 +00:00
Alex Hochheiden 0346e7cfb6 Bug 2036604 - Resolve callable choices when listing settings in ./mach settings r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D300106
2026-05-28 16:33:54 +00:00
adewaleomosanya 95a2f904cd Bug 2031352 - Fix ruff UP031 in decorators.py r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D298305
2026-05-21 14:25:23 +00:00
Gregory Mierzwinski 2d979acb38 Bug 1868773 - Add ./mach perfdocs command for generating performance docs. r=kshampur,perftest-reviewers,mozperftest-reviewers
This patch adds the `./mach perfdocs` command to mozperftest. It also sets up the logger required by perfdocs for producing reviewbot-compatible lint errors, and output these into a JSON file. A `--generate` option is added to enable re-generation of the documentation. At the same time, the existing lint task is changed to use this new command.

Because of a slight change in how perfdocs works, this patch also fixes a bug with the talos gatherer that had caused an existing failure to slip through.

Differential Revision: https://phabricator.services.mozilla.com/D297130
2026-05-05 21:42:45 +00:00
Sylvestre Ledru a2ce5437ce Bug 2024589 - doc: use the :searchfox: macro r=asuth,perftest-reviewers,necko-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,search-reviewers,releng-reviewers,places-reviewers,profiler-reviewers,win-reviewers,omc-reviewers,urlbar-reviewers,permissions-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,layout-reviewers,dom-worker-reviewers,ai-platform-reviewers,niklas,sthompson,janerik,bhearsum,valentin,dshin,sparky,scunnane,canaltinova,hanna_a,handyman,ahal,farre,jteow,emz,nrishel,ohall,dimi,robwu,emilio
Differential Revision: https://phabricator.services.mozilla.com/D288640
2026-04-30 13:28:53 +00:00
Sylvestre Ledru 62b1ca8d05 Bug 2024589 - adjust the code: searchfox.org/mozilla-central is now redirecting to searchfox.org/firefox-main/ r=asuth,perftest-reviewers,necko-reviewers,jgraham,webcompat-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,taskgraph-reviewers,releng-reviewers,desktop-theme-reviewers,win-reviewers,translations-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,profiles-reviewers,dom-worker-reviewers,geckodriver-reviewers,ai-platform-reviewers,Sasha,niklas,manuel,janerik,bhearsum,valentin,twisniewski,nchevobbe,emcminn,webrtc-reviewers,mjf,handyman,mconley,mossop,ahal,sparky,nrishel,robwu,ohall,dimi,hjones
Differential Revision: https://phabricator.services.mozilla.com/D288623
2026-04-30 13:28:49 +00:00
Emilio Cobos Álvarez edf8de90e3 Bug 2033421 - Remove some ccache special-cases. r=firefox-build-system-reviewers,ahochheiden
CCACHE_CPP2 is no longer a thing and hasn't been for ~10y.

There are other ways to configure icecream that isn't CCACHE_PREFIX, so
remove the broken and special-casey detection while at it.

The right thing to check would be to run `ccache -k prefix_command` or
so (and even so `mk_add_option` would bypass it).

It seems nobody had regenerated the metrics doc in a while...

Differential Revision: https://phabricator.services.mozilla.com/D295254
2026-04-20 20:24:07 +00:00
Sylvestre Ledru 4e1cd03c95 Bug 2015841 - Reformat the code with ruff-format 0.15.0 r=linter-reviewers,perftest-reviewers,mozperftest-reviewers,releng-reviewers,sessionstore-reviewers,dom-storage-reviewers,dom-worker-reviewers,whimboo,chutten,ahal,sparky,sclements
Differential Revision: https://phabricator.services.mozilla.com/D282637
2026-04-14 19:33:06 +00:00
Andrew Halberstadt 466e06fe1f Bug 2027865 - Allow configuring 'mach try' remote in machrc, r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D291004
2026-04-01 14:02:59 +00:00
Alex Hochheiden 49d5d7b1f0 Bug 2025532 - Avoid clobbering a custom parser's REMAINDER args in mach/dispatcher.py r=firefox-build-system-reviewers,nalexander,sergesanspaille
Ideally we would refactor everything to not use `REMAINDER` at all since it's an undocumented
legacy feature that's known to be buggy (hence these workarounds), but that's a task for another day.

See: https://github.com/python/cpython/issues/87509#issuecomment-1093904274

Differential Revision: https://phabricator.services.mozilla.com/D289276
2026-03-26 06:59:52 +00:00
Alex Hochheiden a78d7bbbaf Bug 2017746 - Add mach_func_cache decorator for persistent function result caching r=firefox-build-system-reviewers,sergesanspaille,glandium
Differential Revision: https://phabricator.services.mozilla.com/D283974
2026-03-13 18:40:20 +00:00
Alex Hochheiden 0a6954e54a Bug 2022330 - Fix ./mach bootstrap when MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE is set to anything other than venv r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D287014
2026-03-11 17:41:28 +00:00
Sammy Khamis 91fa123afd Bug 2017758: Fix TPS authentication and use mach to run tests r=markh,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D283993
2026-03-03 00:54:53 +00:00
Alex Hochheiden da4c057af8 Bug 2018019 - Replace mozbuild.util.memoize with functools.cache r=firefox-build-system-reviewers,taskgraph-reviewers,releng-reviewers,chutten,bhearsum,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D284155
2026-02-26 22:10:20 +00:00
Alex Hochheiden 8cda0a874d Bug 1775197 - Defer mozlog import in test config settings to avoid loading it at mach startup r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~10ms (~1%).

Differential Revision: https://phabricator.services.mozilla.com/D283782
2026-02-25 19:06:33 +00:00
Alex Hochheiden 993c16315d Bug 1775197 - Move module-level imports to function scope to improve mach startup time r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~100ms (~7%).

Differential Revision: https://phabricator.services.mozilla.com/D283735
2026-02-25 19:06:21 +00:00
Alex Hochheiden 631c7f46fc Bug 1775197 - Initialize telemetry in a background thread to avoid blocking command startup r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~200ms (~13%).

Differential Revision: https://phabricator.services.mozilla.com/D283734
2026-02-25 19:06:18 +00:00
Alex Hochheiden 9cc0d0c6df Bug 1775197 - Disable sentry auto-enabling integrations to speed up mach startup time r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~300ms (~16%).

Differential Revision: https://phabricator.services.mozilla.com/D283733
2026-02-25 19:06:16 +00:00
rperta bc53d449f9 Revert "Bug 1775197 - Collect system telemetry metrics in a background thread to avoid blocking post dispatch r=firefox-build-system-reviewers,sergesanspaille" for causing build bustages
This reverts commit 8100fc2cd6.

This reverts commit 9654a78e06.

This reverts commit 84324c2a16.

This reverts commit 536c4aba8d.

This reverts commit 9900111711.

This reverts commit 900bd50c85.

This reverts commit 23e1f32a21.

This reverts commit 6fa3e144e5.

This reverts commit aedd7c03ba.
2026-02-25 09:59:23 +00:00
Alex Hochheiden 84324c2a16 Bug 1775197 - Defer mozlog import in test config settings to avoid loading it at mach startup r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~10ms (~1%).

Differential Revision: https://phabricator.services.mozilla.com/D283782
2026-02-25 06:22:14 +00:00
Alex Hochheiden 23e1f32a21 Bug 1775197 - Move module-level imports to function scope to improve mach startup time r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~100ms (~7%).

Differential Revision: https://phabricator.services.mozilla.com/D283735
2026-02-25 06:22:03 +00:00
Alex Hochheiden 6fa3e144e5 Bug 1775197 - Initialize telemetry in a background thread to avoid blocking command startup r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~200ms (~13%).

Differential Revision: https://phabricator.services.mozilla.com/D283734
2026-02-25 06:22:00 +00:00
Alex Hochheiden aedd7c03ba Bug 1775197 - Disable sentry auto-enabling integrations to speed up mach startup time r=firefox-build-system-reviewers,sergesanspaille
On Windows, for `./mach python -c pass` the duration is reduced by ~300ms (~16%).

Differential Revision: https://phabricator.services.mozilla.com/D283733
2026-02-25 06:21:57 +00:00
Alex Hochheiden 39d76f57bb Bug 2011162 - Fail on site lock timeout instead of continuing r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D280177
2026-02-23 20:57:42 +00:00
Alex Hochheiden 716142be25 Bug 2011162 - Temporarily exclude filelock from the mach site and use a wrapper to avoid dependency conflicts r=firefox-build-system-reviewers,sergesanspaille,mozperftest-reviewers,sparky
We temporarily hide the vendored `filelock` package and load it via wrapper in
`python/mach/mach/filelock.py`, which allows the `mach` site to use a fixed version
while other command sites can depend on different versions of `filelock` from `PyPI`
without conflicts.

This can be reverted once we upgrade our minimum Python version to `3.10`, see bug 2014269.

Differential Revision: https://phabricator.services.mozilla.com/D279757
2026-02-23 20:57:39 +00:00
Sylvestre Ledru f7aca49bb2 Bug 2015713 - doc: rename the page title to avoid conflicts DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D283862
2026-02-23 14:05:08 +00:00
Alex Hochheiden d54bc04960 Bug 2017462 - Prevent structured logger messages from being handled twice when unstructured logging is enabled r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D283796
2026-02-20 22:06:44 +00:00
Sylvestre Ledru 7715ad0385 Bug 2016144 - doc: fix RST syntax errors in Python docstrings r=firefox-source-docs-reviewers,taskgraph-reviewers,releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D282818
2026-02-20 16:24:24 +00:00
Suhaib Mujahid 89cdfef53a Bug 2017279 - Add 'npx' mach command. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D283716
2026-02-18 23:22:35 +00:00
Cristina Horotan f807c9b27e Revert "Bug 2015841 - ruff: fix 'Lambda may be unnecessary; consider inlining inner function' r=linter-reviewers,perftest-reviewers,sessionstore-reviewers,ahal,sparky,sclements" for causing lint failure
This reverts commit 0382300c2d.

Revert "Bug 2015841 - ruff: fix 'String is split more times than necessary' r=linter-reviewers,ahal,sergesanspaille"

This reverts commit 1e0b4c3c7b.

Revert "Bug 2015841 - Reformat the code with ruff-format 0.15.0 r=linter-reviewers,perftest-reviewers,mozperftest-reviewers,releng-reviewers,sessionstore-reviewers,dom-storage-reviewers,dom-worker-reviewers,whimboo,chutten,ahal,sparky,sclements"

This reverts commit 15a20a737e.

Revert "Bug 2015841 - Update to ruff 0.15.0 r=linter-reviewers,ahal"

This reverts commit 4b0785d39e.
2026-02-18 17:18:07 +00:00
Sylvestre Ledru 15a20a737e Bug 2015841 - Reformat the code with ruff-format 0.15.0 r=linter-reviewers,perftest-reviewers,mozperftest-reviewers,releng-reviewers,sessionstore-reviewers,dom-storage-reviewers,dom-worker-reviewers,whimboo,chutten,ahal,sparky,sclements
Differential Revision: https://phabricator.services.mozilla.com/D282637
2026-02-18 16:47:08 +00:00
Marco Castelluccio 098bc6192c Bug 2017368 - Add a Mach command for coverage report generation. r=mach-reviewers,ahochheiden DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D283731
2026-02-18 04:28:10 +00:00
Ranvir Sahota f6f01e434a Bug 1884983 - Fix formatting of runprefs description in './mach settings' output. r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D283365
2026-02-16 22:28:01 +00:00
iulian moraru c616d6af1d Revert "Bug 2015841 - ruff: fix 'Lambda may be unnecessary; consider inlining inner function' r=linter-reviewers,perftest-reviewers,sessionstore-reviewers,ahal,sparky,sclements" for causing multiple android reftest failures.
This reverts commit 5eca473e96.

Revert "Bug 2015841 - ruff: fix 'String is split more times than necessary' r=linter-reviewers,ahal,sergesanspaille"

This reverts commit 654a09320c.

Revert "Bug 2015841 - Reformat the code with ruff-format 0.15.0 r=linter-reviewers,perftest-reviewers,mozperftest-reviewers,releng-reviewers,sessionstore-reviewers,dom-storage-reviewers,dom-worker-reviewers,whimboo,chutten,ahal,sparky,sclements"

This reverts commit 93b38f0d79.

Revert "Bug 2015841 - Update to ruff 0.15.0 r=linter-reviewers,ahal"

This reverts commit cc04e8271b.
2026-02-13 22:35:55 +00:00
Sylvestre Ledru 93b38f0d79 Bug 2015841 - Reformat the code with ruff-format 0.15.0 r=linter-reviewers,perftest-reviewers,mozperftest-reviewers,releng-reviewers,sessionstore-reviewers,dom-storage-reviewers,dom-worker-reviewers,whimboo,chutten,ahal,sparky,sclements
Differential Revision: https://phabricator.services.mozilla.com/D282637
2026-02-13 21:36:19 +00:00
Sylvestre Ledru 4986e6f622 Bug 2015838 - ruff format - reformat the python docstring r=linter-reviewers,perftest-reviewers,whimboo,ahal,sparky
Differential Revision: https://phabricator.services.mozilla.com/D282633
2026-02-10 23:47:54 +00:00
Greg Tatum 4247af70de Bug 2006408 - Add a ./mach eval-tools login command r=sparky,ai-ondevice-reviewers,atossou
This login will allow the test infrastructure access the MLPA endpoint
for language models in both the test run and in the evaluation.

Differential Revision: https://phabricator.services.mozilla.com/D277468
2026-02-09 14:21:25 +00:00
Greg Tatum 3d4fea68ce Bug 2006407 - Add a ./mach eval command that forwards arguments to perftest r=sparky,ai-ondevice-reviewers,atossou
This makes it more ergonomic for running evals as a unique test type.
Originally I wanted this to run like `./mach eval test.js -- --headless`
where everything past the -- would be forwarded to the underlying test.
However I struggled with the argument parsing in mach having surprising
behavior and swallowing the -- before the mach command was run.

Mostly this serves as an entrypoint and area for future documentation
for browser evals.

Differential Revision: https://phabricator.services.mozilla.com/D277467
2026-02-09 14:21:22 +00:00
Atila Butkovits c949f90e8b Revert "Bug 2011162 - Bump required tox version to 3.28.0 r=ahal" as requested by dev. DONTBUILD
This reverts commit e6289356f9.

Revert "Bug 2011162 - Strip inline comments when parsing `requirements.txt` for lockfiles r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 738a09ac7c.

Revert "Bug 2011162 - Add `-r` include support to lockfile `requirements.txt` parsing r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 592072308d.

Revert "Bug 2011162 - Remove vendored `filelock` dependency r=ahal,mach-reviewers"

This reverts commit ba4111b913.

Revert "Bug 2011162 - Fail on site lock timeout instead of continuing r=firefox-build-system-reviewers,sergesanspaille"

This reverts commit 07e9dc124e.

Revert "Bug 2011162 - Replace vendored `filelock` with `mach.filelock` r=firefox-build-system-reviewers,sergesanspaille,mozperftest-reviewers,sparky"

This reverts commit 9641d7f735.
2026-02-06 19:25:11 +00:00
Alex Hochheiden 07e9dc124e Bug 2011162 - Fail on site lock timeout instead of continuing r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D280177
2026-02-05 18:42:16 +00:00
Alex Hochheiden 9641d7f735 Bug 2011162 - Replace vendored filelock with mach.filelock r=firefox-build-system-reviewers,sergesanspaille,mozperftest-reviewers,sparky
D235335 removed our home-brewed `filelock` implementation. This reverts that
change, bringing back an in-house implementation to avoid relying on the
vendored `filelock` so that we can work around a dependency constraint.

The in-house implementation has been expanded to support context managers and an
acquire/release interface similar to `filelock`. It also detects and cleans
up stale locks left by processes that died while holding a lock.

Differential Revision: https://phabricator.services.mozilla.com/D279757
2026-02-05 18:42:12 +00:00
serge-sans-paille e0ef92d094 Bug 2014476 - Move js's source-package rule to a dedicated mach subcommand r=ahochheiden
The rule is never used from CI, it's just there for user convenience,
and it's not something we can model from moz.build, so we should
move it elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D281792
2026-02-05 07:40:13 +00:00