-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Warn on DAL overflow #329
Warn on DAL overflow #329
Conversation
Codecov Report
@@ Coverage Diff @@
## main #329 +/- ##
==========================================
+ Coverage 75.49% 75.52% +0.02%
==========================================
Files 44 44
Lines 5125 5131 +6
==========================================
+ Hits 3869 3875 +6
Misses 1256 1256
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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.
Looks basically fine too me. A few nitpicks that I'd rather see fixed/addressed before merging this:
- Quite a few of the test VOTables were re-written and thus have meaningless changes. I'm not saying that's a drama, but saying a few words how these changes came about would be great.
- There's now an overflow warning in pyvo/dal/tests/test_datalink.py::test_datalink_batch, which is because the obscore test result (pyvo/dal/tests/data/datalink/datalink-obscore.xml) is overflowing on creation. I'd be fine with both manually removing the INFO element and with swallowing the warning. It shouldn't go unhandled, though.
I've run the script that generates these files with a different version of
Good point. I've missed that. |
@msdemlei - I've opted for removing the |
On Mon, May 16, 2022 at 09:15:08AM -0700, Adrian wrote:
> * Quite a few of the test VOTables were re-written and thus have
> meaningless changes. I'm not saying that's a drama, but saying a
> few words how these changes came about would be great.
I've run the script that generates these files with a different
version of `astropy`(`votable`). Where should I add this comment?
Well, under normal circumstances I'd use the commit message
("recreated some test VOTables in the process; changes are syntactic
only"). Since the branch isn't merged yet, I guess a rebase -i
editing the message would be an option.
But as I said: I don't think anyone who should be reading this code
would ever be confused by the changes even when they're not mentioned
in the commit message.
|
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 good to me. Just the one question about the placement of the INFO
element in the test data.
@@ -376,9 +381,13 @@ def _findstatus(self, votable): | |||
|
|||
def _findstatusinfo(self, infos): | |||
# this can be overridden to specialize for a particular DAL protocol | |||
status = None | |||
# return the last status to catch potential overflow or error sent |
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 is interesting. I had to go back and look at the DALI standard to see that this would work to the OVERFLOW
case (i.e., that OVERFLOW
would come last).
Fix for #322 .