-
Notifications
You must be signed in to change notification settings - Fork 3
DM-50550: Enable exception diagnostics output in pipetask report #339
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
base: main
Are you sure you want to change the base?
Conversation
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
fcd4926 to
25d25f4
Compare
cmsaunders
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, except for some small points I have commented on. I can't tell if the mypy changes are needed or not, since it's still not passing the checks.
|
|
||
|
|
||
| @click.command(cls=PipetaskCLI, context_settings=dict(help_option_names=["-h", "--help"])) | ||
| @click.command(cls=PipetaskCLI, context_settings=dict(help_option_names=["-h", "--help"])) # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why you had to add this? I see it's part of the commit "Ignore mypy abstract class error", but mypy still doesn't seem to like it.
| interactive (searchable and sortable) using Astropy's JSViewer writer. | ||
| This is a troubleshooting-oriented report of the exceptions combined | ||
| with the exposure dimension records. | ||
| show_exception_diagnostics : `bool` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"`bool`, optional"
| and for searching and counting specific kinds or instances of failures. | ||
| This option will also print a "brief" (counts-only) summary to stdout. | ||
| logs : `bool` | ||
| exception_diagnostics_filename : `str` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be an optional argument?
| if ext in write_formats: | ||
| return ext | ||
|
|
||
| return default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A WARNING would be helpful here so the user knows the default will be used.
| full_output_filename : `str` or `None` | ||
| Name of the JSON file in which to store summary information, if | ||
| passed. | ||
| exception_diagnostics_filename : `str` or `None` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add ", optional" here and in the following docstrings, like you did above.
|
To get everything passing you will need to modify requirements.txt to make it point at the pipe_base ticket branch. |
dd1d648 to
85232cc
Compare
Checklist
doc/changes