Commit Graph

113 Commits

Author SHA1 Message Date
Jean-Paul Calderone
55c83106ed
Merge pull request #880 from tahoe-lafs/3492.run-deprecations-cleanup
run-deprecations.py cleanup

Fixes: ticket:3492
2020-10-31 19:25:59 -04:00
Jean-Paul Calderone
78f0d76099 get rid of the PYTHONWARNINGS-inspecting code 2020-10-27 14:25:20 -04:00
Jean-Paul Calderone
03a6546f00 flake8 integration 2020-10-27 09:29:24 -04:00
Ross Patterson
b306475370 test(runner): Save iteration time, fail early
The `codechecks` commands run fastest and show the most obvious errors so no need to
wait for the longer-running other tests first.
2020-09-25 10:22:04 -07:00
Ross Patterson
2ef422e064 test(vcs): Add a VCS push hook to run tests
Personally, I can't stand working without a VCS hook anymore.  It saves me so much time
in context switches from revisiting and revising PRs when I see that the CI run is red.
Much better to fail before I push so I can revise while the relevant changes are fresh
in my head.

In order to start using this, one has to run `$ make build` first.  Should I add that
and make other documentation changes in the wiki related to my changes in this PR?
2020-09-25 10:18:11 -07:00
Ross Patterson
ce20ac6a74 test(coverage): Avoid redundant test runs
There's no need in almost all cases to run the tests both under the coverage collector
and without it.  This fixes the default set of tests to avoid that.  Specifically, don't
run tests under the coverage collector by default for all environments since we don't
capture any error or failure conditions on reporting coverage anyways.
2020-09-24 12:38:42 -07:00
Ross Patterson
1593ff5c52 test(coverage): Include human-readable coverage report
While the XML coverage report is useful for consumption by other tools, such as
currently by codecov.io in CI, it's not very useful for humans reviewing the immediate
impact of changes on coverage during local development or while monitoring CI output.  I
don't think running the text report takes much more time so I don't see a downside
here.
2020-09-24 11:37:37 -07:00
Ross Patterson
0c533733f0 test(runner): Match contributor guidelines from wiki
The [Patches Trac Wiki page](https://tahoe-lafs.org/trac/tahoe-lafs/wiki/Patches) says
that users should run the `codechecks` tox environment, so this change runs it be
default as the full tox test suite eliminating the extra step.
2020-09-24 11:36:58 -07:00
Ross Patterson
d0d11a5444 fix(style): Wrong Python version for codechecks
On systems where the default Python is Python 3 (such as on recent Debian/Ubuntu
versions), then `$ tox -e codechecks` has a ton of failures related to Python 3
compatibility.  This explicitly forces it to use Python 2.7 until we have Python 3
compatibility.
2020-09-18 11:59:40 -07:00
Jason R. Coombs
a3f5a0d7ac Merge branch 'master' into 3394.py38-tests 2020-08-30 12:06:56 -04:00
Jean-Paul Calderone
0ed4f81e62 Replace tabs with spaces 2020-08-27 10:40:27 -04:00
Jean-Paul Calderone
44126f840c Refactor tox config to reduce duplication between py2/py3/coverage
The following tox envs are now defined:

- py27
- py27-coverage
- py36
- py36-coverage
2020-08-26 14:36:09 -04:00
Jason R. Coombs
b591181b02 In py36 env, run the tahoe --version command now that it runs without error. 2020-08-21 19:55:34 -04:00
Jean-Paul Calderone
f7c3c53206
Go directly to trial instead of the ratchet helper 2020-08-14 11:19:01 -04:00
Jean-Paul Calderone
9695e87fbd
Revert to master version of these configs 2020-08-14 11:16:45 -04:00
Chad Whitacre
96e3d94172 Fold py36 back into normal tox run
This removes the individual-test-based ratchet.
2020-08-13 05:55:48 -04:00
Jean-Paul Calderone
4a4a88773e
Merge remote-tracking branch 'origin/master' into 3336.py36-off-travis 2020-08-10 10:31:26 -04:00
Jean-Paul Calderone
9853fa9090
Pin Python 2 compatible PyInstaller 2020-08-10 09:59:36 -04:00
Jean-Paul Calderone
f4e1062aa4
Merge remote-tracking branch 'origin/master' into 3336.py36-off-travis 2020-08-10 09:13:01 -04:00
Jean-Paul Calderone
360a97a579
Let the python36 job have the env vars 2020-08-07 23:08:48 -04:00
Chad Whitacre
2a6cd8eb58 Get tox -e codechecks to work (on macOS?)
Without this, git fails underneath towncrier with an "error: Could not
expand include path '~/.gitcinclude'".

See: https://stackoverflow.com/q/36908041

I had added similar for `tox -e py36` in d25c8b1a.
2020-08-03 21:19:26 -04:00
Jean-Paul Calderone
612afdcf7c
that is useless, the error is in the docker image build 2020-08-03 17:02:15 -04:00
Jean-Paul Calderone
a513c7ab28
try setting it in here 2020-08-03 17:02:15 -04:00
Jean-Paul Calderone
ec7531f113
maybe this will let it get to the right place 2020-08-03 17:02:15 -04:00
Chad Whitacre
d25c8b1a25 Start ratcheting up passing tests under Python 3 2020-07-13 22:42:48 -04:00
Chad Whitacre
b47b4a468b Prevent Nevow from blocking us
Per https://github.com/tahoe-lafs/tahoe-lafs/pull/732#issuecomment-653059972
2020-07-13 22:28:00 -04:00
Chad Whitacre
73c40e8d2a Minimally add py36 to CI 2020-07-13 22:27:59 -04:00
Itamar Turner-Trauring
906d6ac291 Switch to flake8 as a better way of running pyflakes. 2020-07-06 13:50:06 -04:00
Jean-Paul Calderone
3c1bffdc9e
Don't install Twisted trunk@HEAD since it doesn't support Python 2 2020-04-13 10:36:54 -04:00
meejah
241b5a3d36 use Tox to build NEWS 2020-03-11 10:54:21 -06:00
Sajith Sasidharan
bcfd3a5eb8 Pass posargs to py.test when running integration tests
Running "tox -e integration" takes a while.  It would be helpful to
run tests from just one file.  With this change, we can do that, like
so:

  $ tox -e integration -- integration/test_web.py

Or even just one test, like so:

  $ tox -e integration -- integration/test_web.py::test_index

With this investigating failing integration tests will be a little
easier, hopefully.

Fixes: ticket:3285
2020-03-06 15:37:19 -05:00
Jean-Paul Calderone
9a6d5cb628 Attempt to inherit the base dependencies in the pyinstaller env 2020-01-20 11:35:14 -05:00
Jean-Paul Calderone
55b87b264c use --pyproject 2020-01-09 14:20:33 -05:00
Jean-Paul Calderone
b9e794a5c8 Merge remote-tracking branch 'meejah/codechecks-delete-local.0' into 2941.codechecks-clean 2020-01-09 14:19:46 -05:00
Chris Wood
ee5a0d27bd Add 'pip freeze' step to 'pyinstaller' tox testenv 2019-10-07 11:30:10 -04:00
meejah
e178d7d809
Merge pull request #524 from meejah/2942.towncrier-draft
add a 'draftnews' tox environment
2019-09-03 10:47:05 -06:00
meejah
ba5f44354b
Merge pull request #636 from meejah/integration-test-coverage
coverage for integration tests
2019-08-08 18:40:29 +00:00
meejah
43162f2ffe combine for normal runs, too 2019-08-07 13:51:05 -06:00
meejah
8e4b05214a add --coverage for integration tests 2019-08-06 16:47:43 -06:00
Jean-Paul Calderone
bb385d45f7 teach tox about the new --package option 2019-08-02 18:29:04 -06:00
Jean-Paul Calderone
39d989676a Attempt to define pypy27 and pypy27-coverage tox environments 2019-06-25 14:16:09 -04:00
tpltnt
cbec4f803a fixing codechecks / lint for circleci 2019-05-22 10:31:08 +02:00
Jean-Paul Calderone
b4459c2dc1 Merge remote-tracking branch 'origin/master' into 3029.install-test-plugins 2019-05-14 06:26:19 -04:00
Jean-Paul Calderone
0294d14401 explain the new pip freeze in the coverage commands 2019-05-14 03:37:35 -04:00
Jean-Paul Calderone
aec341eea8 explain the pinning in tox deps config 2019-05-14 03:36:34 -04:00
Jean-Paul Calderone
1717243212 Re-pin these because it's nice to know what versions we're using 2019-05-13 11:32:02 -04:00
Jean-Paul Calderone
7c71dd6e14 going to try another fix 2019-05-13 11:18:39 -04:00
Jean-Paul Calderone
27962dcd2f Try pinning *new* versions
Tox released 4 hours ago ******BROKE****** everything by removing the
upgrade-these-packages-automatically feature.

Not that I'm bitter.
2019-05-13 11:14:05 -04:00
Jean-Paul Calderone
33bd9bf503 Get a not-*quite*-so-old version of pip 2019-05-13 10:31:46 -04:00
Jean-Paul Calderone
abf319888d Try pinning pip another way
Previous commit didn't yield any information because the error happens before
the commands are run.
2019-05-13 10:27:41 -04:00