Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give a Clean Error when a recursion is encountered #2

Open
antdking opened this issue Oct 26, 2020 · 0 comments
Open

Give a Clean Error when a recursion is encountered #2

antdking opened this issue Oct 26, 2020 · 0 comments

Comments

@antdking
Copy link
Owner

commands:
  setup-deploy-dependencies:
    steps:
      - command: setup-deploy-dependencies

PIPENV_DEV=1 pipenv run -- python -m clean_actions .github/src/workflows/ci-cd.yml .github/workflows/ci-cd.yml
Traceback (most recent call last):
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/__main__.py", line 3, in <module>
    cli.cli()
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/cli.py", line 11, in cli
    processed = process(contents)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/api.py", line 23, in process
    feature.execute(obj)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/features/commands.py", line 8, in execute
    build_job(obj, job)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/features/commands.py", line 55, in build_job
    build_job(obj, job)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/features/commands.py", line 55, in build_job
    build_job(obj, job)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/features/commands.py", line 55, in build_job
    build_job(obj, job)
  [Previous line repeated 948 more times]
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/features/commands.py", line 34, in build_job
    command = get_command(obj, command_name)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/clean_actions/features/commands.py", line 64, in get_command
    return deepcopy(command)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 161, in deepcopy
    y = copier(memo)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/ruamel/yaml/comments.py", line 953, in __deepcopy__
    res[k] = copy.deepcopy(self[k], memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 161, in deepcopy
    y = copier(memo)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/ruamel/yaml/comments.py", line 482, in __deepcopy__
    res.append(copy.deepcopy(k, memo))
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 161, in deepcopy
    y = copier(memo)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/ruamel/yaml/comments.py", line 954, in __deepcopy__
    self.copy_attributes(res, memo=memo)
  File "/home/anthony/.local/share/virtualenvs/lead-score-service-RY96NHuv/lib/python3.7/site-packages/ruamel/yaml/comments.py", line 361, in copy_attributes
    setattr(t, a, copy.deepcopy(getattr(self, a, memo)))
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 281, in _reconstruct
    state = deepcopy(state, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 221, in _deepcopy_tuple
    y = [deepcopy(a, memo) for a in x]
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 221, in <listcomp>
    y = [deepcopy(a, memo) for a in x]
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 241, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 241, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 216, in _deepcopy_list
    append(deepcopy(a, memo))
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 281, in _reconstruct
    state = deepcopy(state, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 221, in _deepcopy_tuple
    y = [deepcopy(a, memo) for a in x]
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 221, in <listcomp>
    y = [deepcopy(a, memo) for a in x]
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 241, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 281, in _reconstruct
    state = deepcopy(state, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 221, in _deepcopy_tuple
    y = [deepcopy(a, memo) for a in x]
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 221, in <listcomp>
    y = [deepcopy(a, memo) for a in x]
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 150, in deepcopy
    y = copier(x, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 241, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/home/anthony/.pyenv/versions/3.7.9/lib/python3.7/copy.py", line 141, in deepcopy
    d = id(x)
RecursionError: maximum recursion depth exceeded while calling a Python object
make: *** [Makefile:62: build-cd-workflow] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant