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

633 Коммитов

Автор SHA1 Сообщение Дата
Marco Castelluccio c0cd912663 Bug 1803510 - Add an isort linting task. r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D163652
2022-12-16 10:40:46 +00:00
Mike Hommey 1861703e51 Bug 1797891 - Make some tasks really only run on m-c or autoland. r=jcristau
As of bug 1791454 m-c and autoland both also imply the toolchains
branch, which doesn't work for every kind of task, some of which are
really meant to only run on those branches.

Differential Revision: https://phabricator.services.mozilla.com/D164149
2022-12-08 21:18:06 +00:00
Marco Castelluccio 5203443423 No bug - Black should run when tools/lint/black.yml is modified and not tools/lint/flake8.yml. r=linter-reviewers,sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D163654
2022-12-02 00:11:45 +00:00
Mark Banner 67a651fc98 Bug 1803509 - Turn off warnings for eslint-build source task. r=releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D163592
2022-12-01 16:03:23 +00:00
Andrew Halberstadt 692bb41b62 Bug 1801283 - [ci] Disable optimization for 'eslint-build' task, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D163259
2022-11-28 21:52:58 +00:00
Mark Banner 2738023a40 Bug 1800874 - Promote eslint-build tester to tier-2. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D163158
2022-11-26 16:22:29 +00:00
Mark Banner e59ef8d6fd Bug 1801283 - Fix eslint-build tester running from cron, and make sure it doesn't run at other times. r=releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D162385
2022-11-24 16:18:14 +00:00
Cristian Tuns 1e7840b129 Backed out changeset cbbd3bc4d731 (bug 1801283) as requested by Standard8. CLOSED TREE 2022-11-24 03:51:42 -05:00
Mark Banner ac16fdb8c0 Bug 1801283 - Fix eslint-build tester running from cron, and make sure it doesn't run at other times. r=releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D162385
2022-11-23 23:21:46 +00:00
Nick Alexander 9e831a03d2 Bug 1666491 - Add a eslint-build tester (tier 3) that depends on xpt artifacts. r=nalexander,releng-reviewers,gbrown
Depends on D161641

Differential Revision: https://phabricator.services.mozilla.com/D162072
2022-11-17 10:57:41 +00:00
Makoto Kato 680803f101 Bug 1800169 - Add Java and Kotlin files for rejected-words linter. r=linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D161861
2022-11-14 14:47:28 +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
Mark Banner 2e9d0e6771 Bug 1798727 - Extend the rejected-words linter to cover idl and webidl files as well. r=linter-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D161049
2022-11-03 13:46:09 +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
Tom Ritter 8de303c52d Bug 1794594: Remove codeql builds r=freddyb,firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D159433
2022-10-17 15:02:39 +00:00
Julien Cristau a800a89c73 Bug 1793583 - trigger eslint and other linters when changing *.mjs files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D158564
2022-10-04 11:47:06 +00:00
Brenden Hyde 334872c806 Bug 1649987 - Begin overhaul of artifact retention tactics. r=jmaher
Amend: Make comment about potential for logs expiring earlier than task.

Differential Revision: https://phabricator.services.mozilla.com/D156131
2022-08-31 22:56:10 +00:00
Nicolas Chevobbe ddfedb1d6e Bug 1787508 - Fix command for devtools tests. r=Standard8
Moving the comments outside of the `command` entry as they were preventing the
command to be executed since the command lines are then turned into a single line,
and the leading `#` character was commenting out the whole command.

Differential Revision: https://phabricator.services.mozilla.com/D155712
2022-08-30 16:08:56 +00:00
Cosmin Sabou 3a931cf8ec Backed out changeset 925838f86a80 (bug 1649987) for causing Bug 1787098. a=backout 2022-08-25 07:15:21 +03:00
Brenden Hyde b7ec40b947 Bug 1649987 - unify approach to artifact expiry by removing hard-coded days. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D155401
2022-08-24 16:11:05 +00:00
Henrik Skupin 333afece9f Bug 1785993 - [puppeteer] Drop puppeteer test job for non-Fission. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D155223
2022-08-22 19:30:43 +00:00
Michelle Goossens d94278f76b Bug 1780109 - GCP migration cleanup, set the default instead and use exceptions for tests r=ahal,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D152548
2022-07-22 18:12:50 +00:00
Michelle Goossens 056fe6235d Bug 1780106 - Migrate source tests from AWS to GCP r=ahal,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D152448
2022-07-21 21:50:16 +00:00
Barret Rennie cfd0ca6d9e Bug 1779950 - Keep FxMS test corpus up-to-date for make-schemas.py r=nalexander
The fxms schema job has been updated with a script that writes out the test
corpus for the test. This means we no longer need to keep these JSON files in
tree, since the test will automatically generate them.

