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
Raw File
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
package-lock.json
{
  "name": "tezos",
  "lockfileVersion": 2,
  "requires": true,
  "packages": {
    "": {
      "license": "n/a",
      "dependencies": {
        "@nomadic-labs/ocaml-bls12-381": ">=6.1.0 <6.2.0",
        "@nomadic-labs/secp256k1-wasm": ">=0.4.0",
        "hacl-wasm": ">=1.3.0 <1.4.0"
      }
    },
    "node_modules/@nomadic-labs/ocaml-bls12-381": {
      "version": "6.1.0",
      "resolved": "https://gitlab.com/api/v4/projects/39407453/packages/npm/@nomadic-labs/ocaml-bls12-381/-/@nomadic-labs/ocaml-bls12-381-6.1.0.tgz",
      "integrity": "sha1-XtQzkRjvDFxnjaCPSaFtC1jkOeA="
    },
    "node_modules/@nomadic-labs/secp256k1-wasm": {
      "version": "0.4.0",
      "resolved": "https://gitlab.com/api/v4/projects/17524462/packages/npm/@nomadic-labs/secp256k1-wasm/-/@nomadic-labs/secp256k1-wasm-0.4.0.tgz",
      "integrity": "sha1-Ll5cmCToW/dc1T/gVseEMHR1reY="
    },
    "node_modules/hacl-wasm": {
      "version": "1.3.0",
      "resolved": "https://registry.npmjs.org/hacl-wasm/-/hacl-wasm-1.3.0.tgz",
      "integrity": "sha512-JQ0B83LSb6q5Hco+ST/s8zlQxN+fERW8Lt4iGrTCbF5c3p70RjPmE5vRA7Tzw+AZ3zzX+6J9Dwc7iC1vFPRn9A=="
    }
  },
  "dependencies": {
    "@nomadic-labs/ocaml-bls12-381": {
      "version": "6.1.0",
      "resolved": "https://gitlab.com/api/v4/projects/39407453/packages/npm/@nomadic-labs/ocaml-bls12-381/-/@nomadic-labs/ocaml-bls12-381-6.1.0.tgz",
      "integrity": "sha1-XtQzkRjvDFxnjaCPSaFtC1jkOeA="
    },
    "@nomadic-labs/secp256k1-wasm": {
      "version": "0.4.0",
      "resolved": "https://gitlab.com/api/v4/projects/17524462/packages/npm/@nomadic-labs/secp256k1-wasm/-/@nomadic-labs/secp256k1-wasm-0.4.0.tgz",
      "integrity": "sha1-Ll5cmCToW/dc1T/gVseEMHR1reY="
    },
    "hacl-wasm": {
      "version": "1.3.0",
      "resolved": "https://registry.npmjs.org/hacl-wasm/-/hacl-wasm-1.3.0.tgz",
      "integrity": "sha512-JQ0B83LSb6q5Hco+ST/s8zlQxN+fERW8Lt4iGrTCbF5c3p70RjPmE5vRA7Tzw+AZ3zzX+6J9Dwc7iC1vFPRn9A=="
    }
  }
}
back to top