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

Automatically validate a process graph before download/execute/execute_batch, ... #404

Closed
soxofaan opened this issue Mar 28, 2023 · 2 comments

Comments

@soxofaan
Copy link
Member

The /validation endpoint allows back-end to run some pre-flight checks on a process graph without executing it. This should give quick feedback about the validity of a given process graph, not only in syntactic sense, but also in sense of data availability, or "too large extent" checks.

Doing /validation check automatically (with option to disable it) from .download(), .create_job(), .execute_batch(), ... might be interesting to give quicker feedback to user

@jdries
Copy link
Collaborator

jdries commented Sep 12, 2023

Step 1: log warning but still submit job, this avoids blocking jobs when /validation endpoint doesn't work properly.

JohanKJSchreurs added a commit that referenced this issue Oct 4, 2023
Now execute / download request will always validate process graph unless user asks to skip validation.
JohanKJSchreurs added a commit that referenced this issue Oct 4, 2023
soxofaan added a commit that referenced this issue Oct 17, 2023
- collection level option will be more practical and user friendly
- per `execute` overriding is still possible
- generalize `_warn_if_process_graph_invalid` to `_preflight_validation` (to future proof it)
- additional finetuning
soxofaan added a commit that referenced this issue Oct 17, 2023
- Use `dummy_backend` fixture for more compact setup
- Separate TestExecuteFromJsonResources and TestExecuteWithValidation
soxofaan added a commit that referenced this issue Oct 18, 2023
- use `dummy_backend` for more compact setup
- cover more combinations of server-side support, `auto_validate` and explicit `validate`
- leverage fixture parameterization more to avoid custom fixtures
soxofaan added a commit that referenced this issue Oct 18, 2023
soxofaan added a commit that referenced this issue Oct 18, 2023
soxofaan pushed a commit that referenced this issue Oct 18, 2023
Now execute / download request will always validate process graph unless user asks to skip validation.
soxofaan pushed a commit that referenced this issue Oct 18, 2023
soxofaan added a commit that referenced this issue Oct 18, 2023
- connection level option will be more practical and user friendly
- per `execute` overriding is still possible
- generalize `_warn_if_process_graph_invalid` to `_preflight_validation` (to future proof it)
- additional finetuning
soxofaan added a commit that referenced this issue Oct 18, 2023
- Use `dummy_backend` fixture for more compact setup
- Separate TestExecuteFromJsonResources and TestExecuteWithValidation
soxofaan added a commit that referenced this issue Oct 18, 2023
- use `dummy_backend` for more compact setup
- cover more combinations of server-side support, `auto_validate` and explicit `validate`
- leverage fixture parameterization more to avoid custom fixtures
@soxofaan
Copy link
Member Author

merged PR #481 in 78e8e93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants