Граф коммитов

148 Коммитов

Автор SHA1 Сообщение Дата
Andrew Halberstadt 577c4dacfe Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172359
2023-03-20 13:06:28 +00:00
Cristian Tuns c1b52fd95e Backed out 5 changesets (bug 1811850) for causing linting bustages(bugzilla) CLOSED TREE
Backed out changeset e8fcfc7f8108 (bug 1811850)
Backed out changeset f8950d716c9e (bug 1811850)
Backed out changeset f650123cc188 (bug 1811850)
Backed out changeset d96f90c2c58b (bug 1811850)
Backed out changeset c3b0f9666183 (bug 1811850)
2023-03-16 22:16:30 -04:00
Andrew Halberstadt d93be6a402 Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D172359
2023-03-17 01:54:00 +00:00
Manuel Bucher 57313a9e03 Bug 1820505 - Document how to create mermaid diagrams in markdown r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D171697
2023-03-13 09:39:50 +00:00
ogiorgis 29b5739905 Bug 1803426 - remove useless requirements.in file r=firefox-source-docs-reviewers,sylvestre DONTBUILD
In
https://hg.mozilla.org/mozilla-central/rev/89fcec6bc22dc5e5d31491f76c4dd13c5c3d4722
we switched over to the new sites system.

Differential Revision: https://phabricator.services.mozilla.com/D168516
2023-02-21 14:28:55 +00:00
ogiorgis 05f74446e5 Bug 1812560 - Allow mach doc to build subdirectories of doc r=firefox-source-docs-reviewers,ahal DONTBUILD
Depends on D169094

Differential Revision: https://phabricator.services.mozilla.com/D170075
2023-02-18 08:26:34 +00:00
ogiorgis f2ae383672 Bug 1812560 - Accept all directories containing an index file for 'mach doc' r=firefox-source-docs-reviewers,ahal DONTBUILD
The presence of an index file is a better criterion than the name of the directory.

Differential Revision: https://phabricator.services.mozilla.com/D169094
2023-02-17 13:33:50 +00:00
ogiorgis 1a578e35ae Bug 1678710 - Add a warning when creating the entire docs r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D169077
2023-02-17 13:33:50 +00:00
Carine Dengler 8500e18b77 Bug 1703037 - Add a no-python option to `./mach doc` r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D168352
2023-02-17 13:26:24 +00:00
cdengler 3a2b24f085 Bug 1807831 - Add a check to make sure that we don't regress the number of warnings r=sylvestre,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D167528
2023-01-23 16:49:17 +00:00
ogiorgis 1dfa7e23a3 Bug 1557020 - Don't remove unaccounted files while building docs r=sylvestre
While copying sphinx files, some unmodified static files were deleted.

Differential Revision: https://phabricator.services.mozilla.com/D167397
2023-01-23 16:40:07 +00:00
Sylvestre Ledru 62b73ca40c Bug 1750450 - Doc: use the new system for python deps r=firefox-source-docs-reviewers,ahal
Co-author: Andrew Halberstadt <ahal@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D153483
2023-01-05 14:32:11 +00:00
Sylvestre Ledru be30477567 no bug - document how the firefox source doc system work r=firefox-source-docs-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165624
2023-01-03 14:00:37 +00:00
Sylvestre Ledru c280fd9621 no bug - document reviewbot behavior when the doc is modified r=andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165623
2022-12-30 17:16:02 +00:00
Sylvestre Ledru 31a10662a8 no bug - doc: add 'error:' when the doc is failing to build r=firefox-source-docs-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165626
2022-12-29 16:00:14 +00:00
Marco Castelluccio f69e697461 Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00
Sylvestre Ledru 42ae364fef Bug 1802924 - doc: Update rtd-theme to 1.1.1 r=firefox-source-docs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D165093
2022-12-20 18:28:52 +00:00
Sylvestre Ledru a9da3ee623 Bug 1763971 - Update sphinx-js to allow build with python 3.10 r=firefox-source-docs-reviewers,ahal
Depends on D165092

Differential Revision: https://phabricator.services.mozilla.com/D164963
2022-12-20 18:28:51 +00:00
Cosmin Sabou f4b3682389 Backed out changeset 65695f7ddf1d (bug 1750450) for causing python3 failures. 2022-12-20 17:03:20 +02:00
Sylvestre Ledru 3929f16a60 Bug 1750450 - Doc: use the new system for python deps r=firefox-source-docs-reviewers,ahal
+ update sphinx-js to 3.2.1

