Commit Graph
89 Commits
Author SHA1 Message Date
Sylvestre Ledru 782f3d241d Bug 2023419 - Remove Emacs/Vim modelines from python/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287865
2026-04-03 07:44:44 +00:00
Alexandru Marc a0233d91a7 Revert "Bug 2023419 - Remove Emacs/Vim modelines from python/ r=emilio" for causing py failures @ test_configure
This reverts commit 4d755fe4de.

Revert "Bug 2023419 - Remove Emacs/Vim modelines from parser/ r=emilio"

This reverts commit e2035c4a10.

Revert "Bug 2023419 - Remove Emacs/Vim modelines from other-licenses/ r=emilio"

This reverts commit 1f7da58772.
2026-03-17 12:43:27 +00:00
Sylvestre Ledru 4d755fe4de Bug 2023419 - Remove Emacs/Vim modelines from python/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287865
2026-03-17 12:08:48 +00:00
Joel Maher 93a74ef1b8 Bug 1869430 - Batch 19.2 convert python unittest .ini -> .toml. r=gbrown,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D196124
2023-12-12 17:40:03 +00:00
serge-sans-paille a2fd5b4397 Bug 1865878 - Document native third party sources vendoring r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D194250
2023-11-23 05:37:39 +00:00
Sebastian Hengst 2906bad84f Bug 1806642 - update in-tree references to 'Lint and Formatting' bugzilla component. r=Standard8
Move from 'Firefox Build System to 'Developer Infrastructure' was in
bug 1784867 on the server side.

Differential Revision: https://phabricator.services.mozilla.com/D165158
2022-12-21 14:38:47 +00:00
Mitchell Hentges eb3080a220 Bug 1724274: Move virtualenv dependency manifests to python/virtualenvs r=ahal
This is needed for a few reasons:
* All mach commands can use virtualenvs, not just `build`-related
  commands, so the files don't make sense to be in `build/`.
* When locking is added, more files associated with virtualenvs will be
  added, and this will change will ease the related directory structure
  setup.
* This removes the need for a redundant "_virtualenv_packages" keyword
  as part of the manifest filenames.

Differential Revision: https://phabricator.services.mozilla.com/D140382
2022-03-24 14:04:34 +00:00
Nick Alexander 03fdf3b052 Bug 1709697 - Allow to repackage into MSIX. r=firefox-build-system-reviewers,mhowell,bhearsum,glandium
Differential Revision: https://phabricator.services.mozilla.com/D116180
2021-08-05 02:58:14 +00:00
Narcis Beleuzu e80ba75c3b Backed out 9 changesets (bug 1724030, bug 1721864, bug 1722980, bug 1712164, bug 1720190, bug 1712328, bug 1709697) for Windows repack bustages. CLOSED TREE
Backed out changeset bc7dff1c6f2c (bug 1724030)
Backed out changeset 9520d11c1ff4 (bug 1722980)
Backed out changeset 5d9ef490612f (bug 1712328)
Backed out changeset aaec04ed5ecb (bug 1720190)
Backed out changeset 3c5fbac7cc7f (bug 1721864)
Backed out changeset 3c1bccc04fb8 (bug 1709697)
Backed out changeset 6293b6ed5695 (bug 1709697)
Backed out changeset d824b2347ffd (bug 1709697)
Backed out changeset 888359c1dcc5 (bug 1712164)
2021-08-05 04:35:18 +03:00
Nick Alexander 6427dd1cdc Bug 1709697 - Allow to repackage into MSIX. r=firefox-build-system-reviewers,mhowell,bhearsum,glandium
Differential Revision: https://phabricator.services.mozilla.com/D116180
2021-08-04 13:54:35 +00:00
Ricky Stewart 31b8ca9716 Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara 612312a64c Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart 065d2eb893 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 95b44c982f Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 43baed3c18 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Ricky Stewart 3dc94d1281 Bug 925350 - Remove dumbmake r=nalexander
After bug 1651806, we're trying to caution people against running `mach build $A_SPECIFIC_TARGET` because it's not generally supported. `dumbmake` is a piece of infrastructure that attempts to make this use case a little bit more useable, but it was always supposed to be a stopgap. There doesn't seem to be a need for it any more.

Differential Revision: https://phabricator.services.mozilla.com/D83136
2020-07-10 18:12:07 +00:00
Tarek Ziadé 60c990d846 Bug 1644912 - remove python.ini r=sparky
We're using a custom test runner.

Differential Revision: https://phabricator.services.mozilla.com/D79247
2020-06-11 12:19:59 +00:00
Ricky Stewart 1996f482a4 Bug 1635585 - Run compilation/test_warnings.py under Python 3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D73970
2020-05-06 19:36:57 +00:00
Tarek Ziadé 0915cb2f8d Bug 1631596 - Fix the setup step in the browsertime layer r=acreskey
Adds back the setup step and surfaced clobber/install url

Differential Revision: https://phabricator.services.mozilla.com/D71651
2020-04-21 08:26:02 +00:00
Mike Hommey 2dc0842658 Bug 1628200 - Fix config/tests/test_mozbuild_reading.py. r=rstewart
Since the test goes through all moz.build files disregarding DIRS and
the conditions that may disable directories, in some cases, moz.builds
can fail to be evaluated properly because of missing variables in
config.status. This time (because it's not the first), it's
LLVM_DLLTOOL.

After fixing that, it turns out many of the files/directories pointed to
by Files() directives were removed or moved.

While here, make the test script python3-ready.

Differential Revision: https://phabricator.services.mozilla.com/D70157
2020-04-09 00:24:29 +00:00
Tarek Ziadé 387b5e9bf8 Bug 1623321 - Add perftest r=sparky,perftest-reviewers,marionette-reviewers,whimboo,ahal
mach perftest

Differential Revision: https://phabricator.services.mozilla.com/D67342
2020-04-02 13:04:41 +00:00
Edwin Takahashi b77efc0af2 Bug 1581016 - mozpack/copier.py and mozpack/test_copier.py supports python3 r=glandium,rstewart
Change import order.

Enable python3 testing for `test_copier.py`.

In the test methods, ensure the returned file names are decoded as UTF-8 by default.

In the test methods, check for byte-string by default; in python2, this would be treated like the standard string.

Differential Revision: https://phabricator.services.mozilla.com/D55187
2019-12-19 22:00:39 +00:00
Geoff Brown 0bada8d818 Bug 1601076 - Fix some broken BUG_COMPONENTS in moz.build files; r=jmaher
Some of these were obvious typos. Others probably reflect once-correct components
that have been combined, split, or otherwise obsoleted; for these I've tried to
use the component associated with the bugs for recent changes to the affected files.

Differential Revision: https://phabricator.services.mozilla.com/D55756
2019-12-04 13:55:45 +00:00
Andrew Halberstadt 4ddf424fe5 Bug 1594907 - Fix some duplicate URL segments in firefox-source-docs, r=sylvestre
This also moves the 'mach' docs from /python/mach to /mach. The reason being
that 'mach' doesn't really have anything to do with Python other than its
implemented in it.

Differential Revision: https://phabricator.services.mozilla.com/D52253
2019-11-07 23:07:20 +00:00
Mike Hommey 39527a48d7 Bug 1575375 - Always include mozbuild/mozpack tests. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D42757
2019-08-21 03:05:09 +00:00
Mike Hommey 373f6c4471 Bug 1564314 - Move gdbpp back to python/. r=nalexander
Somehow bug 1346025 moved it to third_party/python but... it's not third
party code.

Differential Revision: https://phabricator.services.mozilla.com/D37364
2019-07-11 02:39:31 +00:00
Andreea Pavel ed56904f5a Backed out changeset fa94c9a03e3f (bug 1564314) for linting failures on a CLOSED TREE 2019-07-10 10:12:34 +03:00
Mike Hommey 197f9a7ef2 Bug 1564314 - Move gdbpp back to python/. r=nalexander
Somehow bug 1346025 moved it to third_party/python but... it's not third
party code.

Differential Revision: https://phabricator.services.mozilla.com/D37364
2019-07-09 16:09:14 +00:00
Justin Wood ac676f6155 Bug 1547730 - Set python test annotations to correspond to currently-passing py3 tests r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28122
2019-05-28 14:28:53 +00:00
Sebastian Hengst 829851a762 Bug 1508248 - Update in-tree bugzilla metadata to use 'Firefox Build System :: Mach Core' for mach files r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D12278
2018-11-19 13:35:14 +00:00
Ted Mielczarek ebf84bc4ff bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander
This change adds a prompt to enable build system telemetry as part of
bootstrap. The prompt will only be shown if the build.telemetry config value
is not present, so users will not be prompted again if they have already
opted-in. However, if a user answers 'no' we don't save that value to
the config file because the default is to not send telemetry, so unless
they manually add `telemetry = false` to their config file they will be
prompted again the next time they run bootstrap.

The config value is always written to `~/.mozbuild/machrc` where we store
other Firefox build-related state. A standalone function is used to write
the config file so that we can do so even when running from bootstrap.py
outside of the context of a mach command.

As part of this change a `prompt_yesno` method is added to `BaseBootstrapper`.

Differential Revision: https://phabricator.services.mozilla.com/D9781
2018-11-06 14:19:24 +00:00
Gurzau Raul 1ec5392d84 Backed out changeset dc7924e3ea6b (bug 1483941) for causing bug 1504449. a=backout 2018-11-03 20:41:00 +02:00
Ted Mielczarek 007e4be03f bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander
This change adds a prompt to enable build system telemetry as part of
bootstrap. The prompt will only be shown if the build.telemetry config value
is not present, so users will not be prompted again if they have already
opted-in. However, if a user answers 'no' we don't save that value to
the config file because the default is to not send telemetry, so unless
they manually add `telemetry = false` to their config file they will be
prompted again the next time they run bootstrap.

The config value is always written to `~/.mozbuild/machrc` where we store
other Firefox build-related state. A standalone function is used to write
the config file so that we can do so even when running from bootstrap.py
outside of the context of a mach command.

As part of this change a `prompt_yesno` method is added to `BaseBootstrapper`.

Differential Revision: https://phabricator.services.mozilla.com/D9781
2018-10-31 20:03:53 +00:00
Sebastian Hengst 4124655c70 Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander
MozReview-Commit-ID: 6bs0jkTP6rP
2018-06-20 21:34:40 +03:00
Justin Wood 1700050eb0 Bug 1453274 - Add testing for python/mozrelease/versions.py r=rail
for: taskgraph: Make update tasks support esr60

MozReview-Commit-ID: GUmAq3sBXGB
2018-04-23 12:40:26 -04:00
Dave Hunt 843342adc9 Bug 1447057 - Document policies for using third-party Python packages; r=gps
MozReview-Commit-ID: 8eJt84pEKlv
2018-03-19 17:53:33 +00:00
Sebastian Hengst 9aa364dc2b Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj
MozReview-Commit-ID: 3FrWJ6441pe
2018-03-14 21:44:46 +01:00
Ben Hearsum 626619e7bf bug 1398799: mozharness script to create update verify configs without relying on patcher configs. r=nthomas 2018-02-23 06:00:02 -05:00
Andrew Halberstadt 2370dea7ab Bug 1433974 - Update BUG_COMPONENT for some of the new Testing components, r=jmaher
MozReview-Commit-ID: 7jQnnAhOzEr
2018-01-29 12:57:54 -05:00
Dustin J. Mitchell 924fdd14e9 Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI
2017-10-02 18:22:56 +00:00
Noemi Erli aaef80e91f Backed out 2 changesets (bug 1403519) for bustage on \python\mozbuild\mozbuild\test\frontend\test_reader.py on a CLOSED TREE
Backed out changeset f53f8adcd578 (bug 1403519)
Backed out changeset 5b293bcd3fc7 (bug 1403519)
2018-01-17 07:23:40 +02:00
Dustin J. Mitchell 451e3b63c2 Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI
2017-10-02 18:22:56 +00:00
Margareta Eliza Balazs a773d5e139 Backed out changeset 6d539e4a02bd (bug 1403519) for lint failures on a CLOSED TREE 2018-01-11 22:32:27 +02:00
Dustin J. Mitchell cb2823906c Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI
2017-10-02 18:22:56 +00:00
Zibi Braniecki d5a8009b3a Bug 1411012 - Migrate a small chunk of Privacy pane in Preferences to Fluent. r=mshal,Pike
MozReview-Commit-ID: ahAZCinoui
2017-11-09 12:11:32 -08:00
Andrew Halberstadt d33b8880b0 Bug 1422302 - Create python/mozterm for sharing terminal blessings across modules r=gps
This is a new module that will provide a place to store some common
abstractions around the 'blessings' module. The main entrypoint is:

    from mozterm import Terminal
    term = Terminal()

If blessings is available, this will return a blessings.Terminal()
object. If it isn't available, or something went wrong on import,
this will return a NullTerminal() object, which is a drop-in
replacement that does no formatting.

MozReview-Commit-ID: 6c63svm4tM5
2017-12-04 09:38:24 -05:00
Andrew Halberstadt c12a2cb5ee Bug 1401309 - [mozlint] Remove vcs.py and use mozversioncontrol instead, r=gps
This also migrates the vcs.py test to mozversioncontrol and adds a new task for
it.

MozReview-Commit-ID: 9jTRkjNupVA
2017-09-25 16:30:27 -04:00
Andrew Halberstadt 7bb38413f2 Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted
This commit is a simple 'hg mv' and does not contain any file modifications.

***
Bug 1346025 - Split vendored modules in python/moz.build to third_party/python/moz.build, r=ted

***
Bug 1346025 - Update references to moved python modules, r=ted

MozReview-Commit-ID: A12RnIFtXju
2017-05-25 11:48:03 -04:00
Carsten "Tomcat" Book 813ef1118e Backed out changeset 34b11112f0e3 (bug 1346025) for bustage 2017-06-07 14:38:39 +02:00
Andrew Halberstadt 5edd1cf160 Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted
This commit is a simple 'hg mv' and does not contain any file modifications.

***
Bug 1346025 - Split vendored modules in python/moz.build to third_party/python/moz.build, r=ted

***
Bug 1346025 - Update references to moved python modules, r=ted

MozReview-Commit-ID: A12RnIFtXju
2017-05-25 11:48:03 -04:00