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

256 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 79834575e9
Bump sentry-sdk[flask] from 0.18.0 to 0.19.1 (#1865)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.18.0 to 0.19.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.18.0...0.19.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-19 13:11:36 +02:00
dependabot[bot] c3abd2d392
Bump apispec[yaml] from 3.3.2 to 4.0.0 (#1840)
Bumps [apispec[yaml]](https://github.com/marshmallow-code/apispec) from 3.3.2 to 4.0.0.
- [Release notes](https://github.com/marshmallow-code/apispec/releases)
- [Changelog](https://github.com/marshmallow-code/apispec/blob/dev/CHANGELOG.rst)
- [Commits](https://github.com/marshmallow-code/apispec/compare/3.3.2...4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-04 16:54:09 +02:00
dependabot[bot] 32b639a9e8
Bump sentry-sdk[flask] from 0.17.8 to 0.18.0 (#1837)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.17.8 to 0.18.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.17.8...0.18.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-04 16:53:20 +02:00
Marco Castelluccio 8c4fc2cde3 Remove test ensuring a batch larger than 1000 bugs would fail
Fixes a regression from 6815875c46
2020-10-04 13:27:42 +02:00
Marco Castelluccio 2868fe150e Fix import of the Bugzilla class from the bugzilla libmozdata module
Fixes a regression from 336d96bdd0
2020-10-04 12:57:13 +02:00
Marco Castelluccio 6815875c46 Allow classifying batches of more than 1000 bugs
Since 336d96bdd0, we no longer need to hope we don't
hit the Bugzilla URL limit.
2020-10-04 12:42:18 +02:00
Marco Castelluccio d4c3c6ad07 Relax the type for JobInfo args 2020-10-04 12:41:40 +02:00
Marco Castelluccio 336d96bdd0 Retrieve bugs from Bugzilla in chunks to avoid hitting '414 Request-URI Too Large' 2020-10-04 12:40:30 +02:00
dependabot[bot] c505698cf5
Bump sentry-sdk[flask] from 0.17.6 to 0.17.8 (#1827)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.17.6 to 0.17.8.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.17.6...0.17.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-28 10:58:09 +02:00
Marco Castelluccio 1eb78815fa Lower threshold for considering configurations as equivalent 2020-09-28 01:15:52 +02:00
dependabot[bot] 3f8defbc07
Bump sentry-sdk[flask] from 0.17.4 to 0.17.6 (#1814)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.17.4 to 0.17.6.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.17.4...0.17.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-21 11:41:50 +02:00
dependabot[bot] 8916ed31e1
Bump marshmallow from 3.7.1 to 3.8.0 (#1818)
Bumps [marshmallow](https://github.com/marshmallow-code/marshmallow) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/marshmallow-code/marshmallow/releases)
- [Changelog](https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst)
- [Commits](https://github.com/marshmallow-code/marshmallow/compare/3.7.1...3.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-21 11:41:07 +02:00
dependabot[bot] 0cc896c4e4
Bump rq from 1.5.1 to 1.5.2 (#1804)
Bumps [rq](https://github.com/nvie/rq) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/nvie/rq/releases)
- [Changelog](https://github.com/rq/rq/blob/master/CHANGES.md)
- [Commits](https://github.com/nvie/rq/compare/v1.5.1...v1.5.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 10:55:11 +02:00
dependabot[bot] b4990db9e6
Bump sentry-sdk[flask] from 0.17.3 to 0.17.4 (#1810)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.17.3 to 0.17.4.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.17.3...0.17.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 10:53:38 +02:00
dependabot[bot] 730af2f651
Bump sentry-sdk[flask] from 0.17.1 to 0.17.3 (#1796)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.17.1 to 0.17.3.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.17.1...0.17.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-07 11:17:54 +02:00
dependabot[bot] c0159b1a17
Bump kombu from 5.0.1 to 5.0.2 (#1799)
Bumps [kombu](https://kombu.readthedocs.io) from 5.0.1 to 5.0.2.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-07 11:17:45 +02:00
dependabot[bot] eb85c6aa52
Bump flask-cors from 3.0.8 to 3.0.9 (#1793)
Bumps [flask-cors](https://github.com/corydolphin/flask-cors) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/corydolphin/flask-cors/releases)
- [Changelog](https://github.com/corydolphin/flask-cors/blob/master/CHANGELOG.md)
- [Commits](https://github.com/corydolphin/flask-cors/compare/3.0.8...3.0.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 15:23:46 +02:00
dependabot[bot] 29ff1443cf
Bump sentry-sdk[flask] from 0.17.0 to 0.17.1 (#1792)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.17.0...0.17.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 15:23:35 +02:00
dependabot[bot] 89f7ba0420
Bump apispec[yaml] from 3.3.1 to 3.3.2 (#1789)
Bumps [apispec[yaml]](https://github.com/marshmallow-code/apispec) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/marshmallow-code/apispec/releases)
- [Changelog](https://github.com/marshmallow-code/apispec/blob/dev/CHANGELOG.rst)
- [Commits](https://github.com/marshmallow-code/apispec/compare/3.3.1...3.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-31 15:23:24 +02:00
dependabot[bot] 3eae42595a
Bump flask-apispec from 0.9.0 to 0.10.0 (#1784)
Bumps [flask-apispec](https://github.com/jmcarp/flask-apispec) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/jmcarp/flask-apispec/releases)
- [Changelog](https://github.com/jmcarp/flask-apispec/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/jmcarp/flask-apispec/compare/0.9.0...0.10.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-28 15:33:41 +02:00
Marco Castelluccio 80d2e6262b Fix some new linting errors appearing with the new versions of the linters 2020-08-27 16:19:02 +02:00
Marco Castelluccio ab9c73a5eb Use correct type annotation for mock_repo fixture 2020-08-27 14:23:39 +02:00
dependabot[bot] 2643b0321d
Bump sentry-sdk[flask] from 0.16.3 to 0.17.0 (#1781)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.16.3 to 0.17.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.16.3...0.17.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 12:47:44 +02:00
dependabot[bot] ff577ccf6c
Bump rq from 1.5.0 to 1.5.1 (#1773)
Bumps [rq](https://github.com/nvie/rq) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/nvie/rq/releases)
- [Changelog](https://github.com/rq/rq/blob/master/CHANGES.md)
- [Commits](https://github.com/nvie/rq/compare/v1.5.0...v1.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marco Castelluccio <mcastelluccio@mozilla.com>
2020-08-26 12:45:11 +02:00
dependabot[bot] 062fb78f97
Bump kombu from 5.0.0 to 5.0.1 (#1776)
Bumps [kombu](https://kombu.readthedocs.io) from 5.0.0 to 5.0.1.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 12:44:23 +02:00
dependabot[bot] 156294375c
Bump kombu from 4.6.11 to 5.0.0 (#1754)
Bumps [kombu](https://kombu.readthedocs.io) from 4.6.11 to 5.0.0.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-06 17:18:59 +02:00
Marco Castelluccio 1020206844 Don't fail when loading results that were stored before compression was enabled 2020-08-04 10:58:52 +02:00
Marco Castelluccio bdae61e73e Use orjson in test_schedule_tests to match the production code 2020-08-03 13:58:07 +02:00
dependabot[bot] 7a423cae0d
Bump sentry-sdk[flask] from 0.16.2 to 0.16.3 (#1745)
Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 0.16.2 to 0.16.3.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.16.2...0.16.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 12:20:39 +02:00
Marco Castelluccio 8ca580f836
In the pulse listener, print exceptions with traceback.print_exc (#1740)
Instead of using traceback.print_tb, which fails when an exception is, for example, a IndexError

Fixes #1738
2020-07-30 16:29:30 +02:00
Marco Castelluccio 47114f4f47
Compress results with zstandard when storing them in Redis (#1741)
This allows us to store ten times more results in the Redis cache.

Fixes #1616
2020-07-30 16:11:14 +02:00
Armen Zambrano b18b5d3f3f
Add Sentry to Pulse listener and http service (#1734) 2020-07-27 17:36:37 +02:00
dependabot[bot] 9b03c558e0
Bump sentry-sdk from 0.16.1 to 0.16.2 (#1727)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 0.16.1 to 0.16.2.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGES.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/0.16.1...0.16.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 10:33:58 +02:00
dependabot[bot] 8be71542dc
Bump rq from 1.4.3 to 1.5.0 (#1726)
Bumps [rq](https://github.com/nvie/rq) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/nvie/rq/releases)
- [Changelog](https://github.com/rq/rq/blob/master/CHANGES.md)
- [Commits](https://github.com/nvie/rq/compare/v1.4.3...v1.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 10:33:42 +02:00
Armen Zambrano 1e9877ab38
Submit logged warnings to Sentry (#1722)
Fixes #1721

Sentry by default logs `ERROR` messages as events, however, we would
like to track `WARNING` messages as well.
2020-07-25 00:34:07 +02:00
Marco Castelluccio 694f9fd82b Make Mercurial pull the first step of the test selection job
This way, if it fails, it fails as early as possible and another worker can pick up the job.
2020-07-24 12:02:31 +02:00
Marco Castelluccio b52e25929a Don't catch and reraise the exception on Mercurial pull, just let it propagate 2020-07-24 12:01:56 +02:00
Armen Zambrano d10afde19c
Raise failure to pull to track in Sentry (#1716) 2020-07-24 11:54:03 +02:00
Marco Castelluccio 72d1862a61 Add job_timeout argument to our mock of the rq Queue
Fixes a regression from 256003a052
2020-07-24 11:52:57 +02:00
Armen Zambrano 5767aa856a
Fix order of assertion and logging (#1720) 2020-07-24 11:36:20 +02:00
Marco Castelluccio bbc65699d1 Fix job_timeout argument name to Queue.enqueue
Fixes a regression from 256003a052
2020-07-24 11:34:26 +02:00
Marco Castelluccio ad165ce974 bug_ids argument of classify_bug should be a Collection, not an Iterable
Since it is iterated multiple times.
2020-07-24 11:31:06 +02:00
Marco Castelluccio f375d686f4
Pull running 'hg pull' instead of using hglib to benefit from Mercurial's default transaction rollback (#1715)
Currently we use hglib, so when we send SIGTERM to the process which is doing the pull, the process is terminated
without error handling and the repository is left in a bad state.
Instead, by using 'hg pull', we benefit from Mercurial's handling of SIGTERM: transaction rollback.

Might help with #1673
2020-07-24 00:20:52 +02:00
Marco Castelluccio 256003a052 Use a shorter timeout for Bugzilla jobs
Fixes #1717
2020-07-23 17:55:36 +02:00
Marco Castelluccio 9e271deb7f Set default job timeout to 12 minutes instead of 21
First step for #1717
2020-07-23 17:42:58 +02:00
Marco Castelluccio fc30be48ef Remove jobs from the queue if they haven't started within 7 minutes 2020-07-23 17:42:15 +02:00
Armen Zambrano 28481e70d8
Set up Sentry for bugbug's background worker (#1713)
Fixes #1698
2020-07-22 20:16:32 +02:00
Marco Castelluccio d0d922fb46
Try to pull a few times, with a timeout of 3 minutes, before giving up (#1714)
Instead of relying on robustcheckout, which performs a full reclone after a failure.

Might help with #1673
2020-07-22 20:08:22 +02:00
dependabot[bot] 32721404db
Bump marshmallow from 3.7.0 to 3.7.1 (#1700)
Bumps [marshmallow](https://github.com/marshmallow-code/marshmallow) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/marshmallow-code/marshmallow/releases)
- [Changelog](https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst)
- [Commits](https://github.com/marshmallow-code/marshmallow/compare/3.7.0...3.7.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-21 16:45:38 +02:00
Marco Castelluccio 0c818c0502 Allow re-running jobs after 3 minutes from their failure 2020-07-17 00:28:59 +02:00