Differential Revision: https://phabricator.services.mozilla.com/D151985
2022-07-21 00:47:46 +00:00
Mike Hommey 0cbf56a774 Bug 1762037 - Switch mozharness tox config to python 3.9. r=ahal
Also remove the unused test environments from the tox config.

Differential Revision: https://phabricator.services.mozilla.com/D152247
2022-07-20 20:31:14 +00:00
Barret Rennie 2ee2ba082a Bug 1778368 - Add Python jsonschema tests for FxMS schema r=dmose
To ensure that we don't ship a schema that breaks Experimenter, we now have
in-tree tests that validate FxMS messages against our schema using the same
JSON Schema evaluator (python-jsonchema).

Our test corpus is the same as test_PanelTestProvider.js. We cannot have
PanelTestProvider.jsm fetch the messages from the JSON due to fetch() not being
supported in the newtab npm tests.

Differential Revision: https://phabricator.services.mozilla.com/D151169
2022-07-09 01:17:05 +00:00
Mark Banner aa392632aa Bug 1762571 - Use existing node_modules bundles for devtools tests. r=marco
The eslint test already has these setup and uses them rather than running npm install each time.

Differential Revision: https://phabricator.services.mozilla.com/D147174
2022-07-07 22:09:00 +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
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 a8c4b34efc Bug 1762571 - Use existing node_modules bundles for devtools tests. r=marco
The eslint test already has these setup and uses them rather than running npm install each time.

Differential Revision: https://phabricator.services.mozilla.com/D147174
2022-06-30 13:23:24 +00: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
Barret Rennie edfd11a38c Bug 1771073 - Correct FxMS features and keep them up to date with tests r=dmose,pdahiya
The Nimbus Features corresponding to FxMS messaging surfaces are actually
intended to map to FxMS message groups, which can accept *any* FxMS message.
The features have been updated with schemas that accept any FxMS message.

As part of this, all FxMS schemas have been updated with an `$id` so that they
can be bundled into feature schemas and have their internal `$ref`s work.
(Otherwise, a `$ref` would be relative to the top-level schema instead of the
sub-schema).

Schemas for individual message types are no longer exposed as resource:// URIs,
except in tests, as indivual schemas are no longer required at runtime.

Additionally, each FxMS schema has had its `template` field become required and
requires a constant value for that schema (e.g., Spotlight requires a template
value of "spotlight").

A test has been added to ensure that if any of the messaging surfaces schemas
change that the feature schemas are also updated. The feature schemas can be
regenerated via:

```
cd ./browser/components/newtab/content-src/asrouter/schemas
../../../../../../mach make-schemas.py
```

Differential Revision: https://phabricator.services.mozilla.com/D147332
2022-06-29 23:01:37 +00:00
Tom Ritter 95581da879 Bug 1772198 - Add a lint job that validates moz.yaml files r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D149307
2022-06-24 20:07:08 +00:00
Mike Hommey 662b0ed7ec 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 dad372ec33 Bug 1772277 - Increase timeout for the rust vendor lint. r=firefox-build-system-reviewers,andi
In some rare cases, mercurial clone takes too long and the remaining
time is not enough to run the lint.

