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

27 Коммитов

Автор SHA1 Сообщение Дата
Valentin Rigal 4252aa4d5a
Update Django from 4.2 to 5.1 (#8218)
* Bump Django to 5.1.1 and django rest framework to 3.15.2

* Bump Python to 3.10

Also updates old references

* Replace AlterIndexTogether in migrations

https://docs.djangoproject.com/en/4.2/releases/4.2/#index-together-option-is-deprecated-in-favor-of-indexes

* Fix linters deprecation errors
2024-10-07 16:04:32 +02:00
EvaBardou 494ca3c615
Remove MySQL integration and dedicated code (#7814)
* Remove MySQL integration and dedicated code

* Nit

* Clean up a few more files

* Fix linting

* Propagate DATABASE_URL in other containers
2024-05-30 15:19:56 +02:00
Sebastian Hengst 3cf087b516
Remote docker and ubuntu upgrades (#7922)
* Switch to docker24

* Switch to default Ubuntu image in circleCI

* Switch tox config from whitelist_externals to allowlist_externals
2024-03-04 16:58:14 +01:00
Yoann Schneider 10b8ba2b6d Add ruff pre-commit hook, remove flake8 configuration and port settings to ruff's 2024-01-24 13:15:15 +01:00
Valentin Rigal 096e26bb29 Rely on depends_on for docker tox env 2023-08-11 11:45:43 +02:00
Valentin Rigal f47da7b38d Separate services for postgres and mysql 2023-08-11 11:45:43 +02:00
EvaBardou b78ed4dac8 Try to fix docker-postgres tests 2023-08-11 11:45:43 +02:00
Bastien Abadie 1e0d51a410 Run unit tests on CI with postgres 2023-08-11 11:45:43 +02:00
Joel Maher f41c363333
add --no-deps to pip install. r=suhaib (#7664)
Co-authored-by: Ronan Maher <ronanhmaher@gmail.com>
2023-03-22 10:34:23 -07:00
Sebastian Hengst 2fa81a3a4b
Bug 1822707 - set verbosity level for tox linters command to 4 (= debug) to log more during frequent failures in circleCI (#7658) 2023-03-20 14:36:55 -07:00
Joel Maher f49772e844
Fix build:docs failure by removing poetry and installing mkdocs via pip (#7603)
* Fix pinned dependencies in dev.in

* Revert "Fix pinned dependencies in dev.in"

This reverts commit 5dca034baf.

* Fix pinned dependencies in dev.in

* Revert "Fix pinned dependencies in dev.in"

This reverts commit 5dca034baf.

* Fix pinned dependencies in dev.in

* Revert "Fix pinned dependencies in dev.in"

This reverts commit 5dca034baf.

* Fix pinned dependencies in dev.in

* Revert "Fix pinned dependencies in dev.in"

This reverts commit 5dca034baf.

* simple test
2022-12-21 07:22:21 -08:00
Joel Maher da493f69c9
force pip upgrade (#7520) 2022-08-24 14:23:35 -07:00
Bastien Abadie 68596acba4
Bump to python 3.8 (#7438)
* Bump to python 3.8

* Avoid RuntimeError: dictionary keys changed during iteration

* Fix hanging test_tracker_updates_records_with_missing_data

* Disable pytest warning on on Unraisable exceptions
2022-05-16 11:30:31 -07:00
Sarah Clements 7ea0760c58
Remove heroku v2 (#7271)
* update dockerfile and remove post_compile
* remove more heroku mentions
* remove redis heroku ref
* update middleware and CSP
* remove irrelevant test and script references to heroku
remove tox heroku command from circleCI config
* more references removed
* remove prototype2 reference
* remove old TLS check for redis
2021-09-16 11:30:12 +01:00
Sarah Clements d7849ac7af
Revert "heroku cleanup (#7219)" (#7245)
This reverts commit 7cb8d8abe7.
2021-08-18 18:22:13 +01:00
Sarah Clements 7cb8d8abe7
heroku cleanup (#7219)
* update dockerfile and remove post_compile
* remove redis heroku ref
* update middleware and CSP
* remove irrelevant test and script references to heroku
remove tox heroku command from circleCI config
* remove get_tls_redis_url and reconfigure default TLS_PATH_CERT in docker file
2021-08-16 14:49:07 +01:00
Ben Hearsum (he/him) b1f6a7d635
Disable pytest-xdist because it seems to be causing intermittent failures (#7069) 2021-03-26 15:44:55 -04:00
Ben Hearsum (he/him) dd0216ae40
Re-re-re-remove activedata and bigquery (#7056)
* Bump python to 3.7.10 to try to fix issues with typing module

* Remove requirement on typing again

* Remove bigquery and activedata references (#7051)

* Remove activedata and bigquery again

* Add importlib-metadata to dev requirements

* Remove remnants of selenium tests from setup.cfg

* Don't call taskcluster.aio.createSession outside of async functions (it's not allowed)

* Disable newrelic linters to fix issue with imp module

See https://discuss.newrelic.com/t/python-warnings-during-pytest/114897

* Fix linting errors

* Use pytest-xdist to speed up tests

* Properly ignore newrelic warnings

* Disable django.contrib.staticfiles in tests, because it breaks everything

* Set TREEHERDER_DEBUG=False for unit tests, because it breaks some tests

* Fix linting issues
2021-03-23 09:15:32 -04:00
Armen Zambrano G f00afa8e1e
Unify linting (local pre-commit hooks & CI) (#6993)
* Prevent regression of pre-commit checks
* Switch to new prettier repo
2021-01-29 15:47:06 -08:00
Armen Zambrano G 071088c00a
Some CI & tox changes (#6942)
*Create new Tox environment for linting checks
* Move production environment variables into Heroku's tox environment 
* Call `tox -e docker` instead of custom command
* Upload code coverage file
* Run JS tests before trying to submit coverage results
* Upgrade very old pip package
2021-01-05 16:51:23 -08:00
Cameron Dawson 9908f72189
Bug 1576966 - Convert last Selenium tests to React Testing Library (#6928) 2020-12-21 12:54:07 -08:00
Armen Zambrano 2ffe35cd1e
Improve Travis and Tox configuration (#6732)
Some changes in here:
* Making tox a bit more the centralized point for configurying job execution
* Move Heroku code paths into tox from .travis.yml
* Move to more modern Travis image (xenial 16.04 -> bionic 18.04)
* Make Python tests outside of Docker to run slow tests (DB required)
* Cache tox packages to speed up following Travis runs
* Remove coverage data before gathering new data (to prevent using old data)
2020-08-27 12:10:06 -07:00
Kyle Lahnakoski d05ea73447
Bug 1646244 - pre-commit in Travis takes a long time (#6613)
* upgrade python libs
* unlock newrelic, furl
* unlock pre-commit
* move pre-commit checks to Travis jobs
2020-07-14 10:06:51 -04:00
Armen Zambrano 5ca21043df
Make poetry the default method for generating the docs (#6424)
This makes sure that serving the documentation via poetry does not regress
and we have a single way of generating them.

Setting the build backend in `pyproject.toml` makes `pip` to use `poetry` to install the dependencies. By doing so, readthedocs will be able to install the required dependencies to generate the docs (since they don't support poetry directly).
2020-05-15 15:12:35 -04:00
Shubhank Saxena 523536ae95
Tox: Do not ignore "tests/extract" when running tests (#6377) 2020-04-30 15:17:35 -04:00
Suyash Salampuria 487385af5f
Automation: Run all pre-commit hooks (#6334) 2020-04-21 15:54:30 -04:00
Shubhank Saxena 946b7cf800
Use tox to run Travis tests locally (deprecate runtests.sh) (#6194) 2020-04-17 15:56:33 -04:00