-
Notifications
You must be signed in to change notification settings - Fork 40
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
Bad error message when GUNW file missing in S3 bucket #648
Comments
Hi, I'm working on a PR to add your improve error messages and right now I'm writing tests to make sure they are triggered instead of the old error from now on. Can you please send steps to reproduce the error so I can put it into the tests? |
@bbuzz31 do you have an example yaml that calls a GUNW product that would work for testing this? I think the only thing we really need is a yaml that references a GUNW product directly. |
@cmarshak can you chime in? I'm useless with hyp3 |
This is reproduced on the cloud and can't be reproduced exactly locally - tests for this would be mocked (see the GUNW tests for examples). I wouldn't recommend doing this right now; Joe did an excellent job documenting the roadmap to fix this. |
@garlic-os to see the happy path, you can use this ARIA GUNW job for the next 5 days (expires You can list the files for this job like:
(After it expires, you can have @cmarshak show you how to run/find new ones) Likewise, for the failure case, you can use this ARIA GUNW job since it's expired and the GUNW
But yes, for adding an integration test, @cmarshak is right; you'll want to mock similar to the GUNW tests or stage test cases in a testing bucket somewhere. |
Thanks for the info, folks. I'm getting a 401 Not Authorized on both those job links. Is there something I need to do to authenticate? |
Yes, you need an ASF cookie which you can get by signing into Vertex with an Earthdata Login. You can also use the job UUID (bucket prefix) and the HyP3 SDK I think you only really need the info in the S3 path: Note: RAiDER will bonk when trying to upload the final product to |
Thanks again for your advice everyone. I have code + tests ready in #658 now, and I went ahead and marked that PR ready for review. |
When running RAiDER in HyP3 independently against a previous INSAR_ISCE job, RAiDER looks for a GUNW product in the provided S3 bucket and job_id prefix. However, there are cases where there won't be a GUNW product in the bucket, such as:
When this happens,
aws.get_s3_file
returnsNone
here:https://github.com/jhkennedy/RAiDER/blob/dev/tools/RAiDER/cli/raider.py#L523
and then either:
for the HRRR model, the
None
gets converted to the string'None'
which becomes the GUNW ID:https://github.com/jhkennedy/RAiDER/blob/dev/tools/RAiDER/cli/raider.py#L525-L527
and this line
https://github.com/jhkennedy/RAiDER/blob/dev/tools/RAiDER/cli/raider.py#L528
raises an exception like:
for other weather models, it likely fails similarly opaquely in these lines:
https://github.com/jhkennedy/RAiDER/blob/dev/tools/RAiDER/cli/raider.py#L533-L542
either when checking the weather model availability or trying to load the GUNW ingest JSON file. If somehow it manages to get through all that, then it will raise this exception, which still doesn't explain the problem adequately:
https://github.com/jhkennedy/RAiDER/blob/dev/tools/RAiDER/cli/raider.py#L544-L545
Ideally, an exception would be thrown like:
here:
https://github.com/jhkennedy/RAiDER/blob/dev/tools/RAiDER/cli/raider.py#L523
And an:
here:
https://github.com/jhkennedy/RAiDER/blob/dev/tools/RAiDER/cli/raider.py#L539
The text was updated successfully, but these errors were encountered: