Repository navigation
Tests fail when using fish (and possibly other shells) #462
Description
Activity
- addeduntriagedAn issues and pull request that needs to be looked at by a maintainerAn issues and pull request that needs to be looked at by a maintainer
on Apr 2, 2026 - addedcode healthM-T: Test improvements and anything that improves code healthM-T: Test improvements and anything that improves code healthbuildM-T: Changes to compilation and CI processesM-T: Changes to compilation and CI processesand removeduntriagedAn issues and pull request that needs to be looked at by a maintainerAn issues and pull request that needs to be looked at by a maintainer
on Apr 2, 2026 👋 Hey @artlogic! Thank you for sharing these findings with us! 🧪
We test our production builds on Windows with stable findings alongside ongoing developments, but hadn't run the unit tests so recent! I can confirm this is an issue perhaps specific to Windows since the
fishshell didn't cause issue for me at this time.Let's keep #464 as grounds to improve these checks - our tests are strict for expected outputs that might be different on outputs of
pwshas well.👋 Hey @artlogic! Thank you for sharing these findings with us! 🧪
We test our production builds on Windows with stable findings alongside ongoing developments, but hadn't run the unit tests so recent! I can confirm this is an issue perhaps specific to Windows since the
fishshell didn't cause issue for me at this time.Let's keep #464 as grounds to improve these checks - our tests are strict for expected outputs that might be different on outputs of
pwshas well.Thanks! One point of clarification - I'm actually running tests on Arch Linux (under WSL2) so this would specifically be a Linux issue. What version of fish did you test with? I'm using 4.6.0 - it's possible older versions might not exhibit the behavior.
Also, you may already know this, but testing this behavior requires running tests like so:
SHELL=/usr/sbin/fish go test ./...or changing your default shell. The tests appear to use the default (not your current).Reacted by Eden ZimbelmanReacted by Eden ZimbelmanReacted by Eden ZimbelmanReacted by Eden Zimbelman@artlogic Ahhaha thanks for the note that the test command has to use the
fishshell itself 🎣 ✨I can confirm these errors and think the matrix of tests above might be added to! AFAICT, with the
SHELLvariable set, therunand thedeploycommand still work as expected so these errors might be limited to tests? 🧪@artlogic Ahhaha thanks for the note that the test command has to use the
fishshell itself 🎣 ✨I can confirm these errors and think the matrix of tests above might be added to! AFAICT, with the
SHELLvariable set, therunand thedeploycommand still work as expected so these errors might be limited to tests? 🧪Yes, the errors seem to be limited to the tests. I would be happy to provide a potential fix in a PR if that would be acceptable?
Reacted by Eden ZimbelmanReacted by Eden ZimbelmanReacted by Eden Zimbelman
Description
When attempting to run tests under fish, the following errors are incorrectly thrown:
This seems to be due to a dependency on particular shell syntax/messages in the tests.
Version
Using slack-cli v3.15.0
OS Info
Arch Linux (under WSL2)
Steps to reproduce:
Share the commands to run, source code, and project settings:
go test ./...Expected result:
I expected the tests to pass.
Actual result:
The tests failed, as shown above.
Requirements