Differential Revision: https://phabricator.services.mozilla.com/D148230
2022-06-03 07:41:03 +00:00
Mike Hommey c88be1e316 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 b11cccf425 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
Joel Maher ab1727d3e3 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 17:41:03 +00:00
Butkovits Atila 8a2fe790ec Backed out changeset 1ce55e10b927 (bug 1762991) for causing jit failures. CLOSED TREE 2022-05-10 09:41:32 +03:00
Joel Maher f33bac2082 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
updated patch for android_hardware_unittests.py, asking for a review- please look at the interdiff to see recent changes.

Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 00:41:01 +00:00
Cristian Tuns 9462119251 Backed out changeset 60dcc095f627 (bug 1762991) for causing multiple failures (exit status 2). CLOSED TREE 2022-05-06 14:34:10 -04:00
Joel Maher 8e2741c219 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-06 15:01:22 +00:00
Mark Banner aab0a0ff9c Bug 1767479 - Copy the staged node_modules for eslint-plugin-mozilla when running ESLint on CI to ensure the node task runs correctly. r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D145347
2022-05-03 19:41:02 +00:00
Mike Hommey 56dd1d6854 Bug 1764449 - Run source-test-python-mach tasks on changes to python/sites/*. r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D143548
2022-04-15 04:24:57 +00:00
Luca Greco 194904f564 Bug 1749064 - Add WebExtensions Python Subsuite to TC config. r=taskgraph-reviewers,robwu,jmaher
Depends on D135549

Differential Revision: https://phabricator.services.mozilla.com/D141725
2022-03-28 19:00:17 +00:00
Sebastian Hengst 484526bb78 Bug 1761760 - run 'Bugzilla' task for backstop pushes on autoland and as tier 1. r=jmaher DONTBUILD
See bug 1761441. The 'Bugzilla' task generates artifacts containing meta
information about files like a mapping of source files to bugzilla components.

It ran on mozilla-central which had the disadvantage that failures only got
detected after a merge of autoland to mozilla-central. This also broke
searchfox indexing.

The tier gets changed from 2 to 1 to get issues resolved by backout.

Differential Revision: https://phabricator.services.mozilla.com/D142210
2022-03-28 16:59:24 +00:00
Julian Descottes 4a306cf223 Bug 1758301 - devtools-bundle task times out when a hg clone happens r=jmaher
hg clone takes around 10mn so a task timeout of 600s will intermittently lead to timeouts

Differential Revision: https://phabricator.services.mozilla.com/D140458
2022-03-08 14:39:23 +00:00
Julian Descottes bf928e0f78 Bug 1755434 - [devtools] Add job to check devtools bundles don't need to be regenerated r=jmaher
depends on D139737

Differential Revision: https://phabricator.services.mozilla.com/D139738
2022-03-01 19:55:40 +00:00
Chris Peterson 4c1f824528 Bug 1756504 - Remove cpp-virtual-final linter, a minor style check that doesn't diagnose real bugs. r=firefox-static-analysis-reviewers,sylvestre
In bug 1436263, I added a cpp-virtual-final.yml linter to warn about virtual function declarations that included more than one virtual function specifier `virtual`, `final`, or `override`.

I think we should remove this linter now because:

* It's just a style check and doesn't diagnose a real bug. Including more than one virtual function specifier (`virtual`, `final`, or `override`) is harmless and unambiguous, just unnecessary extra code.
* It has caused some engineer frustration because this style check caused their changeset to be backed out of autoland. Backing out and fixing these style issues are not a good use of sheriffs' or engineers' time.
* It doesn't catch all virtual/final/override style issues because:
  * It can't analyze virtual function definitions that span multiple lines.
  * It doesn't check for `virtual void Foo() override` because  there are over 6000 cases already, so our code will never follow this style check consistently.

Differential Revision: https://phabricator.services.mozilla.com/D139454
2022-02-24 02:14:39 +00:00
Thomas Wisniewski 6e59fe82c1 Bug 1715900 - Add a mach test-interventions command for testing webcompat interventions; r=jgraham,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138384
2022-02-15 15:07:18 +00:00
Butkovits Atila 298b987a56 Backed out 3 changesets (bug 1715900) for causing Python failures. CLOSED TREE
Backed out changeset c1bad2dbd960 (bug 1715900)
Backed out changeset 2355ea418b97 (bug 1715900)
Backed out changeset 11c95163a2f6 (bug 1715900)
2022-02-11 20:41:49 +02:00
Thomas Wisniewski 10326d782c Bug 1715900 - Add a mach test-interventions command for testing webcompat interventions; r=jgraham,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D138384
2022-02-11 17:27:44 +00:00
Mitchell Hentges 9fcb7f5716 Bug 1754241: Fix `mozlint-android-lints` not checking any files r=ahal
Explicitly specify that the linter should run on all files (`*`), to
circumvent bug 1753701's behaviour of defaulting to VCS-changed files.

Differential Revision: https://phabricator.services.mozilla.com/D138173
2022-02-10 16:22:07 +00:00
Mitchell Hentges 951485daa3 Bug 1753701: Always default to `--outgoing`/`--workdir` in `./mach lint` r=ahal
Tweaks `./mach lint` behaviour to always fall back to only linting files
that have changed according to VCS - previously, this only happened if
no linter was provided.

Adjusts "am I at $topsrcdir" check to use `pathlib` to avoid mismatches
due to inconsistent capitalization or slash direction.

Updates CI references to explicitly provide `*` as the path to avoid
the only-lint-files-changed restriction.

Differential Revision: https://phabricator.services.mozilla.com/D137870
2022-02-04 21:48:59 +00:00
Dan Mosedale 164216f79b Bug 1612986 - add newtab mocha code coverage info, r=andreio,marco
Differential Revision: https://phabricator.services.mozilla.com/D135525
2022-01-31 23:57:21 +00:00
ahochheiden c5599e009c Bug 1750638 - Update the mozversioncontrol test CI job to run also run on Mac and Windows r=firefox-build-system-reviewers,mhentges
The platform(s) were not specified, and it seems when that is the case that
it will only run on linux by default. The platforms are now explicitly
set to include Windows, Linux, and Mac.

Differential Revision: https://phabricator.services.mozilla.com/D136214
2022-01-28 17:04:33 +00:00
Andrew Halberstadt 184234a08b Bug 1751050 - Add a test to ensure params under 'taskcluster/test/params' aren't broken, r=releng-reviewers,aki
This will ensure we don't accidentally cause bustage to graph generation with
any of the parameters checked into `taskcluster/test/params`.

This was previously being (sort of) tested by the `tgdiff` task. Now that this
test exists, we no longer need to rely on it.

I removed 'always-target' from the task since this now takes ~25 min to run and
which is the new bottleneck for reviewbot turn around times.

Differential Revision: https://phabricator.services.mozilla.com/D136514
2022-01-21 15:45:02 +00:00
Julian Descottes f9ada3fdec Bug 1749266 - [remote] Increase timeout for puppeteer tasks to 3600 seconds r=jmaher,whimboo
The test itself takes around 25 minutes. If the task hits the clone step, it will take an additional 10minutes.
Note that there is also a slow clone issue where clone can take between 15 and 30 mn.

Differential Revision: https://phabricator.services.mozilla.com/D135476
2022-01-10 15:29:25 +00:00
Joel Maher 114ba628fb Bug 1749043 - perfdocs to upload artifact in .diff format. r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D135417
2022-01-10 14:49:30 +00:00
Geoff Brown 24faeef61e Bug 1748020 - Stop running test-info(fission); r=releng-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D134882
2022-01-03 15:06:04 +00:00
Sylvestre Ledru 5a82675956 Bug 1743088 - Mozlint/trojan-source: enable it on the whole code base r=linter-reviewers,ahal DONTBUILD
Depends on D132235

Differential Revision: https://phabricator.services.mozilla.com/D132236
2021-12-01 15:34:58 +00:00
Agi Sferro 9ce9bd86e7 Bug 1740358 - Use Java JDK from Adoptium in CI. r=aki
Differential Revision: https://phabricator.services.mozilla.com/D131928
2021-11-30 16:11:00 +00:00
Sylvestre Ledru a1af8639c2 Bug 1738988 - mozlint: run trojan-source in the CI r=linter-reviewers,ahal DONTBUILD
Depends on D131086

Differential Revision: https://phabricator.services.mozilla.com/D131087
2021-11-19 08:37:29 +00:00
Henrik Skupin d3c1ad40a8 Bug 1734354 - [puppeteer] Bump Puppeteer (Fission job) to Tier 1. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131479
2021-11-18 10:39:18 +00:00
Andi-Bogdan Postelnicu 80fddabd67 Bug 1738598 - sunset Coverity in Firefox.
Differential Revision: https://phabricator.services.mozilla.com/D129779
2021-10-31 17:18:02 +00:00
Michelle Goossens 8a15b54b15 Bug 1733684 - Move the win10-64-source jobs over to the new Win10 2004 Azure workers r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D128295
2021-10-27 11:33:17 +00:00
Cosmin Sabou 770ddc2d26 Backed out changeset 3417336ac329 (bug 1733684) for causing windows startup failures and blocking nightlies. a=backout 2021-10-17 04:37:21 +03:00
Michelle Goossens cc43051aeb Bug 1733684 - Move the win10-64-source jobs over to the new Win10 2004 Azure workers r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D128295
2021-10-16 14:03:52 +00:00
Agi Sferro 2bd64785fc Bug 1571899 - Use google-java-format via spotless to enforce Java formatting. r=ahal,owlish
This change adds a new lint `android-format` which enforces formatting of Java
code using google-java-format.

To run the lint simply run:

./mach lint -l android-format

This command also support automatically fixing all errors running by adding
--fix:

./mach lint -l android-format --fix

This change also removes all the formatting-related checkstyle checks which are
now implicitly enforced by the formatter.

Differential Revision: https://phabricator.services.mozilla.com/D127734
2021-10-11 18:11:55 +00:00
Henrik Skupin 6553b9b08f Bug 1601245 - [remote] Enable Puppeteer and CDP browser-chrome mochitests for Fission. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127524
2021-10-06 04:30:27 +00:00
Andrew Halberstadt 040374367a Bug 1734201 - [ci] Add 'code-review' attribute to tgdiff task, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D127570
2021-10-05 18:19:05 +00:00
Andrew Halberstadt 95449daa6d Bug 1732723 - Rename "taskgraph" Python module to "gecko_taskgraph". r=jmaher
For a long time two copies of the 'taskgraph' module have existed in parallel.
We've attempted to keep them in sync, but over time they have diverged and the
maintenance burden has increased.

In order to reduce this burden, we'd like to re-join the two code bases. The
canonical repo will be the one that lives outside of mozilla-central, and this
module will depend on it. Since they both have the same module name (taskgraph)
we need to rename the version in mozilla-central to avoid collisions.

Other consumers of 'taskgraph' (like mobile repos) have standardized on
'<project>_taskgraph' as their module names. So replicating that here as well.

Differential Revision: https://phabricator.services.mozilla.com/D127118
2021-09-30 09:50:08 -04:00
Joel Maher e9e45c840b Bug 1733705 - mozbuild test migrate from r7 -> r8. r=releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D127331
2021-10-01 22:19:57 +00:00
Andi-Bogdan Postelnicu e2cab5c39c Bug 1731542 - remove `infer` from our static-analysis pipeline. r=static-analysis-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D126070
2021-09-20 12:47:44 +00:00
Andrew Halberstadt a3df98cacf Bug 1731178 - [taskgraph] Explicitly set base revision in tgdiff task, r=taskgraph-reviewers,bhearsum
Since all commits on non-try branches are public, vcs.base_ref was returning
the current revision each time and the diff task was always diffing against the
same revision twice.

By using 'json-automationrelevance' to determine the parent push, we can be
sure we're always diffing against the proper revision.

Depends on D125974

Differential Revision: https://phabricator.services.mozilla.com/D125975
2021-09-17 16:07:17 +00:00
Andrew Halberstadt 9a90bbdfe4 Bug 1708189 - Add a task that uploads diffs of CI configuration changes, r=taskgraph-reviewers,aki
For now this will only upload differences in tasks added / removed, until we
can figure out a way to remove ambient diffs from the bodies of the tasks (e.g
timestamps, revisions, etc).

Depends on D125866

Differential Revision: https://phabricator.services.mozilla.com/D125867
2021-09-16 19:23:02 +00:00
Andrew Halberstadt ced89bafdb Bug 1730255 - [ci] Don't 'always-target' Python tests on MacOS, r=taskgraph-reviewers,jmaher
We set always-target: true for Python unittest tasks. This means they show up on every push (when appropriate files are modified). The reasoning behind this is that they run so fast anyway, and if you modify the relevant code then you almost always want to see the unittests for said code on your try pushes.

However on MacOS, the pool is limited. Given the differences between Linux and Mac for most Python unittests are likely extremely small, I don't think the cost of bogging down the Mac pool outweighs the benefits here.

Differential Revision: https://phabricator.services.mozilla.com/D125281
2021-09-10 21:03:19 +00:00
Agi Sferro 5675e00bd6 Bug 1727438 - Upgrade to Gradle 6.9.1. r=nalexander,owlish
This is the last version that doesn't require Java 11, we will upgrade to
Gradle 7 once all components are ready (namely, apilint).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123569
2021-08-31 20:53:09 +00:00
Agi Sferro 8b804e3125 Bug 1727438 - Increase java max heap to 32G. r=nalexander,owlish
Looks like 6G is not enough for an ASAN build when updating the gradle version.
I tried 8G and 16G on try but that's not enough either.

This also:

* Moves the asan job to `b-linux-large` as the `b-linux` builder does not have
  enough memory to run this build.
* Stops running a full build during lints, which is not necessary (and
  sometimes uses more memory than the build runner has, failing the lint).

Differential Revision: https://phabricator.services.mozilla.com/D123970
2021-08-31 20:53:08 +00:00
Andi-Bogdan Postelnicu afeb9e9702 Bug 1725171 - Remove non unified static-analysis test. r=firefox-build-system-reviewers,glandium
Since now we have the hybrid build that is ran on linux64, win64 and macos64 this
has become obsolete.

Differential Revision: https://phabricator.services.mozilla.com/D123850
2021-08-31 06:23:00 +00:00
Cosmin Sabou c9893d3d5f Backed out 5 changesets (bug 1727438) for causing android build bustages. CLOSED TREE
Backed out changeset 66bad7f53820 (bug 1727438)
Backed out changeset e015a4e8b62e (bug 1727438)
Backed out changeset 97a06ad4cbcc (bug 1727438)
Backed out changeset ebb080f68880 (bug 1727438)
Backed out changeset 8d03d49fe3a3 (bug 1727438)
2021-08-31 00:11:19 +03:00
Agi Sferro 78ae1c7c9b Bug 1727438 - Upgrade to Gradle 6.9.1. r=nalexander,owlish
This is the last version that doesn't require Java 11, we will upgrade to
Gradle 7 once all components are ready (namely, apilint).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123569
2021-08-30 19:15:10 +00:00
Butkovits Atila e42d7aa018 Backed out 5 changesets (bug 1727438, bug 1727577) for causing Android bustage. CLOSED TREE
Backed out changeset 552d8919435c (bug 1727577)
Backed out changeset 59d1a463178b (bug 1727438)
Backed out changeset 8cba5f574196 (bug 1727438)
Backed out changeset 00d32a3af979 (bug 1727438)
Backed out changeset efda82445d85 (bug 1727438)
2021-08-26 03:33:58 +03:00
Agi Sferro 16fe3c1b74 Bug 1727438 - Upgrade to Gradle 6.9.1. r=nalexander
This is the last version that doesn't require Java 11, we will upgrade to
Gradle 7 once all components are ready (namely, apilint).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123569
2021-08-25 21:02:17 +00:00
Andi-Bogdan Postelnicu fec6ae5550 Bug 1726623 - add missing dependencies for source-test clang-format task. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D123416
2021-08-24 07:51:29 +00:00
Mike Hommey 90945bd8c8 Bug 1726117 - Upgrade tasks using the debian10-amd64-build image to the debian11-amd64-build image. r=taskgraph-reviewers,andi,bhearsum
And remove the former.

Differential Revision: https://phabricator.services.mozilla.com/D122835
2021-08-19 04:40:37 +00:00
Iulian Moraru f6115a7b6d Backed out 2 changesets (bug 1726117) for causing build bustages. CLOSED TREE
Backed out changeset b283bf726fae (bug 1726117)
Backed out changeset df484aca0256 (bug 1726117)
2021-08-18 11:06:11 +03:00
Mike Hommey ce595eec59 Bug 1726117 - Upgrade tasks using the debian10-amd64-build image to the debian11-amd64-build image. r=taskgraph-reviewers,andi,bhearsum
And remove the former.

Differential Revision: https://phabricator.services.mozilla.com/D122835
2021-08-18 05:46:26 +00:00
Mike Hommey dc77b2221e Bug 1726100 - Add missing wasi sysroot dependencies . CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D122925
2021-08-18 02:09:09 +00:00
Mike Hommey 6474710c7a Bug 1724522 - Split wasi-sysroot in two separate toolchains. r=firefox-build-system-reviewers,mhentges
The wasi-sysroot toolchain contains both a sysroot for wasi and a
compiler-rt for clang. That makes it impractical to use as a
bootstrapped sysroot for wasm32-wasi builds of Spidermonkey.

We thus split the toolchain in two, one for the compiler-rt and one
for the sysroot. Ideally, the compiler-rt one would avoid building
clang/llvm the same way the sysroot one does, but that leads to
a case of chicken-and-egg, because the compiler-rt is needed to build
the clang toolchain. Eventually, the clang build would be split from
the addition of the compiler-rt, but we're not there yet.

Differential Revision: https://phabricator.services.mozilla.com/D122402
2021-08-13 07:07:45 +00:00
Mike Hommey 6a6c2f5079 Bug 1720828 - Switch wasm sandboxing Linux x64 and Mac x64 builds from lucet to wasm2c. r=shravanrn,firefox-build-system-reviewers,andi
Still allow to explicitly opt-in lucetc with a non-empty LUCETC value.

Differential Revision: https://phabricator.services.mozilla.com/D120668
2021-08-04 21:37:45 +00:00
Alexandru Michis d0864df559 Backed out changeset 93c0dc15cc3b (bug 1720828) for causing xpcshell failures in test_hunspell.js 2021-07-30 19:21:46 +03:00
Mike Hommey c07cacf0ad Bug 1720828 - Switch wasm sandboxing Linux x64 and Mac x64 builds from lucet to wasm2c. r=shravanrn,firefox-build-system-reviewers,andi
Still allow to explicitly opt-in lucetc with a non-empty LUCETC value.

Differential Revision: https://phabricator.services.mozilla.com/D120668
2021-07-30 12:03:52 +00:00
Mark Banner ad83deac79 Bug 1722691 - Enable ESLint in CI to report warnings when required. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D121074
2021-07-28 11:30:28 +00:00
Tom Ritter a998b4c08a Bug 1720928: Bump the codeql tools r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D120090
2021-07-19 14:20:59 +00:00
Mike Hommey 7b9151399e Bug 1720625 - Use a sysroot for the host part of the build on CI. r=firefox-build-system-reviewers,andi
Followup for bug 1719229 ; some builds have not been tweaked to use the
x86_64-linux-gnu sysroot.

In a few cases, this also use a sysroot for the target part when that
wasn't already the case.

Differential Revision: https://phabricator.services.mozilla.com/D119957
2021-07-15 20:55:05 +00:00
Mike Hommey 162f9b6800 Bug 1719229 - Rename the bootstrappable sysroot toolchains. r=firefox-build-system-reviewers,andi
In cross-compilation setups (x86_64 host, i686 or aarch64 target), we're
going to need two sysroots. Obviously, we need the sysroot paths to be
different in that case, so the sysroot path themselves need to contain
some distinctive name, and we'll use the `target.toolchain` name for
that (the target triplet with the vendor/machine stripped out).

Because the path name needs to be reflected in the artifact name as well
as the toolchain name, we also change them.

And because the current prefix in the toolchain name is now redundant
with the suffix, we remove the prefix, and allow the bootstrapping
mechanism to try toolchains without the prefix.

Differential Revision: https://phabricator.services.mozilla.com/D119846
2021-07-14 08:54:43 +00:00
Aaron Klotz b1e6df55c3 Bug 1715650: Add linter for detecting COM initialization; r=linter-reviewers,andi
This patch adds a new linter that will error when new code mentions any one of
the following strings:

* `CoInitialize`;
* `CoInitializeEx`;
* `OleInitialize`;
* `RoInitialize`;
* `CoUninitialize`;
* `OleUninitialize`; and
* `RoUninitialize`.

Since I don't care about context, and just want to flag code containing these
names, I opted for a `regex` linter.

Yes, the regex does match a few strings beyond the above list (in particular, it
also matches additional strings that end with an `Ex` suffix), but since
functions with those names don't exist anyway (and would be errors in their own
right), I am not concerned about it.

All existing occurrences have been added to the exclusion list, with the
intent of removing most of them over time.

Differential Revision: https://phabricator.services.mozilla.com/D119129
2021-07-06 14:05:42 +00:00
Mitchell Hentges 35b16fdf28 Bug 1712133: Inline `testing/mozbase/packages.txt` contents r=ahal
The `mozbase` modules were being unconditionally added to the
`sys.path` regardless of the Mach command being run, so there isn't
much value keeping them in a separate file. Besides, all other
source module paths are described in `common_virtualenv_packages`,
why is `mozbase` special?

In the future, we're going to want to make improvements here (such as:
there's a difference between informing mach of first-party code
versus defining which third_party vendored packages should be in scope,
and that workflow difference should be represented in-code).
It's useful to peel out the existing, less useful abstraction before
we can build a stronger one.

Differential Revision: https://phabricator.services.mozilla.com/D117711
2021-06-17 14:58:17 +00:00
Dan Mosedale 8ac4b278af Bug 1690377 - Upgrade Node 10 toolchain to Node 12, r=Standard8,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D117606
2021-06-15 19:33:12 +00:00