Differential Revision: https://phabricator.services.mozilla.com/D153483
2022-12-20 12:53:56 +00:00
Norisz Fay 081bdcdf0c Backed out changeset c41cb5ac4dbd (bug 1806098) for causing lint failures on lints.py, isort.py CLOSED TREE 2022-12-16 18:13:59 +02:00
Sylvestre Ledru c55679e14a Bug 1806098 - Enable pylint on tools/lint/ & tools/moztreedocs/ r=jlorenzo,linter-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D164894
2022-12-16 14:07:46 +00:00
Marian-Vasile Laza bd86ea8fb1 Backed out 3 changesets (bug 1802924) for causing doc generate failures. CLOSED TREE
Backed out changeset e878329a42ea
Backed out changeset 8621c76e4e95 (bug 1802924)
Backed out changeset c5b12cce19be
2022-11-28 19:38:56 +02:00
Sylvestre Ledru 5788f06dec no bug - update sphinx-markdown-tables & markdown r=firefox-source-docs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D163237
2022-11-28 17:11:50 +00:00
Sylvestre Ledru 47ffe7325a Bug 1802924 - Update to sphinx-rtd-theme 1.1.1 r=firefox-source-docs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D163234
2022-11-28 17:11:50 +00:00
Sylvestre Ledru 1d302c148a no bug - Update dependency sphinx-copybutton to v0.5.1 r=firefox-source-docs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D163232
2022-11-28 17:11:48 +00:00
Marco Castelluccio de29bc2f0e Bug 1790816 - Reformat tools/ with isort. r=linter-reviewers,perftest-reviewers,sparky,sylvestre DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162660
2022-11-24 10:58:05 +00:00
Andrew Halberstadt de09eb129e Bug 1799760 - [docs] Ensure warnings are non-fatal when running locally, r=firefox-source-docs-reviewers,marco
When running `./mach doc` locally it is a poor experience to have the build error out
due to fatal warnings, as it's possible the missing refs simply aren't implemented yet.
Or worse, it's possible that the developer ran `./mach doc <subtree>` and the missing
refs don't exist simply because they are outside of <subtree>.

This patch ensures we only enable fatal warnings in CI, or if the user opts into it with
the `--fatal-warnings` flag.

Differential Revision: https://phabricator.services.mozilla.com/D161633
2022-11-10 19:09:16 +00:00
Andrew Halberstadt 6fcdd883c0 Bug 1458882 - [moztreedocs] Add flag to dump sphinx trees to a file, r=firefox-source-docs-reviewers,sylvestre
This will enable tools like searchfox to map source files in the
tree to their rendered URLs.

Differential Revision: https://phabricator.services.mozilla.com/D157929
2022-11-01 21:03:07 +00:00
Sylvestre Ledru 32963370f6 Bug 1789204 - ride along: mdn import: add a link to the meta bug DONTBUILD
Depends on D156408

Differential Revision: https://phabricator.services.mozilla.com/D156409
2022-09-05 08:48:03 +00:00
renovate[bot] fa48206157 no bug - Update dependency mdurl to v0.1.2 r=linter-reviewers,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154888
2022-08-18 20:13:16 +00:00
renovate[bot] 078e93eeac no bug - Update dependency colorama to v0.4.5 r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154874
2022-08-17 13:46:04 +00:00
Gijs Kruitbosch 06c50f2feb Bug 1754299 - remove os.unlink call from mach doc that fails on Windows, r=ahal,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D143239
2022-04-13 09:51:24 +00:00
Sylvestre Ledru 6c8d8bbeab no bug - Doc: explicit that reviews aren't required for doc changes r=overholt DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D140630
2022-03-31 12:17:59 +00:00
Mitchell Hentges 14386d0c7e Bug 1717104: Activate virtualenv before running command r=perftest-reviewers,ahal,AlexandruIonescu
All commands declaring a virtualenv will have them activated before the
command executes. Removes all now-redundant manual activations of
declared virtualenvs.

Commands that don't declare a virtualenv will still implicitly be
associated with the "common" virtualenv, but unlike explicit
virtualenv declarations it'll have to be activated manually, just
like it was before this patch.

To smooth the migration with existing usages, virtualenv activation
behaviour was changed slightly: if attempting to activate a new
virtualenv, but the source venv is already command venv, then raise an
exception. (In the future, we should improve testability of
virtualenv scaffolding logic so that tests can be added for this
sort of thing.) This did cause some issues with some tests, which
will be solved more cleanly with bug 1724273. In the meantime,
minimal modifications were made to failing tests to keep them green:
* `test_command_line.py` was activating the `common` virtualenv so
  that it could install `mozproxy`, and use its CLI. Instead, I
  modified the test to use `mozproxy` using the "module" interface
  (`python -m mozproxy ...`). At that point, `MozbuildObject` was
  unnecessary and usages were replaced with simpler variants.
* `test_vendor.py` needed its explicit `activate_virtualenv()` call
  patched out. It still needs to use a virtualenv's Python
  executable, but due to `sys.executable` now being kept up-to-date
  as of bug 1717051, it could be used directly.

Differential Revision: https://phabricator.services.mozilla.com/D122892
2022-03-23 14:50:45 +00:00
Mitchell Hentges 83f95f6c5d Bug 1723237: Move low-hanging fruit commands to centralized Python dep system r=ahal
Creates/updates virtualenvs for some mach commands, replacing
their ad-hoc usage of `install_pip_package()`, `pip install`,
and `sys.path` modifications.

Note: The `docs` virtualenv has `Sphinx==1.1.3` installed, even
though a more modern version of `Sphinx` is used when
`./mach doc` is run. This is ok for now, since `./mach doc` will
just install the newer `Sphinx` over top of the old one. Secondarily,
when we port `./mach doc` to use the centralized system, we'll
be incentivized to make the different `doc` commands use synchonized
versions of the same packages. Success!

Also, note that manual installation of `html5lib` and `requests`
isn't ported to the `wpt` site: this is because they're already
provided by the inherited Mach site.

Differential Revision: https://phabricator.services.mozilla.com/D122902
2022-03-22 20:49:42 +00:00
Thomas Wisniewski 1e356203e9 Bug 1715900 - Bump urllib3 to version 1.26.0, boto3 to 1.16.63, and botocore to 1.19.63; r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138383
2022-02-15 15:07:18 +00:00
Sylvestre Ledru f9e1c91a4a no bug - Update dependency sphinx-copybutton to v0.5.0 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D137952
2022-02-07 22:27:52 +00:00
Sylvestre Ledru caaedeee98 Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D137741
2022-02-03 18:34:58 +00:00
James Graham eacdb834af Bug 1749463 - Add a `mach docs show-targets` command, r=firefox-source-docs-reviewers,ahal
This generates a list of all known targets in an existing build of the
docs. That makes it easier/possible to figure out what references
exist and can be used.

Differential Revision: https://phabricator.services.mozilla.com/D135596
2022-01-11 16:32:56 +00:00
James Graham f76ad255a6 Bug 1748845 - Add a custom mechanism to make some docs warnings fatal, r=ahal,firefox-source-docs-reviewers,sylvestre
The idea is to capture the warnings in a temporary file, and then
apply a set of regex to find any that should be treated as fatal.

This allows us to fix warnings one type at a time, and prevents us
regressing the warnings that are already fixed.

The "reference target not count" warning is added to the initial
forbidden list, so we can ensure we don't end up with internal links
pointing to nowhere.

Differential Revision: https://phabricator.services.mozilla.com/D135389
2022-01-11 10:48:23 +00:00
Sylvestre Ledru 2c4082a199 no bug - Update dependency Sphinx to v4.3.2 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D134239
2021-12-22 09:07:29 +00:00
championshuttler a3dd4bd705 Bug 1746782 - Support myst parser and remove recommanmark.r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D134242
2021-12-20 09:45:44 +00:00
Sylvestre Ledru 5f7ee8020d Bug 1737307 - 'mach doc': Add a new option --linkcheck r=mhentges DONTBUILD
Depends on D129283

Differential Revision: https://phabricator.services.mozilla.com/D129284
2021-11-29 09:28:35 +00:00
Renovate Bot 70881ec0dc no bug - Update dependency Sphinx to v4.3.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D132303
2021-11-28 16:16:30 +00:00
Renovate Bot 5791938a77 Bug 1740681 - Update dependency Sphinx to v4.3.0 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D130962
2021-11-15 19:50:13 +00:00
Kagami Sascha Rosylight 84ad995e6d Bug 1728604 - Normalize path before doc path comparison r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D127656
2021-10-07 12:32:57 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
Alex Lopez a8e7083c84 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-21 20:38:16 +00:00