-
Notifications
You must be signed in to change notification settings - Fork 111
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
Fix HED error reporting and tests #2174
Fix HED error reporting and tests #2174
Conversation
Let me know if the additional warnings for missing |
87971f6
to
1552829
Compare
This is now reliably timing out tests at 10s. Looking at it, I would guess that there's an efficiency problem with the use of |
I didn't really add any new uses of |
Would it be possible to run the tests with profiling enabled? Even better would be having both "before this PR" and "after this PR" profiles, to see any significant changes. Without something like this, it's really hard to diagnose performance issues. |
It does not look trivial, but we can look into it. If there's an example somewhere of someone setting up profiling for jest tests, that would be a helpful model. |
The timeouts are because the tests are not structured properly. Any time a testcase assertion fails, the |
f69a47a
to
519642e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2174 +/- ##
==========================================
+ Coverage 85.72% 87.43% +1.70%
==========================================
Files 91 133 +42
Lines 3784 7045 +3261
Branches 1221 1671 +450
==========================================
+ Hits 3244 6160 +2916
- Misses 454 789 +335
- Partials 86 96 +10 ☔ View full report in Codecov by Sentry. |
Okay, so it looks like datasets without HED in are now expected to raise HED warnings? |
This does not issue warnings for missing HEDVersion fields for every dataset.
2632820
to
a656a9c
Compare
I rewrote the branch so that it no longer raises warnings for missing |
Thanks! |
This PR fixes the reporting of
IssueError
objects thrown from hed-validator by converting them into properIssue
objects. It also cleans up several errors in the HED tests that should have been failing. This should help with the eventual merging of #2167.Fixes #2170