Skip to content

Fixup circle CI integration or testing run #227

@yarikoptic

Description

@yarikoptic

uff -- now pypy is not happy and

  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/tinuous/circleci.py", line 32, in get_auth_tokens
    raise RuntimeError(
RuntimeError: CircleCI token not set.  Set via CIRCLECI_CLI_TOKEN environment variable or log in with `circleci` client.  See <https://github.com/con/tinuous#circleci> for more information.

on circle ci I have

image

although use came from our server, not github ci and on prior version

image

dang -- there was more to the backtrace

Run coverage run --source tinuous --branch -m tinuous fetch
   ] tinuous: tinuous 0.7.2.post4+gfa6e95f
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/tinuous/circleci.py", line 29, in get_auth_tokens
    with (Path.home() / ".circleci" / "cli.yml").open() as fp:
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/pathlib.py", line 1119, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/.circleci/cli.yml'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/tinuous/__main__.py", line 375, in <module>
    main()
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/click/core.py", line 1514, in __call__
    return self.main(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/click/core.py", line 1435, in main
    rv = self.invoke(ctx)
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/click/core.py", line 1902, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/click/core.py", line 1298, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/click/core.py", line 853, in invoke
    return callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/click/decorators.py", line 46, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/tinuous/__main__.py", line 171, in fetch
    tokens[name] = cicfg.get_auth_tokens()
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/tinuous/config.py", line 158, in get_auth_tokens
    return CircleCI.get_auth_tokens()
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/tinuous/circleci.py", line 32, in get_auth_tokens
    raise RuntimeError(
RuntimeError: CircleCI token not set.  Set via CIRCLECI_CLI_TOKEN environment variable or log in with `circleci` client.  See <https://github.com/con/tinuous#circleci> for more information.

so may be that 2nd exception is "too late". ... need to have a look with some fresh eyes

Originally posted by @yarikoptic in #226 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions