nobbynobbs/aiohttp-aiocache

View on GitHub
fix release workflow? #70
Roman Bolkhovitin authored 316bb6ce
complete00:00:16
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.json.
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-05-03T06:47:39.100617 #1]  INFO -- : Skipping file ./aiohttp_aiocache/_api.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 9
    def cached(handler: Callable[..., Any]) -> Callable[..., Any]:
                      ^
SyntaxError: invalid syntax


I, [2024-05-03T06:47:39.105266 #1]  INFO -- : Skipping file ./aiohttp_aiocache/_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def make_key(request: web.Request) -> str:
                        ^
SyntaxError: invalid syntax


I, [2024-05-03T06:47:39.115981 #1]  INFO -- : Skipping file ./aiohttp_aiocache/_middleware.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    async def cache_middleware(request: web.Request, handler: Any) -> web.Response:
        ^
SyntaxError: invalid syntax
7
pep8
pep8 engine documentation
View output
.github/ aiohttp_aiocache/
8
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 13 files indexed
ERROR: Unable to parse file: /code/aiohttp_aiocache/_utils.py
ERROR: Parse error at line 8 column 13:

    1: _sha256 import sha256
    2: from typing import List
    3: 
    4: from aiohttp import web
    5: 
    6: 
    7: def make_key(request: web.Request) -> str:
  -->      key_parts: List[str] = [
    9:         request.method,
   10:         request.rel_url.path_qs,
   11:         request.url.host,
   12:         request.content_type,
   13:     ]
   14:     key

ERROR: Unable to parse file: /code/aiohttp_aiocache/_middleware.py
ERROR: Parse error at line 31 column 9:

   27: = request.match_info.handler
   28:     if getattr(real_handler, "cache_with_aiocache", None) is None:
   29:         return await handler(request)
   30: 
  -->      cache: BaseCache = request.app[CACHE_INSTANCE_KEY]
   32: 
   33:     key = make_key(request)
   34:     try:
   35:         resp: web.Response = await cache.

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.215s
INFO: Final Memory: 11M/234M
INFO: ------------------------------------------------------------------------