edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

Problem with the cli in CI-pipeline

Open Beiri22 opened this issue 5 months ago • 0 comments

Hello,

when using the gel cli in my ci pipeline I occasionally (not everytime) get the following error:

npx gel cli upgrade
node:internal/errors:984
  const err = new Error(message);
              ^
Error: Command failed: /root/.cache/gel/bin/gel info --get install-dir
/bin/sh: /root/.cache/gel/bin/gel: Text file busy
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:891:11)
    at execSync (node:child_process:963:15)
    at runCli (file:///builds/beier1/hsmwapp/node_modules/gel/dist/cli.mjs:145:12)
    at getInstallDir (file:///builds/beier1/hsmwapp/node_modules/gel/dist/cli.mjs:199:24)
    at getCliLocationFromCachedCli (file:///builds/beier1/hsmwapp/node_modules/gel/dist/cli.mjs:114:24)
    at async main (file:///builds/beier1/hsmwapp/node_modules/gel/dist/cli.mjs:38:10)
    at async file:///builds/beier1/hsmwapp/node_modules/gel/dist/cli.mjs:25:1 {
  status: 126,
  signal: null,
  output: [
    null,
    Buffer(0) [Uint8Array] [],
    Buffer(50) [Uint8Array] [
       47,  98, 105, 110,  47, 115, 104,  58,  32,  47,
      114, 111, 111, 116,  47,  46,  99,  97,  99, 104,
      101,  47, 103, 101, 108,  47,  98, 105, 110,  47,
      103, 101, 108,  58,  32,  84, 101, 120, 116,  32,
      102, 105, 108, 101,  32,  98, 117, 115, 121,  10
    ]
  ],
  pid: 236,
  stdout: Buffer(0) [Uint8Array] [],
  stderr: Buffer(50) [Uint8Array] [
     47,  98, 105, 110,  47, 115, 104,  58,  32,  47,
    114, 111, 111, 116,  47,  46,  99,  97,  99, 104,
    101,  47, 103, 101, 108,  47,  98, 105, 110,  47,
    103, 101, 108,  58,  32,  84, 101, 120, 116,  32,
    102, 105, 108, 101,  32,  98, 117, 115, 121,  10
  ]
}

Also with the npx gel migration apply command. Do you have any clue on how to fix that for a reproducible pipeline run? Is there any check the tool can make after downloading .cache/gel/bin/gel and before running it?

Beiri22 avatar Aug 13 '25 20:08 Beiri22