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

errors out for bids-specification with pydantic_core.ValidationError #193

Open
yarikoptic opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@yarikoptic
Copy link
Member

I found that we disabled cron job for it and have a comment

# TEMP: merging with circle ci additions

so I reran (using new helper /mnt/datasets/datalad/ci/cron_job bids-specification on datalad@smaug) and it crashes with

2024-09-06T13:46:07-0400 [INFO    ] tinuous: Fetching releases newer than 2024-08-07 17:27:42.442447+00:00
2024-09-06T13:46:07-0400 [INFO    ] tinuous: Found release v1.10.0
2024-09-06T13:46:07-0400 [INFO    ] tinuous: Fetching resources from circleci
2024-09-06T13:46:07-0400 [INFO    ] tinuous: Fetching pipelines newer than 2022-07-18 00:00:00+00:00
Traceback (most recent call last):
  File "/home/datalad/miniconda3/envs/tinuous-dev/bin/tinuous", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.12/site-packages/click/decorators.py", line 45, in new_func
    return f(get_current_context().obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/datasets/datalad/ci/tinuous/src/tinuous/__main__.py", line 118, 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.model_validate(item)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/datalad/miniconda3/envs/tinuous-dev/lib/python3.12/site-packages/pydantic/main.py", line 567, in model_validate
    return cls.__pydantic_validator__.validate_python(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for Pipeline
trigger.type
  Input should be 'scheduled-pipeline', 'explicit', 'api', 'webhook' or 'Decoupled Ingestion System' [type=enum, input_value='unknown', input_type=str]
    For further information visit https://errors.pydantic.dev/2.8/v/enum
datalad@smaug:/mnt/datasets/datalad/ci$ /mnt/datasets/datalad/ci/cron_job bids-specification
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