-
Notifications
You must be signed in to change notification settings - Fork 3
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
yaml validation #25
yaml validation #25
Conversation
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 file is shared with yaml creator. I tried using git subtree to centralize the access. But had issues with github actions on this app and react with the yaml creator. It would was a time-consuming battle on two fronts. So, I scrapped the idea and copied the file. In the future, I may create a new repo with only validation files. That should not cause github action issues or react issues.
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.
I needed a set up where Unit test (meant to be fast and ran constantly) could easily be ran separate from other test (like integration test that are slow and meant to run on occasions like before push.) So, I created a folder. An option would of had been to add unit-test marker. But it felt jacky and brittle as it fails if one person does not follow convention.
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.
The unit test for convert_yaml are failing and need to be modified as task_epochs associated_files and associated_video_files is an integer rather than an array. The unit test are failing due to to this and fixing them are beyond this PR scope.
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.
Did the yaml generator recently change what it produces for those (in the past month or so)? The yaml it's testing with comes from the yaml generator, so if this is the format people will have when they use the converter then should the validator accept that?
Or am I misunderstanding the issue?
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.
It has been the way it has been for like two of three months. task.task_epochs is an array and associated_files.task_epochs and associated_video_files.task_epochs are integers.
Github action is and fixing it is beyond the scope of this ticket. I different ticket will address it. |
90a938e
to
23752c3
Compare
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.
in github action, we run -
pytest --doctest-modules -v --pyargs src/spikegadgets_to_nwb
That does not like two test with the same name regardless of being in different location. So, I added "_it" to this.
@zoldello where are we on this? |
23752c3
to
abd2d02
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #25 +/- ##
==========================================
+ Coverage 91.25% 91.63% +0.38%
==========================================
Files 20 24 +4
Lines 2058 2177 +119
==========================================
+ Hits 1878 1995 +117
- Misses 180 182 +2
☔ View full report in Codecov by Sentry. |
@samuelbray32 @edeno rebased and test passed. |
No description provided.