Commit Graph

237 Commits

Author SHA1 Message Date
Jean-Paul Calderone
903da3d513 Fix the ... tox.ini ... syntax error ... 2021-09-08 14:35:55 -04:00
Jean-Paul Calderone
19086a6348 log sys.stdout.encoding from tox env 2021-09-08 14:25:10 -04:00
Jean-Paul Calderone
9a8faae283 Remove PYTHONIOENCODING, set for towncrier, no longer run here 2021-08-13 09:24:00 -04:00
meejah
9df792c5e2
Merge pull request #1091 from tahoe-lafs/3745.remove-vestigial-tox-whitelists
3745 Remove unnecessary `whitelist_externals` from Tox configuration
2021-07-09 12:28:13 -06:00
meejah
428a803a9b
Merge pull request #1077 from tahoe-lafs/3731.make-tox-news-macos-work
3731 Make `tox -e news` work on macOS
2021-07-09 12:27:36 -06:00
Itamar Turner-Trauring
6475b44336 Get rid of unnecessary version constraints. 2021-07-05 16:17:26 -07:00
Sajith Sasidharan
7ebe654e55
Remove unnecessary whitelist_externals from Tox configuration 2021-07-05 07:25:00 -04:00
Sajith Sasidharan
2494980a69
Remove stray * from tox passenv value 2021-07-05 06:36:29 -04:00
Sajith Sasidharan
8b537b5ddd
Merge 'origin/master' into 3731.make-tox-news-macos-work 2021-07-05 06:34:35 -04:00
Sajith Sasidharan
943b7d73fb
Merge pull request #1078 from tahoe-lafs/3732.whitelist-git-in-tox
Whitelist git in tox `news` environment

Fixes ticket:3732
2021-06-25 10:57:51 -04:00
Itamar Turner-Trauring
28220d8a16 Switch to pylint instead of custom AST parsing that wouldn't work on Python 3. 2021-06-14 11:24:10 -04:00
Itamar Turner-Trauring
702f249f99 Use the correct py.test. 2021-06-10 11:22:11 -04:00
Itamar Turner-Trauring
490d3ca29d Work with latest mypy. 2021-06-10 11:03:01 -04:00
Sajith Sasidharan
6363162b9d Comment about certify at the appropriate place 2021-06-07 17:37:11 -04:00
Sajith Sasidharan
3008a85dde Whitelist git in tox news environment 2021-06-07 17:36:14 -04:00
Sajith Sasidharan
d9d01869c3 Pass $HOME to git in tox news environment
This is needed on macOS, or `git commit` would fail.

Also, $HOME has no place in `codechecks` Tox env, since we do not
invoke git there, unlike the (now removed) comment indicated.
2021-06-07 17:31:11 -04:00
Sajith Sasidharan
9678d2ff79 Update towncrier config file in codechecks tox env 2021-06-07 15:53:52 -04:00
Sajith Sasidharan
af919cd5bd Update towncrier in news and draftnews tox envs
Since `towncrier.toml` is Towncrier's default configuration file,
`--config towncrier.toml` is not strictly necessary.  But being
explict about the configuration file seems to be a good idea.
2021-06-07 15:53:37 -04:00
Itamar Turner-Trauring
e5d636746e Can't use latest Twisted for typechecks, on Windows older Twisted requires compilation which fails, sticking to 3.7 is workaround since it has Windows wheels. 2021-05-26 09:16:07 -04:00
Itamar Turner-Trauring
2eff096647 Merge remote-tracking branch 'origin/master' into 3709-even-more-integration-tests-python-3 2021-05-14 10:50:55 -04:00
Itamar Turner-Trauring
6a619b1ec7 Make sure not to install Python 3-only version of pefile. 2021-05-14 10:05:45 -04:00
Itamar Turner-Trauring
73a3e82856 Don't run integration tests here either. 2021-05-13 11:29:11 -04:00
Itamar Turner-Trauring
b330eb3b6f Merge remote-tracking branch 'origin/master' into 3709-even-more-integration-tests-python-3 2021-05-13 11:27:13 -04:00
Itamar Turner-Trauring
22a0f1d72e Merge remote-tracking branch 'origin/master' into 3707-more-integration-python-3 2021-05-13 11:23:36 -04:00
Itamar Turner-Trauring
330de25061
Merge pull request #1056 from tahoe-lafs/3703.integration-tests-python-3
First integration tests running on Python 3

Fixes ticket:3703
2021-05-13 11:20:54 -04:00
Itamar Turner-Trauring
2f7ba77a9f Note the version being run. 2021-05-13 10:26:30 -04:00
Itamar Turner-Trauring
914f1d171c Let's not run integration tests as part of unit tests. 2021-05-13 10:19:11 -04:00
Itamar Turner-Trauring
d7ad72f651 Just do integration tests as part of normal CI runners. 2021-05-12 11:21:22 -04:00
Itamar Turner-Trauring
079041fc1e Port to Python 3. 2021-05-12 09:22:33 -04:00
Itamar Turner-Trauring
fba23ef91c Port to Python 3. 2021-05-11 13:34:35 -04:00
Itamar Turner-Trauring
f1bd7c0b06 Merge branch '3703.integration-tests-python-3' into 3707-more-integration-python-3 2021-05-11 11:14:00 -04:00
Itamar Turner-Trauring
b8b00fa2da Port to Python 3. 2021-05-11 11:13:52 -04:00
Itamar Turner-Trauring
fd5bda67db Note package. 2021-05-11 11:02:15 -04:00
Itamar Turner-Trauring
d80b6d6c56 Add a couple missing environments. 2021-05-10 13:18:08 -04:00
Itamar Turner-Trauring
109829dfcb BytesWarnings. 2021-05-10 11:58:29 -04:00
Itamar Turner-Trauring
37bcaf6c88 Port initialization "tests". 2021-05-10 11:51:41 -04:00
Itamar Turner-Trauring
02e699347e Mark tests as ported. 2021-05-10 11:49:21 -04:00
Itamar Turner-Trauring
a843210b26 Merge branch '3703.integration-tests-python-3' into 3707-more-integration-python-3 2021-05-10 10:38:02 -04:00
Itamar Turner-Trauring
add20d8024 First pass at integration support on Python 3. 2021-05-10 10:01:14 -04:00
Itamar Turner-Trauring
aa22c6e59b
Merge pull request #1055 from tahoe-lafs/3705.python3-normal-trial
Run all unit tests on Python 3 unconditionally

Fixes ticket:3705
2021-05-10 09:59:30 -04:00
Itamar Turner-Trauring
ad05abd2f7 Just run unit tests normally on Python 3. 2021-05-07 13:25:57 -04:00
Itamar Turner-Trauring
036a864dc9 There are many references to this, so stick to old name. 2021-05-07 09:48:30 -04:00
Itamar Turner-Trauring
d52e48f2aa Run flake8 on Python 3. 2021-05-07 09:41:30 -04:00
Itamar Turner-Trauring
30c03d085e Newer versions of setuptools and pip, to work better with newer Pythons. 2021-05-05 10:34:10 -04:00
Itamar Turner-Trauring
ebedc660bd Note coverage explicitly in envlist. 2021-05-05 10:12:42 -04:00
Itamar Turner-Trauring
ea2db971a6 Try to make GitHub Actions automatically use appropriate Tox envs by using
`tox-gh-actions` package.
2021-05-05 10:06:35 -04:00
Sajith Sasidharan
964a637156
Merge pull request #1033 from tahoe-lafs/3666.sphinx-warnings-are-errors
Turn sphinx-build's warnings into errors

