-
Notifications
You must be signed in to change notification settings - Fork 331
testC3DFileAdapter failing on AppVeyor: "Unable to load 'walking2.c3d' within 100.000000ms." #2217
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
Comments
I agree this is annoying especially since we had no issues with it failing initially. The purpose of this condition was to avoid slowdowns creeping back in without us knowing. If we need to make this condition 200ms or longer to pass on CI I can do that, but then the test may be less effective. The original C3D reading code was taking several seconds, so perhaps even 200ms would still be better than nothing. I am open to suggestions. |
Great idea! I'll try to swing this. |
The issue reappeared on AppVeyor, the timing test fails in one configuration and not the other! Obviously we can't control how ci servers prioritize jobs. I'm hesitant to double the time in general but maybe we can double it on appveyor machines only since these seem to be much slower. Other thoughts @chrisdembia @tkuchida ? |
Since we don't have this granularity, the options are to skip test altogether on CI (I prefer not to do it since it's the only test that uses the BTK library), or just comment out the timing section which will be removed on all platforms. I'm leaning to the latter since measuring timing on ci is rather fragile anyway. |
Could also move just this timing test into a separate test file that is skipped on CI but run locally 🐫 |
I thought about that too @tkuchida but didn't like the code duplication 🦆 🦆 |
I think we simply introduce an environment variable into the test to control whether or not the timing is run. |
https://ci.appveyor.com/project/opensim-org/opensim-core/branch/master/job/9cqyblh302drdukf#L245
See testC3DFileAdapter.cpp#L78-L81:
opensim-core/OpenSim/Common/Test/testC3DFileAdapter.cpp
Lines 78 to 81 in 5a59cd7
From PR #2198. @aseth1
The text was updated successfully, but these errors were encountered: