author | Pierre-Yves David <pierre-yves.david@octobus.net> |
Tue, 21 Sep 2021 18:03:37 +0200 | |
branch | stable |
changeset 48039 | c094e829e848 |
parent 46901 | 51841b23670b |
child 48472 | a4d8de93023c |
permissions | -rw-r--r-- |
46898
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
1 |
#require pytype py3 slow |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
2 |
|
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
3 |
$ cd $RUNTESTDIR/.. |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
4 |
|
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
5 |
Many of the individual files that are excluded here confuse pytype |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
6 |
because they do a mix of Python 2 and Python 3 things |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
7 |
conditionally. There's no good way to help it out with that as far as |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
8 |
I can tell, so let's just hide those files from it for now. We should |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
9 |
endeavor to empty this list out over time, as some of these are |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
10 |
probably hiding real problems. |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
11 |
|
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
12 |
mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
13 |
mercurial/changegroup.py # mysterious incorrect type detection |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
14 |
mercurial/chgserver.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
15 |
mercurial/cmdutil.py # No attribute 'markcopied' on mercurial.context.filectx [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
16 |
mercurial/context.py # many [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
17 |
mercurial/copies.py # No attribute 'items' on None [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
18 |
mercurial/crecord.py # tons of [attribute-error], [module-attr] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
19 |
mercurial/debugcommands.py # [wrong-arg-types] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
20 |
mercurial/dispatch.py # initstdio: No attribute ... on TextIO [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
21 |
mercurial/exchange.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
22 |
mercurial/hgweb/hgweb_mod.py # [attribute-error], [name-error], [wrong-arg-types] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
23 |
mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
24 |
mercurial/hgweb/webcommands.py # [missing-parameter] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
25 |
mercurial/hgweb/wsgicgi.py # confused values in os.environ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
26 |
mercurial/httppeer.py # [attribute-error], [wrong-arg-types] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
27 |
mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
28 |
mercurial/keepalive.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
29 |
mercurial/localrepo.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
30 |
mercurial/lsprof.py # unguarded import |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
31 |
mercurial/manifest.py # [unsupported-operands], [wrong-arg-types] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
32 |
mercurial/minirst.py # [unsupported-operands], [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
33 |
mercurial/patch.py # [wrong-arg-types] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
34 |
mercurial/pure/osutil.py # [invalid-typevar], [not-callable] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
35 |
mercurial/pure/parsers.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
36 |
mercurial/pycompat.py # bytes vs str issues |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
37 |
mercurial/repoview.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
38 |
mercurial/sslutil.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
39 |
mercurial/statprof.py # bytes vs str on TextIO.write() [wrong-arg-types] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
40 |
mercurial/testing/storage.py # tons of [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
41 |
mercurial/ui.py # [attribute-error], [wrong-arg-types] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
42 |
mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
43 |
mercurial/upgrade.py # line 84, in upgraderepo: No attribute 'discard' on Dict[nothing, nothing] [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
44 |
mercurial/util.py # [attribute-error], [wrong-arg-count] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
45 |
mercurial/utils/procutil.py # [attribute-error], [module-attr], [bad-return-type] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
46 |
mercurial/utils/stringutil.py # [module-attr], [wrong-arg-count] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
47 |
mercurial/utils/memorytop.py # not 3.6 compatible |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
48 |
mercurial/win32.py # [not-callable] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
49 |
mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
50 |
mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
51 |
mercurial/wireprotov1peer.py # [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
52 |
mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
53 |
mercurial/wireprotov2server.py # [unsupported-operands], [attribute-error] |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
54 |
|
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
55 |
TODO: use --no-cache on test server? Caching the files locally helps during |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
56 |
development, but may be a hinderance for CI testing. |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
57 |
|
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
58 |
$ pytype -V 3.6 --keep-going --jobs auto mercurial \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
59 |
> -x mercurial/bundlerepo.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
60 |
> -x mercurial/changegroup.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
61 |
> -x mercurial/chgserver.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
62 |
> -x mercurial/cmdutil.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
63 |
> -x mercurial/context.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
64 |
> -x mercurial/copies.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
65 |
> -x mercurial/crecord.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
66 |
> -x mercurial/debugcommands.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
67 |
> -x mercurial/dispatch.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
68 |
> -x mercurial/exchange.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
69 |
> -x mercurial/hgweb/hgweb_mod.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
70 |
> -x mercurial/hgweb/server.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
71 |
> -x mercurial/hgweb/webcommands.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
72 |
> -x mercurial/hgweb/wsgicgi.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
73 |
> -x mercurial/httppeer.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
74 |
> -x mercurial/interfaces \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
75 |
> -x mercurial/keepalive.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
76 |
> -x mercurial/localrepo.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
77 |
> -x mercurial/lsprof.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
78 |
> -x mercurial/manifest.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
79 |
> -x mercurial/minirst.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
80 |
> -x mercurial/patch.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
81 |
> -x mercurial/pure/osutil.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
82 |
> -x mercurial/pure/parsers.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
83 |
> -x mercurial/pycompat.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
84 |
> -x mercurial/repoview.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
85 |
> -x mercurial/sslutil.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
86 |
> -x mercurial/statprof.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
87 |
> -x mercurial/testing/storage.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
88 |
> -x mercurial/thirdparty \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
89 |
> -x mercurial/ui.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
90 |
> -x mercurial/unionrepo.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
91 |
> -x mercurial/upgrade.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
92 |
> -x mercurial/utils/procutil.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
93 |
> -x mercurial/utils/stringutil.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
94 |
> -x mercurial/utils/memorytop.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
95 |
> -x mercurial/win32.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
96 |
> -x mercurial/wireprotoframing.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
97 |
> -x mercurial/wireprotoserver.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
98 |
> -x mercurial/wireprotov1peer.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
99 |
> -x mercurial/wireprotov1server.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
100 |
> -x mercurial/wireprotov2server.py \ |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
101 |
> > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
102 |
|
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
103 |
Only show the results on a failure, because the output on success is also |
e1d75c514ced
tests: add a (very slow) test that executes pytype
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
104 |
voluminous and variable. |