Fixes: ticket:3666
2021-04-12 21:44:19 -04:00
Itamar Turner-Trauring
7ff5846b85 New towncrier has different command-line option. 2021-04-06 09:41:33 -04:00
Sajith Sasidharan
9a793a9320 Turn sphinx-build's warnings into errors 2021-04-04 08:50:52 -04:00
Sajith Sasidharan
93dff0e6ad Use sphinx_rtd_theme when building docs locally
Default theme that Sphinx uses is not consistent with what we have at
https://tahoe-lafs.readthedocs.io.  Being consistent with rtd might
help future doc writers.
2021-03-09 15:42:48 -05:00
Itamar Turner-Trauring
061f886f45 Fix typo. 2021-03-05 09:42:06 -05:00
Itamar Turner-Trauring
f75eda1255 Merge remote-tracking branch 'origin/master' into 3618.bb-tests-python-3 2021-03-02 09:00:09 -05:00
Jean-Paul Calderone
99f6a692d4
Merge pull request #991 from LeastAuthority/3623.pin-twisted
Set an upper bound for Twisted until type situation is resolved

Fixes: ticket:3623
2021-03-02 08:14:48 -05:00
Jean-Paul Calderone
e0339b448d Pin it in the tox configuration
Because why should setup.py matter?
2021-03-01 12:49:20 -05:00
Jean-Paul Calderone
386784110f Maybe this way works 2021-03-01 12:46:44 -05:00
Itamar Turner-Trauring
70c0607789 Enable BytesWarning across all tests ported to Python 3, fixing problems that caught. 2021-02-24 14:36:15 -05:00
Itamar Turner-Trauring
caad978c24 Clarify the comment. 2021-02-22 09:39:31 -05:00
Itamar Turner-Trauring
b71a90deb7 Check some packages, at least, for unicode-vs-bytes issues 2021-02-12 11:49:14 -05:00
Itamar Turner-Trauring
92058e04b9 Make sure typechecks run under Python 3. 2021-02-03 10:19:41 -05:00
Itamar Turner-Trauring
49300ccc4e Merge remote-tracking branch 'origin/master' into 3584.integration-tests-sftp 2021-01-26 09:53:51 -05:00
Jean-Paul Calderone
b139876a15 Merge remote-tracking branch 'origin/master' into 3536.sphinx-warnings 2021-01-25 10:52:34 -05:00
Itamar Turner-Trauring
0902c8e156 Merge remote-tracking branch 'origin/master' into 3584.integration-tests-sftp 2021-01-21 13:34:51 -05:00
Jason R. Coombs
c7a4cdb44d Rely on main branch of foolscap for typechecks. 2021-01-15 15:25:07 -05:00
Itamar Turner-Trauring
20e90b4b65 Set 2021-01-13 10:21:00 -05:00
Sajith Sasidharan
65926d6e70 Install recommonmark in tox "docs" environment
We're going to need markdown support to render contributor covenant.
2021-01-08 13:48:04 -05:00
Jason R. Coombs
3951257cd7 Switch to mypy-zope main branch. 2020-12-27 16:17:59 -05:00
Jason R. Coombs
574613a892 Merge branch 'master' into 3399.mypy 2020-12-26 12:45:09 -05:00
Jean-Paul Calderone
d50a1151bc verbose is kind of annoying for normal use 2020-12-01 09:54:28 -05:00
Jason R. Coombs
4b559ffc33 Add typechecks to tox run 2020-11-29 13:57:46 -05:00
Jason R. Coombs
6d2d82d7b7 Use pre-release versions of foolscap and mypy-zope with intended support for RemoteInterface subclasses. 2020-11-29 13:57:46 -05:00
Jason R. Coombs
ab54585558 Incorporate mypy-zope to support zope interfaces. 2020-11-29 13:57:46 -05:00
Jason R. Coombs
ee9d9d7984 Add mypy checks as separate tox environment. 2020-11-29 13:57:46 -05:00
Jean-Paul Calderone
263ada9be4 Get rid of the spurious quotes in the flake8 command
I don't understand tox.ini syntax or quoting rules and I don't see any
documentation about it.  But what could go wrong with trial and error?
2020-11-27 16:24:16 -05:00
Jean-Paul Calderone
38dd0d1b70 Only run codechecks on changed Python source files 2020-11-19 11:12:08 -05:00
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