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

Check and return errors while validating science image. #555

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

draghuram
Copy link
Contributor

@draghuram draghuram commented Mar 4, 2023

Fixes #540.

This PR is not ready to be merged yet. The code works but tests need to be changed as well. How ever, I am running into issues while running tests. Firstly, the test instructions in "README" don't work as there is no "setup.py" in "servicex_app" directory. I managed to install all dependencies explicitly but some tests keep failing even in develop branch. It will be great if someone can tell me if the tests are maintained and if they are expected to succeed.

I manually tested the change by using the science image "sslhep/sslhep/servicex_code_gen_func_adl_uproot" and the request fails (as expected) with this error:

servicex.utils.ServiceXException: (ServiceXException(...), 'ServiceX rejected the transformation request: (400){"message": "Unexpected error in validating transformer docker image (sslhep/sslhep/servicex_func_adl_uproot_transformer:v1.1.4), status_code: 503, msg (b\'<html><body><h1>503 Service Unavailable</h1>\\\\nNo server is available to handle this request.\\\\n</body></html>\\\\n\\\\n\')"}\n')

@draghuram draghuram marked this pull request as draft March 4, 2023 17:14
@codecov
Copy link

codecov bot commented Mar 4, 2023

Codecov Report

Patch coverage has no change and project coverage change: +2.83 🎉

Comparison is base (eb568b0) 92.72% compared to head (66d4d13) 95.55%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #555      +/-   ##
===========================================
+ Coverage    92.72%   95.55%   +2.83%     
===========================================
  Files           80       28      -52     
  Lines         2309      720    -1589     
  Branches       154        7     -147     
===========================================
- Hits          2141      688    -1453     
+ Misses         143       28     -115     
+ Partials        25        4      -21     
Impacted Files Coverage Δ
tests/test_servicex_adapter.py 100.00% <0.00%> (ø)
src/transformer_sidecar/servicex_adapter.py 92.00% <0.00%> (ø)
servicex/resources/internal/transform_start.py
servicex/decorators.py
servicex/app.py
servicex/docker_repo_adapter.py
servicex/resources/info.py
servicex/resources/transformation/get_one.py
servicex/resources/users/pending_users.py
servicex/resources/internal/transform_status.py
... and 44 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

ServiceX fails to report science image missing under certain circumstances
1 participant