Commit graph

282 commits

Author SHA1 Message Date
Pedro Algarvio
4cb5c4c178 Match used pip and setuptools constraints 2021-09-22 14:01:19 -04:00
Pedro Algarvio
2ed6d1a974 Enforce requirements and their versions consistency
Use use the packaging requirements as version constraints to all other
requirements files which should include Salt's base requirements.

The nox sessions now don't install the base requirements since the "top"
requirements file includes the base requirements.

All of this, ensuring that the same versions are used on all of them.
2021-09-21 13:42:53 -07:00
Pedro Algarvio
d77f3ef36b Also check for proper versionadded versions
Refs #59077
2021-08-19 07:31:52 -04:00
Pedro Algarvio
76e50885b0 Fix strings 2021-08-06 13:09:47 -07:00
Pedro Algarvio
d6e0ee978d Fix the `SKIP_REQUIREMENTS_INSTALL` behavior broken in ac254c7d4a 2021-08-03 10:58:03 -04:00
Pedro Algarvio
ac254c7d4a Also pin the `pip upgrade to be <21.2` 2021-07-27 10:04:40 -04:00
Pedro Algarvio
11c7242826 Use https://github.com/saltstack/invoke-pre-commit for invoke pre-commit steps 2021-06-28 10:25:40 -04:00
Pedro Algarvio
5f59dcf1b8 Update to the newer pip-tools-compile-impersonate 2021-05-05 06:48:41 -07:00
ScriptAutomate
2548b92056 Ensure base upgrades in docs venv before run 2021-03-19 06:30:57 -04:00
ScriptAutomate
57cbf587dd Update nox to install only docs.txt 2021-03-19 06:30:57 -04:00
Pedro Algarvio
a69594c1c2 Install static packaging requirements when building docs 2021-02-26 11:30:23 -05:00
Pedro Algarvio
dbee761249 Avoid problems upgrading pip on windows 2021-02-26 12:21:21 +00:00
Pedro Algarvio
4d3b4ad819 Stop forcing an older version of setuptools 2021-02-26 12:21:21 +00:00
Pedro Algarvio
eefd5bd835 Only support Py3.6+ for Windows 2021-02-23 12:49:10 -05:00
Pedro Algarvio
87019146af We no longer need the distinction between running under PyTest or not 2021-01-29 13:55:52 -05:00
Pedro Algarvio
e47d5b0bd0 Remove runtests.py and it's supporting code 2021-01-29 13:55:52 -05:00
Pedro Algarvio
6d5047492c Pass CI_RUN as an environment variable to the test run.
This allows us to know if we're running the test suite under a CI
environment or not and adapt/adjust if needed
2020-12-28 08:34:58 +00:00
ch3ll
035239de82 add clean kwarg to doc builds 2020-10-05 15:37:23 -07:00
Pedro Algarvio
7efd60131b
Move CI static requirements to it's own subdirectory 2020-09-30 09:31:48 +01:00
Pedro Algarvio
fd451dffab
The nox session invoke_pre_commit should not create a virtualenv 2020-09-25 13:34:53 +01:00
Pedro Algarvio
19c851b2b9
We need to set RUNTIME_VARS.PYTEST_SESSION sooner 2020-09-14 18:33:27 +01:00
Pedro Algarvio
0aba49c7d3
Bump pytest-salt-factories to 0.92.x 2020-09-14 07:55:09 +01:00
Pedro Algarvio
de833885d4
Don't install setuptools >= 50.0.0 until they release something useful
https://github.com/pypa/setuptools/issues/2352#issuecomment-685046897
2020-09-01 19:41:12 +01:00
Pedro Algarvio
87c94b3490
Never use setuptools==50.0.0 2020-08-31 19:37:20 +01:00
Pedro Algarvio
dff88decfe
Show local variables on test failures 2020-08-26 18:09:15 +01:00
Pedro Algarvio
c03508df31 Teach coverage a bit more about salt paths.
Additionally, store relative paths instead of absolute paths to ease
aggregating the coverage data across Linux, macOS and Windows.
2020-08-11 10:21:27 -07:00
Pedro Algarvio
16551e45fe Update noxfile.py to work with upstream nox 2020-06-08 17:40:55 -07:00
Pedro Algarvio
fb2893536e Support FreeBSD static requirements 2020-06-04 09:44:00 -07:00
Pedro Algarvio
6b293bc28e Upgrade to PyTest 5.x 2020-05-22 09:17:36 -07:00
Pedro Algarvio
6ded18614c Make sure pytest-salt is also uninstalled for any pytest session 2020-05-21 23:59:36 -07:00
Pedro Algarvio
6445cceb3b Move the coverage DB to artifacts/coverage in order for it to be archived by CI 2020-05-20 11:28:37 -07:00
Pedro Algarvio
d8b08f3b7f Decomplicate requirements installation.
We no longer have platform specific requirements.
2020-05-19 10:19:31 -07:00
Pedro Algarvio
d0d1d754e2 Allow passing extra requirements to install.
This is useful for debugging purposes where we might want to install
debugging packages.

Fixes https://github.com/saltstack/salt/issues/56897
2020-05-19 10:19:31 -07:00
Pedro Algarvio
1051880d62 Stop using --contraint when pip installing. Its slower.
This can be done because the static requirements files are always up to
date.
2020-05-18 11:31:02 -07:00
Pedro Algarvio
7ff7375c31 Allow bypassing requirements installation.
This shall be considered an expert feature since you need to be aware of
what's going on.
This is useful when writing tests and running them over and over again
where on the first run the requirements get properly installed but on
subsequent runs, if no requirements are changed, the install procedure
does not need to run, thus, saving valuable seconds which can quick turn
into several minutes when repeating test runs.
2020-05-18 11:30:46 -07:00
ch3ll
df480e37c0 update pydir call and fix format 2020-05-07 16:22:31 -07:00
ch3ll
c87642181e add towncrier to manage changelog 2020-05-07 16:22:31 -07:00
Pedro Algarvio
a0e96810fd Show test execution order in CI runs to help debug test suite hangs 2020-05-07 16:00:11 -07:00
Pedro Algarvio
e157459016 Switch to pytest-salt-factories 2020-05-07 16:00:11 -07:00
Pedro Algarvio
146e1d6547 Fix cloud tests selection 2020-04-29 11:25:12 -07:00
Daniel Wozniak
096dc75a70
Merge pull request #56727 from s0undt3ch/features/doc-pre-commit
Replace `tests/unit/test_doc.py` with a pre-commit hook.
2020-04-23 23:30:54 -07:00
Pedro Algarvio
a5b9961f78
Lay the ground for invoke usage 2020-04-23 18:42:47 +01:00
Pedro Algarvio
a24f6fe7e7
Default crypto library to pycryptodomex 2020-04-23 09:32:34 +01:00
Daniel Wozniak
9141e4d34f
Merge pull request #56821 from s0undt3ch/hotfix/requirements
[PyTest #33 - Extract] Preliminary Py3.8 & Py3.9 Static Requirements Files
2020-04-22 21:51:31 -07:00
Pedro Algarvio
625460bc4a
Allow running the test suite against Py3.8 and Py3.9 2020-04-22 12:26:30 +01:00
Pedro Algarvio
d3dbe0b39d
Call coverage or pytest using python -m
This has the desired side effect to add the current directory to
`sys.path`
2020-04-22 08:00:51 +01:00
Pedro Algarvio
a5b2b6c350
Drop the old py.test call in favour of the new pytest call 2020-04-22 08:00:50 +01:00
ch3ll
5994376c11
Revert "update pydir call and fix format"
This reverts commit 7468883dc0.
2020-04-20 09:39:00 -04:00
ch3ll
2586f716b2
Revert "add towncrier to manage changelog"
This reverts commit 57d160cc60.
2020-04-20 09:34:36 -04:00
ch3ll
7468883dc0
update pydir call and fix format 2020-04-16 17:04:53 -04:00