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
fluid-synth 2.0.9 #46793
fluid-synth 2.0.9 #46793
Conversation
Looks like I need to completely replace the test because they forgot to update |
If you can make the test better that would be awesome. Regardless you might want to report it upstream. |
71dbd30
to
af484ed
Compare
I've made it run a 8 second midi file with the volume set to 0 (to not spook the user). Because it's audio, it might well fail in the CI - we'll see. There's other audio-related formulae which have that issue. |
|
Yes, that only happens on the CI. Seems like audio playback hangs on there and I’m not sure if there’s much I can do or not. You can try it locally as well if you want. |
Looking to move this forward considering 2.0.8 is simply broken and we should update to 2.0.9 as soon as we can. Considering the lack of audio support on the CI, I can't see any way to have a meaningful test that also works on the CI. Any thoughts anyone? |
|
Generating a .wav file like below would probably be an appropriate test. It wouldn't have caught #46643 since that was caused by undefined behaviour in the CoreAudio driver which apparently hangs in CI. I've only sparingly touched Ruby but taking inspiration from https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb#L106, the below works on my system. I'm happy to make a PR for v2.1.0 with this test unless @Bo98 wants to update this PR. test do
# Synthesize wav file from example midi
resource("example_midi").stage testpath
wavout = testpath/"Drum_sample.wav"
system bin/"fluidsynth", "-F", wavout, pkgshare/"sf2/VintageDreamsWaves-v2.sf2", testpath/"Drum_sample.mid"
assert_predicate wavout, :exist?
end Additionally, should |
Superseded by #48863 which updates the version to the latest release. |
Created with
brew bump-formula-pr
.