Regression range finder for Mozilla nightly builds
Перейти к файлу
John Diamond 0c5a8125a5
gui: replace usage of stdlib pipes library with shlex (bug 1914478) (#1846)
Python 3.13 removed the already deprecated "pipes" module from the
standard library.
Some files were using the "quote" function from pipes, which prior to
3.13 was a re-export of a function with the same name in "shlex".

This change imports the shlex module directly.

https://github.com/python/cpython/blob/3.12/Lib/pipes.py#L66
https://docs.python.org/3/whatsnew/3.13.html
2024-11-06 10:45:36 -05:00
.github workflows: update various GitHub Actions (bug 1917091) (#1811) 2024-09-06 10:57:59 -04:00
bin workflows: add virus scan check (bug 1881777) (#1633) 2024-04-15 10:59:32 -04:00
docs documentation: add info about cmdargs (#1862) 2024-10-31 11:38:01 -04:00
gui gui: replace usage of stdlib pipes library with shlex (bug 1914478) (#1846) 2024-11-06 10:45:36 -05:00
mozregression gui: replace usage of stdlib pipes library with shlex (bug 1914478) (#1846) 2024-11-06 10:45:36 -05:00
requirements build(deps): bump configobj from 5.0.8 to 5.0.9 (#1828) 2024-10-03 14:13:45 -04:00
tests cli, fetch_configs, gui: use arch to construct build regex (bug 1917418) (#1812) 2024-10-03 14:10:23 -04:00
.coveragerc create bisector and main modules from regression 2014-12-26 10:20:28 +01:00
.coveralls.yml Fix GitHub actions for real (#898) 2021-08-09 10:02:11 -04:00
.gitignore gui: package signing changes (bug 1810744) (#1324) 2023-06-19 15:31:45 -04:00
.linter-files Linter and requirements updates (#575) 2020-03-27 16:17:37 -04:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct (#519) 2019-03-28 07:37:05 -04:00
LICENSE Bug 1341976 - Clarify that mozregression is licensed under the MPL2 (#608) 2020-04-16 09:53:35 -04:00
MANIFEST.in gui: upgrades, enhancements, and deprecations (#1092) 2022-08-22 16:28:27 -04:00
README.md docs: update Python minimum version (#1490) 2023-10-05 08:16:57 -04:00
pyproject.toml pyproject: fully migrate to pyproject.toml from setup.py (bug 1917431) (#1813) 2024-09-20 09:11:26 -04:00
setup.cfg Get version from scm (#466) 2020-04-14 15:56:20 -04:00
setup.py pyproject: fully migrate to pyproject.toml from setup.py (bug 1917431) (#1813) 2024-09-20 09:11:26 -04:00

README.md

mozregression

mozregression is an interactive regression rangefinder for quickly tracking down the source of bugs in Mozilla nightly and integration builds.

You can start using mozregression today:

Status

Latest Version License

Build status:

  • Linux: Coverage Status

For more information see:

https://mozilla.github.io/mozregression/

Contact

You can chat with the mozregression developers on Mozilla's instance of Matrix: https://chat.mozilla.org/#/room/#mozregression:mozilla.org

Issue Tracking

Found a problem with mozregression? Have a feature request? We track bugs on bugzilla. You can file a new bug here.

Building And Developing mozregression

Want to hack on mozregression ? Cool!

Installing dependencies

To make setup more deterministic, we have provided requirements files to use a known-working set of python dependencies. From your mozregression checkout, you can install these inside a virtual development environment.

After checking out the mozregression repository from GitHub, this is a two step process:

  1. Be sure you are using Python 3.8 or above: earlier versions are not supported (if you are not sure, run python --version or python3 --version on the command line).

  2. From inside your mozregression checkout, create a virtual environment, activate it, and install the dependencies. The instructions are slightly different depending on whether you are using Windows or Linux/MacOS.

On Windows:

python3 -m venv venv
venv\Scripts\activate
pip install -r requirements\requirements-3.9-Windows.txt
pip install -e .

On Linux:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements/requirements-3.9-Linux.txt
pip install -e .

On macOS:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements/requirements-3.9-macOS.txt
pip install -e .

NOTE: You should replace the Python version with the one that matches with the virtual environment.

Hacking on mozregression

After running the above commands, you should be able to run the command-line version of mozregression as normal (e.g. mozregression --help) inside the virtual environment. If you wish to try running the GUI, use the provided helper script:

python gui/build.py run

To run the unit tests for the console version:

pytest tests

For the GUI version:

python gui/build.py test

Before submitting a pull request, please lint your code for errors and formatting (we use black, flake8 and isort)

./bin/lint-check.sh

If it turns up errors, try using the lint-fix.sh script to fix any errors which can be addressed automatically:

./bin/lint-fix.sh

Making a release

Create a new GitHub release and give it a tag name identical to the version number you want (e.g. 4.0.20). CI should automatically upload new versions of the GUI applications to the release and to TestPyPI and PyPI.

Follow the following conventions for pre-releases:

  • For development releases, tags should be appended with .devN, starting with N=0. For example, 6.2.1.dev0.
  • For alpha, beta, or release candidates, tags should be appended with aN, bN, or rcN, starting with N=0. For example, 6.2.1a0.dev4, 6.2.1rc2, etc...

For more info, see PEP 440.

Signing and notarizing macOS releases

Uploading the signed artifacts is a manual process at this time. To sign and notarize a macOS release, follow these steps:

  • Copy the signing manifest output from the build job.
  • Create a pull request to update signing-manifests/mozregression-macOS.yml in the adhoc-signing repo with those changes.
  • Wait for pull request to be merged, and the signing task to finish.
  • After the signing task is finished, download mozregression-gui-app-bundle.tar.gz and extract it in gui/dist.
  • Run ./bin/dmgbuild.
  • Upload new dmg artifact (gui/dist/mozregression-gui.dmg) to the corresponding release.