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
1.9.0: UnitTestsDSP fails in modified arch build #4387
Comments
Hmm well we run all the tests on every build so def something about your setup |
Thanks for the hint! Do note, that this affects only a test binary, not the packaged binary! I keep these two separated :) |
If you look in the azure pipelines file you can see how we solve this in ci. Basically we stage the resources to a tmp dir and point xdghome at it. Maybe same would work? In our xt branch there’s a variable for direct override but not in 19 |
Not a bug, then? |
@baconpaul okay, using XDG_DATA_HOME is of course much more straight forward for setting up the tests. Unfortunately I still get the same error:
|
Well that is perplexing We don’t get that break on ubuntu One thought is that will use a default wavetable and I wonder if that default could from a fs scan order or some such. That’s a sloppy test of course - we should force a repeatable wavetable. But may be it. If I share a little micro patch here would you be able to try it easily? But probably not today. thanks for your patience and testing! |
Yes, sure! :) |
If you apply that patch, does it work? That forces you to load one of the factor wavetables, makes sure it is loaded My theory is we choose the first wavetable by scan by default. Something about your install is picking one which is silent in the generator at default (either it is a growing wavetable or a one shot or some such). This will force you to something which, in my system, makes sound. I plan to merge this in any case - makes the test far better - but would love to know if it fixes your problem first. Thanks! |
May address surge-synthesizer#4387. Makes the test stronger in any case.
So I pushed that diff just now to our next-release branch (xt-alpha) and all our CI tests passed. Curious if it fixes the problem for you also. If not, then next step is to bring up surge and see if the wavetable oscillator actually makes noise in your system! |
That does indeed fix the test. Thanks! I am suspecting, that if this is a sorting issue, it is probably introduced by the filesystem. I guess the take away is: It is good to be explicit! :) Thanks again for looking into fixing this! |
Apply upstream patch to fix an issue with one of the unit tests: surge-synthesizer/surge#4387 Simplify build() and check() by making use of XDG_DATA_HOME. git-svn-id: file:///srv/repos/svn-community/svn@924007 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Apply upstream patch to fix an issue with one of the unit tests: surge-synthesizer/surge#4387 Simplify build() and check() by making use of XDG_DATA_HOME. git-svn-id: file:///srv/repos/svn-community/svn@924007 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Yeah we don’t rely on fs order per se but the default wt is the first in fs order so we got unlucky here. I’ll merge the fix into both branches today. Thanks! |
May address #4387. Makes the test stronger in any case.
Oh hey @dvzrv I was just looking at https://github.com/archlinux/svntogit-community/blob/packages/surge/trunk/PKGBUILD quickly. A couple of minor things
Thanks! |
hey @baconpaul
Thanks for the drive-by review! :D |
Awesome thanks - I just moved 1701 into our next milestone and will add that flag. Appreciated! |
Bug Description:
When running the unit tests for 1.9.0 the UnitTestsDSP fails.
Surge Version
This information is found on the About screen, which you get to from the bottom right menu
Reproduction Steps:
Steps to reproduce the behavior:
build-test/surge-headless
:Expected Behavior:
All unit tests pass
Screenshots:
n/a
Computer Information (please complete the following information):
Additional Information:
The text was updated successfully, but these errors were encountered: