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

Validate shell command as source and url source. #243

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

haixuanTao
Copy link
Collaborator

@haixuanTao haixuanTao commented Apr 1, 2023

In #237, I have centralised the validation of yaml graph, so that every process that read a yaml graph can validate it, avoiding propagating failing yaml graph.

This validation method was copied from the cli check method.

However, in the original cli check, we did not add validation for shell command and we failed source that were url.

This Pull Request validate both sources.

P.S: I have left the TODO: testing of url source as I'm not sure of what the best appropriate approach is at the moment, especially in a case of distributed dora-daemon

P.S.2: I have added a small default in the Descriptor communication to remove the need to specify the communication in the yaml file.

In #237, I have grouped the validation of yaml as a method of descriptor.

This validation was copied from the `cli check` method. However, we did not
add the validation of shell command and accept url as valid source in the
original `cli check`.

This Pull Request validate both sources.
@haixuanTao haixuanTao merged commit d84fc8e into release-v0.2.2 Apr 3, 2023
@haixuanTao haixuanTao deleted the validate-shell-command-and-source-url branch April 3, 2023 01:46
Copy link
Collaborator

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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 this pull request may close these issues.

2 participants