Commit Graph

207 Commits

Author SHA1 Message Date
Julian Descottes
2dba0d6f81 Bug 1842198 - [remote] Update hgignore to ignore readme files in puppeteer packages r=Sasha
Depends on D184112

Differential Revision: https://phabricator.services.mozilla.com/D184209
2023-07-25 07:10:08 +00:00
Julian Descottes
bade727346 Bug 1842198 - [remote] Update hgignore and gitignore for puppeteer generated artifacts r=webdriver-reviewers,Sasha
Depends on D184110

Differential Revision: https://phabricator.services.mozilla.com/D184112
2023-07-25 07:10:08 +00:00
Emilio Cobos Álvarez
169a3e63a8 Bug 1829512 - Use .clangd rather than vscode-specific configuration to point to the compilation database. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D176230
2023-04-23 06:23:39 +00:00
Zeid
7c080097d0 Bug 1817289: generate exported mots in mach doc r=sheehan,firefox-source-docs-reviewers,sylvestre
- generate exported index.rst file in mach doc
- stop tracking docs/mots/index.rst, add it to ignore files
- add mots.yaml to sphinx-docs sparse profile
- add mots to requirements

Differential Revision: https://phabricator.services.mozilla.com/D170116
2023-04-18 17:20:55 +00:00
Erich Gubler
59905b6142 Bug 1720941, part 1: build(ci): integrate WebGPU CTS into CI r=webgpu-reviewers,taskgraph-reviewers,jmaher,jimb
Vendor in WebGPU CTS so that we can run it against our implementation of WebGPU. This patch includes:

1. Some linting configuration tweaks, to silence issues that weren't straightforward to fix in CTS upstream.
2. Some WPT runner configuration to enable preferences, and skip MacOS testing altogether (since it's not targeted by our current work).
3. A new Rust binary crate that, when run from a development environment:
    1. Creates a vendored copy of WebGPU CTS in `<gecko>/dom/webgpu/tests/cts/checkout/`.
    2. Generates private Web Platform Tests (see also `<gecko>/testing/web-platform/docs/index.rst`). To do this, we:
        1. Use upstream test generation via `npm` scripts, which creates a single `cts.https.html` file with thousands of variants.
        2. Chunk the `cts.https.html` file into parts that Taskcluster can distribute without timing out individual jobs. IMO, this is the most likely part of these changes to need further iteration, because:
            1. We currently naively divide tests by number of variant, and have made no effort to empirically prove that we're dividing execution time of chunks.
            2. There is currently no stability in the distribution of tests per chunk. Test variants are essentially a flattened list of the tree structure used to organize tests. Adding a few tests that end up being placed in the middle of the list can cause the chunk with new tests _and all subsequent chunks_ to have their contents changed, which will probably cause a disproportionate number of line changes to review.:
        3. Fix `script` tag(s) so they actually work with the WPT test runner for private tests (viz., in the `testing/web-platform/mozilla` directory).

The output of the new vendoring binary is designed make the above steps transparent. N.B. that no actual vendoring in of files has happened yet; the next patch will add the results of running this script.

Differential Revision: https://phabricator.services.mozilla.com/D169951
2023-03-22 14:03:50 +00:00
Andrew Halberstadt
dd673c2fb2 Bug 1811850 - [lint] Replace flake8 linter with ruff, r=linter-reviewers,sylvestre
Ruff is a very fast linter implemented in Rust and it can act as a drop-in
replacement for flake8. When running the same set of rules across all files
in mozilla-central (without mozlint), flake8 takes 900 seconds whereas ruff
takes 0.9 seconds.

Ruff also implements rules from other popular Python linters such as pylint,
isort and pyupgrade. There are even plans to implement feature parity with
black in the future. Ultimately, it can become our one stop shop for all Python
linting and formatting.

This stack will swap out all our Python lint tools for ruff (excluding black
for now).

Differential Revision: https://phabricator.services.mozilla.com/D172313
2023-03-20 13:06:27 +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
8a4d48a70d Bug 1811850 - [lint] Replace flake8 linter with ruff, r=linter-reviewers,sylvestre
Ruff is a very fast linter implemented in Rust and it can act as a drop-in
replacement for flake8. When running the same set of rules across all files
in mozilla-central (without mozlint), flake8 takes 900 seconds whereas ruff
takes 0.9 seconds.

Ruff also implements rules from other popular Python linters such as pylint,
isort and pyupgrade. There are even plans to implement feature parity with
black in the future. Ultimately, it can become our one stop shop for all Python
linting and formatting.

This stack will swap out all our Python lint tools for ruff (excluding black
for now).

Differential Revision: https://phabricator.services.mozilla.com/D172313
2023-03-17 01:53:58 +00:00
Marian-Vasile Laza
703b1846fd Backed out 2 changesets (bug 1720941) for web-platform tests failures. CLOSED TREE
Backed out changeset f7fed5fde8b7 (bug 1720941)
Backed out changeset a211d76a5e01 (bug 1720941)
2023-03-16 02:14:02 +02:00
Erich Gubler
af02a85436 Bug 1720941, part 1: build(ci): integrate WebGPU CTS into CI r=webgpu-reviewers,taskgraph-reviewers,jmaher,jimb
Vendor in WebGPU CTS so that we can run it against our implementation of WebGPU. This patch includes:

1. Some linting configuration tweaks, to silence issues that weren't straightforward to fix in CTS upstream.
2. Some WPT runner configuration to enable preferences, and skip MacOS testing altogether (since it's not targeted by our current work).
3. A new Rust binary crate that, when run from a development environment:
    1. Creates a vendored copy of WebGPU CTS in `<gecko>/dom/webgpu/tests/cts/checkout/`.
    2. Generates private Web Platform Tests (see also `<gecko>/testing/web-platform/docs/index.rst`). To do this, we:
        1. Use upstream test generation via `npm` scripts, which creates a single `cts.https.html` file with thousands of variants.
        2. Chunk the `cts.https.html` file into parts that Taskcluster can distribute without timing out individual jobs. IMO, this is the most likely part of these changes to need further iteration, because:
            1. We currently naively divide tests by number of variant, and have made no effort to empirically prove that we're dividing execution time of chunks.
            2. There is currently no stability in the distribution of tests per chunk. Test variants are essentially a flattened list of the tree structure used to organize tests. Adding a few tests that end up being placed in the middle of the list can cause the chunk with new tests _and all subsequent chunks_ to have their contents changed, which will probably cause a disproportionate number of line changes to review.:
        3. Fix `script` tag(s) so they actually work with the WPT test runner for private tests (viz., in the `testing/web-platform/mozilla` directory).

The output of the new vendoring binary is designed make the above steps transparent. N.B. that no actual vendoring in of files has happened yet; the next patch will add the results of running this script.

Differential Revision: https://phabricator.services.mozilla.com/D169951
2023-03-15 20:13:45 +00:00
Mark Striemer
a40c763925 Bug 1810885 - Use ChromeMap for rewriting chrome:// URIs in Storybook r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D170936
2023-02-28 05:43:54 +00:00
Henrik Skupin
33c84b1801 Bug 1817934 - [puppeteer] Vendor Puppeteer v19.7.2. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D170799
2023-02-25 10:14:26 +00:00
Barret Rennie
1149bd525e Bug 1813597 - Support reach experiments in the FxMS schemas r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D168322
2023-02-13 18:42:36 +00:00
Alexandra Borovova
7e919228b0 Bug 1797744 - [puppeteer] Sync vendored puppeteer to v19.6.0. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D167407
2023-01-27 16:50:45 +00:00
Dana Keeler
4d2b1f7538 Bug 1811633 - use updated, vendored version of PKI.js, remove old version r=Gijs
This also converts certDecoder.jsm to an ES module (as certDecoder.mjs) and
updates all uses of it.

Differential Revision: https://phabricator.services.mozilla.com/D167466
2023-01-27 04:07:10 +00:00
Dana Keeler
2f59e91b43 Bug 1811633 - vendor PKI.js r=tjr,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167465
2023-01-27 04:07:09 +00:00
Noemi Erli
e287ab9d9a Backed out 2 changesets (bug 1811633) for causing lint bustage CLOSED TREE
Backed out changeset 3ef0fe45b191 (bug 1811633)
Backed out changeset 92a7ec78a4ce (bug 1811633)
2023-01-26 02:26:54 +02:00
Dana Keeler
78cdb5eb07 Bug 1811633 - use updated, vendored version of PKI.js, remove old version r=Gijs
This also converts certDecoder.jsm to an ES module (as certDecoder.mjs) and
updates all uses of it.

Differential Revision: https://phabricator.services.mozilla.com/D167466
2023-01-26 00:07:49 +00:00
Dana Keeler
27dea1181b Bug 1811633 - vendor PKI.js r=tjr,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167465
2023-01-26 00:07:48 +00:00
Hanna Jones
eb9fd58f2b Bug 1799699 - expand storybook args table docs r=mstriemer,tgiles
This is still far from perfect given the limitations of the Storybook web components package, but I figured this was worth putting up since it's still an improvement over the current state of our args tables (I think).

I'm mostly leaving the default generated `custom-elements-manifest.json` alone save for filtering some internal properties we don't want documented since they shouldn't really be accessed directly. If it seems too strange to just have the `aria-label` attr documented we could possibly remove `attributes` from the docs for now (this happens because it's the only attr where the name is different from the property name).

Open to feedback/thoughts on if this is useful or too wonky for now given the weirdness around how Storybook creates naming collisions.

Differential Revision: https://phabricator.services.mozilla.com/D162599
2023-01-23 23:52:36 +00:00
Michael Froman
abc1e98d4e Bug 1809569 - pt1 - add new fast-forward state directory. r=ng DONTBUILD
- automatically create state directory (.moz-fast-forward) under top level or repo if missing
- automatically create log and tmp subdirectories if missing
- only execute use_config_env.sh once in nested scripts
- move default location for config_env under state directory

Differential Revision: https://phabricator.services.mozilla.com/D166492
2023-01-23 21:05:56 +00:00
Alexandra Borovova
d115e24d80 Bug 1797723 - [puppeteer] Sync vendored puppeteer to v18.0.0. r=webdriver-reviewers,whimboo,jdescottes
Depends on D166650

Differential Revision: https://phabricator.services.mozilla.com/D166651
2023-01-17 10:42:50 +00:00
Francesco Lodolo (:flod)
7afa41bb66 Bug 1806793 - Update scripts for en-US dictionary, r=sylvestre
Added .sh extension to all scripts.

edit-dictionary.sh:
* Convert to utf-8 before editing, and back to iso-8859-1 before saving
* Place a copy of the utf-8 dictionary inside the utf8 folder, and store the iso-8859-1 in place

make-new-dict.sh:
* Use .txt extension for support wordlists, and place them in a subfolder
* Exclude words in mozilla-exclusions.txt from the generated dictionary
* Save 5-mozilla-*.txt files to utf-8

Depends on D165304

Differential Revision: https://phabricator.services.mozilla.com/D165305
2022-12-28 15:06:25 +00:00
Mark Striemer
4a7f86bf31 Bug 1804969 - Rewrite chrome:// JS imports in Storybook r=mconley,hjones
This patch will rewrite all chrome:// URLs in .mjs files, but it isn't
emitting proper URLs for assets. This means that JS imports will map
correctly, but any img/css references won't have a valid path outside of
local development and CSS files that use @import will not resolve imports
correctly.

To reference images and CSS files you will still need to ensure those files
are in the Storybook static path and use a separate URL to reference them
in the `window.IS_STORYBOOK` case.

Differential Revision: https://phabricator.services.mozilla.com/D165060
2022-12-21 00:55:04 +00:00
Mark Striemer
0397a3f6d8 Bug 1790483 - Vendor the lit library in toolkit/content/widgets r=hjones
lit is a library for building Web Components. It is released under the
BSD 3-Clause license.

Website: https://lit.dev/
GitHub: https://github.com/lit/lit/

Differential Revision: https://phabricator.services.mozilla.com/D159765
2022-12-07 15:46:06 +00:00
Stanca Serban
6219c6dbcb Backed out 2 changesets (bug 1801426, bug 1790483) for causing bc failures on browser_all_files_referenced.js. CLOSED TREE
Backed out changeset af5a48a4b3d3 (bug 1801426)
Backed out changeset f4f8e2b95246 (bug 1790483)
2022-11-23 03:09:29 +02:00
Mark Striemer
f1b3d2fa50 Bug 1790483 - Vendor the lit library in toolkit/content/widgets r=hjones
lit is a library for building Web Components. It is released under the
BSD 3-Clause license.

Website: https://lit.dev/
GitHub: https://github.com/lit/lit/

Differential Revision: https://phabricator.services.mozilla.com/D159765
2022-11-23 00:05:56 +00:00
Mike Hommey
d4c5ae107b Bug 1800776 - Remove inline regex flags in .hgignore. r=firefox-build-system-reviewers,andi
Python 3.11 doesn't support those anymore.

Differential Revision: https://phabricator.services.mozilla.com/D162186
2022-11-16 08:26:01 +00:00
Mark Striemer
6064b195e4 Bug 1798911 - Setup lit for development of toolkit widgets r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D161141
2022-11-03 21:32:34 +00:00
Alexandra Borovova
428f90d6b8 Bug 1791532 - [puppeteer] Sync puppeteer v17.1.2 r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D160331
2022-10-27 07:22:47 +00:00
Anurag Kalia
2324051653 Bug 1784022 - [refactor] Convert text-emphasis-position #defines to enum classes r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D155557
2022-09-27 07:38:08 +00:00
Emilio Cobos Álvarez
6715cf198f Bug 1788186 - Remove configure from *ignore files. r=nalexander DONTBUILD
After bug 1787977 they're in the tree.

Differential Revision: https://phabricator.services.mozilla.com/D156058
2022-08-31 17:37:40 +00:00
Alexandra Borovova
3b13e92b62 Bug 1756680 - [puppeteer] Sync puppeteer v16.1.1 r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D154912
2022-08-23 09:07:42 +00:00
David Shin
303530b72c Bug 634029 - Add .rej and .orig files, which can be generated from hg commands, to .hgignore. r=firefox-build-system-reviewers,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151501
2022-07-11 15:12:35 +00:00
Tooru Fujisawa
1079972361 Bug 1776870 - Integrate esmify script into mach. r=yulia,firefox-static-analysis-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D150494
2022-07-11 14:55:11 +00:00
Tim Giles
1f3536a4ce Bug 1771004 - Ignore Storybook generated files. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D147217
2022-05-25 18:32:43 +00:00
Mark Striemer
d653e19400 Bug 1765634 - Simple Storybook for local development r=mconley,hjones
This provides a basic Storybook set up for us to develop with
Storybook locally.

Quick start (MacOS, Linux, WSL):
  ./mach npm --prefix=browser/components/storybook ci
  ./mach npm --prefix=browser/components/storybook run storybook

Differential Revision: https://phabricator.services.mozilla.com/D144223
2022-04-27 20:10:16 +00:00
Andi
d7da2ecade Bug 1766262 - move clang-tidy arguments for clangd from cli to spcific file. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D144577
2022-04-27 09:10:21 +00:00
Julian Descottes
a41d61870e Bug 1761655 - Ignore mypy cache files r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D142164
2022-03-31 13:52:11 +00:00
Myeongjun Go
9fd67f43ed Bug 1732376 - Add a --clean option to remove the raptor venv before running r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139830
2022-03-16 12:39:55 +00:00
Mathew Hodson
1d8f43eb36 Bug 1759087 - Ignore Visual Studio user config files in VCS. r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D140797
2022-03-11 15:40:52 +00:00
Scott
5206bf147c Bug 1751511 - Save to Pocket panels, don't minify css build. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D136669
2022-01-25 16:11:07 +00:00
Ting-Yu Lin
1e282b2d28 Bug 1749650 - Ignore clangd index files in gecko root folder. r=firefox-build-system-reviewers,andi
NPOTB DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D135674
2022-01-12 17:20:04 +00:00
Julian Descottes
d971201a32 Bug 1732958 - [puppeteer] Update hgignore to ignore new puppeteer folders r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D134665
2022-01-04 12:11:44 +00:00
Greg Tatum
0f0b78cc1d Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D129080
2021-11-16 15:09:09 +00:00
Mathew Hodson
2320ff56d2 Bug 1737741 - Ignore pytest artifacts in VCS. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D129464
2021-11-02 14:33:49 +00:00
Mathew Hodson
23174e49b2 Bug 1734306 - Ignore Visual Studio config directory in VCS. r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D127614
2021-10-18 14:46:13 +00:00
Mitchell Hentges
3ecc6dad6a Bug 1731145: Don't ignore vendored package *.egg-info directories r=ahal
The `*.egg-info` directories are needed for the packages to show up as
"distributions" to `pip` and other environment-checking logic.

We know that `*.egg-info` directories are cross-platform because they
exist in the globally-usable `tar.gz` releases of packages.

Differential Revision: https://phabricator.services.mozilla.com/D125909
2021-09-28 14:59:27 +00:00
criss
f2dcba95fa Backed out 10 changesets (bug 1712151, bug 1724279, bug 1730712, bug 1717051, bug 1723031, bug 1731145) for causing failures on test_yaml.py
Backed out changeset 7f64d538701b (bug 1723031)
Backed out changeset 394152994966 (bug 1723031)
Backed out changeset 9bfeb01bcc9a (bug 1723031)
Backed out changeset 3d283616a57d (bug 1730712)
Backed out changeset bc677b409650 (bug 1724279)
Backed out changeset 784c94c2f528 (bug 1723031)
Backed out changeset 6e1bde40e3b4 (bug 1723031)
Backed out changeset 7adf7e2136a3 (bug 1712151)
Backed out changeset 2aef162b9a1b (bug 1717051)
Backed out changeset 9beeb6d3d95b (bug 1731145)
2021-09-28 00:32:38 +03:00
Mitchell Hentges
88d28c21f4 Bug 1731145: Don't ignore vendored package *.egg-info directories r=ahal
The `*.egg-info` directories are needed for the packages to show up as
"distributions" to `pip` and other environment-checking logic.

We know that `*.egg-info` directories are cross-platform because they
exist in the globally-usable `tar.gz` releases of packages.

Differential Revision: https://phabricator.services.mozilla.com/D125909
2021-09-27 20:27:18 +00:00