eventespresso / barista

Javascript modules & tools for Event Espresso development
GNU General Public License v3.0
5 stars 1 forks source link

Investigate failed workflow "Deploy Production Assets To Cafe" #1304

Closed alexkuc closed 4 months ago

alexkuc commented 4 months ago

https://github.com/eventespresso/barista/actions/runs/8911677485/attempts/1

alexkuc commented 4 months ago

Original for abbreviation ENOENT: https://stackoverflow.com/questions/19902828/why-does-enoent-mean-no-such-file-or-directory

alexkuc commented 4 months ago

Re-running leads to exactly the same error which is why 3rd attempt was cancelled

alexkuc commented 4 months ago

Failed line in the log:

converting pot to PHP...
node:internal/fs/utils:347
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/home/runner/work/barista/build/js-translations.pot'
    at Object.openSync (node:fs:590:3)
    at Object.readFileSync (node:fs:458:35)
    at convertPOTToPHP (/home/runner/work/barista/barista/node_modules/@types/wordpress__i18n/node_modules/@wordpress/i18n/tools/pot-to-php.js:107:24)
    at Object.<anonymous> (/home/runner/work/barista/barista/node_modules/@types/wordpress__i18n/node_modules/@wordpress/i18n/tools/pot-to-php.js:136:1)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:[22](https://github.com/eventespresso/barista/actions/runs/8911677485/job/24475383032#step:10:23):47 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/runner/work/barista/build/js-translations.pot'

https://github.com/eventespresso/barista/actions/runs/8911677485/job/24475383032#step:10:20

alexkuc commented 4 months ago

Failed line in the shell script: https://github.com/eventespresso/barista/blob/35bcecec5044a67970d8b9e1e416bc235b348d3f/tools/copy-changes.sh#L91-L92

alexkuc commented 4 months ago

Version of package @wordpress/i18n used:

https://github.com/eventespresso/barista/blob/35bcecec5044a67970d8b9e1e416bc235b348d3f/packages/i18n/package.json#L18

alexkuc commented 4 months ago

Link to source for the binary pot-to-php

alexkuc commented 4 months ago

File js-translations.pot is created by babel.config.js

alexkuc commented 4 months ago

I think we somehow managed to hit this bug (still investigating)