-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Make test_launch_ipfs_daemon
and pollEndpoint
more reliable
#8311
Comments
test_launch_ipfs_daemon
and pollEndpoint
are more reliabletest_launch_ipfs_daemon
and pollEndpoint
more reliable
Some loose working notes to be incorporated later:
|
Closing this in favor of more specific actionable items like:
From my review of the sharness test it seems that adding some concurrent check for the daemon to be up in parallel with the running tests in bash is a very involved task and it doesn't seem to have high value at the moment (this should be revisited if we hit more flaky tests like #8131). |
Checklist
Description
Spawned from #8131. In that test (it is likely that) the daemon was not running when it was supposed to and we caught it by chance just because there was a slight change in the behavior of a specific command that made the test fail. (Not sure if in that case the daemon failed/crashed at some point or didn't start altogether.)
We should review the
pollEndpoint
command and add some tests if possible. Additionally it would be useful to leave some check (pollEndpoint
or other) running in the background during sharness tests and periodically check that the daemon is running.Somewhat related to this (but should have its own issue if valuable): As an additional measure the command should be able to tell when it is intending to work through the daemon or not.
Right now we have the
NoRemote
/NoLocal
flags at the command level (in thego-ipfs-cmds/command.go
library) but we might want more granularity than that. For example in the above test the--flush=false
option inipfs files write
should turn that command into aNoLocal
one (to make sure we don't close and flush the local MFS root in the IPFS instance).Maybe this requirement is too specific to this command alone and in that case just doing an independent check inside the command itself to make sure the daemon is running before executing might be enough.
The text was updated successfully, but these errors were encountered: