wikimedia/pywikibot

View on GitHub
Tests: no verbosity with pytest #6135
xqt authored 5ed63fd9
complete00:00:43
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-12-01T09:11:39.570507 #1]  INFO -- : Skipping file ./tests/tools_tests.py due to exception (CC::Engine::Analyzers::ParserError): `python3 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in cast_value
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in <listcomp>
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in cast_value
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in <listcomp>
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in cast_value
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in <listcomp>
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in cast_value
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in <listcomp>
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 33, in cast_value
    return value.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte


I, [2024-12-01T09:11:45.183435 #1]  INFO -- : Skipping file ./pywikibot/tools/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python3 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in cast_value
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in <listcomp>
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in cast_value
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in <listcomp>
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in cast_value
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 43, in <listcomp>
    return [cast_value(v) for v in value]
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 45, in cast_value
    return to_json(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 18, in to_json
    json_ast[key] = cast_value(value)
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 33, in cast_value
    return value.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
7
fixme
fixme engine documentation