##// END OF EJS Templates
tests: migrate the pytype test to a shell script for easier CI processing...
Matt Harbison -
r50396:08c3ecd8 stable
parent child Browse files
Show More
@@ -1,71 +1,72 b''
1 #require pytype py3 slow
1 #!/bin/sh
2
3 $ cd $RUNTESTDIR/..
4
2
5 Many of the individual files that are excluded here confuse pytype
3 set -e
6 because they do a mix of Python 2 and Python 3 things
4 set -u
7 conditionally. There's no good way to help it out with that as far as
5
8 I can tell, so let's just hide those files from it for now. We should
6 cd `hg root`
9 endeavor to empty this list out over time, as some of these are
10 probably hiding real problems.
11
7
12 mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo
8 # Many of the individual files that are excluded here confuse pytype
13 mercurial/context.py # many [attribute-error]
9 # because they do a mix of Python 2 and Python 3 things
14 mercurial/crecord.py # tons of [attribute-error], [module-attr]
10 # conditionally. There's no good way to help it out with that as far as
15 mercurial/debugcommands.py # [wrong-arg-types]
11 # I can tell, so let's just hide those files from it for now. We should
16 mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
12 # endeavor to empty this list out over time, as some of these are
17 mercurial/exchange.py # [attribute-error]
13 # probably hiding real problems.
18 mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
14 #
19 mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
15 # mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo
20 mercurial/hgweb/wsgicgi.py # confused values in os.environ
16 # mercurial/context.py # many [attribute-error]
21 mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
17 # mercurial/crecord.py # tons of [attribute-error], [module-attr]
22 mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
18 # mercurial/debugcommands.py # [wrong-arg-types]
23 mercurial/keepalive.py # [attribute-error]
19 # mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error]
24 mercurial/localrepo.py # [attribute-error]
20 # mercurial/exchange.py # [attribute-error]
25 mercurial/manifest.py # [unsupported-operands], [wrong-arg-types]
21 # mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types]
26 mercurial/minirst.py # [unsupported-operands], [attribute-error]
22 # mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr]
27 mercurial/pure/osutil.py # [invalid-typevar], [not-callable]
23 # mercurial/hgweb/wsgicgi.py # confused values in os.environ
28 mercurial/pure/parsers.py # [attribute-error]
24 # mercurial/httppeer.py # [attribute-error], [wrong-arg-types]
29 mercurial/repoview.py # [attribute-error]
25 # mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error]
30 mercurial/testing/storage.py # tons of [attribute-error]
26 # mercurial/keepalive.py # [attribute-error]
31 mercurial/ui.py # [attribute-error], [wrong-arg-types]
27 # mercurial/localrepo.py # [attribute-error]
32 mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
28 # mercurial/manifest.py # [unsupported-operands], [wrong-arg-types]
33 mercurial/win32.py # [not-callable]
29 # mercurial/minirst.py # [unsupported-operands], [attribute-error]
34 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
30 # mercurial/pure/osutil.py # [invalid-typevar], [not-callable]
35 mercurial/wireprotov1peer.py # [attribute-error]
31 # mercurial/pure/parsers.py # [attribute-error]
36 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
32 # mercurial/repoview.py # [attribute-error]
37
33 # mercurial/testing/storage.py # tons of [attribute-error]
38 TODO: use --no-cache on test server? Caching the files locally helps during
34 # mercurial/ui.py # [attribute-error], [wrong-arg-types]
39 development, but may be a hinderance for CI testing.
35 # mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error]
36 # mercurial/win32.py # [not-callable]
37 # mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
38 # mercurial/wireprotov1peer.py # [attribute-error]
39 # mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
40
40
41 $ pytype -V 3.7 --keep-going --jobs auto mercurial \
41 # TODO: use --no-cache on test server? Caching the files locally helps during
42 > -x mercurial/bundlerepo.py \
42 # development, but may be a hinderance for CI testing.
43 > -x mercurial/context.py \
43
44 > -x mercurial/crecord.py \
44 # TODO: include hgext and hgext3rd
45 > -x mercurial/debugcommands.py \
46 > -x mercurial/dispatch.py \
47 > -x mercurial/exchange.py \
48 > -x mercurial/hgweb/hgweb_mod.py \
49 > -x mercurial/hgweb/server.py \
50 > -x mercurial/hgweb/wsgicgi.py \
51 > -x mercurial/httppeer.py \
52 > -x mercurial/interfaces \
53 > -x mercurial/keepalive.py \
54 > -x mercurial/localrepo.py \
55 > -x mercurial/manifest.py \
56 > -x mercurial/minirst.py \
57 > -x mercurial/pure/osutil.py \
58 > -x mercurial/pure/parsers.py \
59 > -x mercurial/repoview.py \
60 > -x mercurial/testing/storage.py \
61 > -x mercurial/thirdparty \
62 > -x mercurial/ui.py \
63 > -x mercurial/unionrepo.py \
64 > -x mercurial/win32.py \
65 > -x mercurial/wireprotoframing.py \
66 > -x mercurial/wireprotov1peer.py \
67 > -x mercurial/wireprotov1server.py \
68 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt
69
45
70 Only show the results on a failure, because the output on success is also
46 pytype -V 3.7 --keep-going --jobs auto mercurial \
71 voluminous and variable.
47 -x mercurial/bundlerepo.py \
48 -x mercurial/context.py \
49 -x mercurial/crecord.py \
50 -x mercurial/debugcommands.py \
51 -x mercurial/dispatch.py \
52 -x mercurial/exchange.py \
53 -x mercurial/hgweb/hgweb_mod.py \
54 -x mercurial/hgweb/server.py \
55 -x mercurial/hgweb/wsgicgi.py \
56 -x mercurial/httppeer.py \
57 -x mercurial/interfaces \
58 -x mercurial/keepalive.py \
59 -x mercurial/localrepo.py \
60 -x mercurial/manifest.py \
61 -x mercurial/minirst.py \
62 -x mercurial/pure/osutil.py \
63 -x mercurial/pure/parsers.py \
64 -x mercurial/repoview.py \
65 -x mercurial/testing/storage.py \
66 -x mercurial/thirdparty \
67 -x mercurial/ui.py \
68 -x mercurial/unionrepo.py \
69 -x mercurial/win32.py \
70 -x mercurial/wireprotoframing.py \
71 -x mercurial/wireprotov1peer.py \
72 -x mercurial/wireprotov1server.py
General Comments 0
You need to be logged in to leave comments. Login now