https://gitlab.com/tezos/tezos
Revision f9c6f24b05c2a7354c956486ca746353d18e61f2 authored by Thomas Letan on 26 May 2023, 07:21:51 UTC, committed by Marge Bot on 30 May 2023, 08:48:22 UTC
`tail -F' is more reliable, because `-F' implies retrying.

When messing around with runners, I ran into scenarios where the `cat' call
would prematurly exit (typically when importing a snapshot from a remote),
which then would cause the daemon to hang when it tried to write in the pipe.

`tail -F' is often suggested as a way to ensure your pipe remains always
writable. Applying this suggestion fixes my issue.

One can convinces oneself that this approach is fine by running existing
scenarios from the `bin_testnet_scenarios' folder. Additionnally, from a
terminal

    mkfifo foo
    tail -F foo

and from another terminal

    echo bar > foo
    echo foobar > foo

will have the expected outcome, that is `bar' then `foobar' are printed by the
`tail' process.
1 parent 856bcdf
History
Tip revision: f9c6f24b05c2a7354c956486ca746353d18e61f2 authored by Thomas Letan on 26 May 2023, 07:21:51 UTC
Tezt: Use `tail -F' instead of `cat' with runners
Tip revision: f9c6f24
File Mode Size
.github
.gitlab
_coverage_output
contrib
devtools
docs
emacs
manifest
michelson_test_scripts
nix
opam
script-inputs
scripts
src
tezt
vendors
.dockerignore -rw-r--r-- 1.1 KB
.gitattributes -rw-r--r-- 369 bytes
.gitignore -rw-r--r-- 1.5 KB
.gitlab-ci.yml -rw-r--r-- 6.2 KB
.npmrc -rw-r--r-- 62 bytes
.ocamlformat -rw-r--r-- 388 bytes
.pylintrc -rw-r--r-- 17.4 KB
CHANGES.rst -rw-r--r-- 4.5 KB
CODEOWNERS -rw-r--r-- 4.6 KB
Dockerfile -rw-r--r-- 4.1 KB
LICENSE -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 17.2 KB
README.md -rw-r--r-- 3.5 KB
build.Dockerfile -rw-r--r-- 2.6 KB
contributing.md -rw-r--r-- 2.2 KB
default.nix -rw-r--r-- 3.4 KB
dune -rw-r--r-- 903 bytes
dune-project -rw-r--r-- 11.6 KB
dune-workspace -rw-r--r-- 509 bytes
kernels.mk -rw-r--r-- 1.3 KB
package-lock.json -rw-r--r-- 1.9 KB
package.json -rw-r--r-- 343 bytes
poetry.lock -rw-r--r-- 35.9 KB
pyproject.toml -rw-r--r-- 1.0 KB
rust-toolchain -rw-r--r-- 7 bytes
shell.nix -rw-r--r-- 2.9 KB

README.md

back to top