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

circleci: type=type_error.none.not_allowed #189

Closed
yarikoptic opened this issue Jun 11, 2024 · 0 comments · Fixed by #190
Closed

circleci: type=type_error.none.not_allowed #189

yarikoptic opened this issue Jun 11, 2024 · 0 comments · Fixed by #190
Assignees

Comments

@yarikoptic
Copy link
Member

while fetching bids-specification logs under datalad@smaug (was disabled on cron, so was not fetched for a while)

it proceeded until a crash with

2024-06-11T18:28:46-0400 [INFO    ] tinuous: Downloading logs for job 21887, step 104-0 to 2024/04/20/push/pull%2f1798/6d1df23/circleci-search_build-7347-success/check_links/104-0.txt
Traceback (most recent call last):
  File "/home/datalad/miniconda3/envs/tinuous-dev/bin/tinuous", line 33, in <module>
    sys.exit(load_entry_point('tinuous', 'console_scripts', 'tinuous')())
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/mnt/datasets/datalad/ci/tinuous/src/tinuous/__main__.py", line 117, in fetch
    for obj in ci.get_build_assets(
  File "/mnt/datasets/datalad/ci/tinuous/src/tinuous/circleci.py", line 98, in get_build_assets
    for pipeline in self.get_pipelines():
  File "/mnt/datasets/datalad/ci/tinuous/src/tinuous/circleci.py", line 68, in get_pipelines
    yield Pipeline.parse_obj(item)
  File "pydantic/main.py", line 578, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 406, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for Pipeline
trigger -> type
  value is not a valid enumeration member; permitted: 'scheduled-pipeline', 'explicit', 'api', 'webhook' (type=type_error.enum; enum_values=[<TriggerType.SCHEDULED: 'scheduled-pipeline'>, <TriggerType.EXPLICIT: 'explicit'>, <TriggerType.API: 'api'>, <TriggerType.WEBHOOK: 'webhook'>])
vcs -> provider_name
  none is not an allowed value (type=type_error.none.not_allowed)
datalad@smaug:/mnt/datasets/datalad/ci/bids-specification$ /home/datalad/miniconda3/envs/tinuous-dev/bin/tinuous --version
tinuous 0.6.1.post27+gc5a0953
yarikoptic added a commit that referenced this issue Jun 12, 2024
CircleCI: Handle `null` vcs.provider_name
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

Successfully merging a pull request may close this issue.

2 participants