Repository navigation
Sort by mutation time and check sort in integrity - #726
Conversation
jeromekelleher
left a comment
There was a problem hiding this comment.
LGTM, but I'm not sure the verification logic is correct.
|
@jeromekelleher RFR! Happy to hear suggestions for further tests or docs I missed. |
|
Actually, hold fire - seems windows wants to put unknown first and |
|
So for the current |
|
Is this because of stable and unstable sorting algs in the libc implementations @benjeffery? |
|
Ugh, this is nasty. The only simple way out of this I can see is to disallow mixed known and unknow times at a site. That way we should never have to compare unknown times with anything. It's the edgiest of edge-cases, in any case (who is actually going to do this?). @petrelharp, any thoughts here? It's great this has come up now - testing works! |
|
@petrelharp, we could use your input here. Do you object to disallowing mixed known and unknown times at a site? Otherwise, we get into undefined behaviour because or sort keys are ill defined, as Ben has shown here. |
|
I agree: disallow mixed missing/nonmissing times. I don't see a good way around it and don't know if a reason we'd need to have mixed times. Ps Sorry for the delay, I am on semi vacation. |
|
No worries, thanks for having a look. We can allow mixed known/unknown as long as |
Let's enforce it as a table-level requirement. It's just hassle for us otherwise. |
Codecov Report
@@ Coverage Diff @@
## master #726 +/- ##
==========================================
- Coverage 87.69% 87.66% -0.04%
==========================================
Files 24 24
Lines 19323 19346 +23
Branches 3618 3624 +6
==========================================
+ Hits 16946 16960 +14
- Misses 1292 1297 +5
- Partials 1085 1089 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
ddc30d7 to
94b01d8
Compare
|
Seems to be some issues with coverage reporting as C lines I know are covered from python are not showing as such. |
|
nice work on this @benjeffery, thanks! |
Fixes #651
Needs python test work now.