Skip to content
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

buildMorphirAPI2 CI step is silently failing for releases #1207

Open
Ben-Grant opened this issue Dec 5, 2024 · 0 comments
Open

buildMorphirAPI2 CI step is silently failing for releases #1207

Ben-Grant opened this issue Dec 5, 2024 · 0 comments
Labels
task Task level project item

Comments

@Ben-Grant
Copy link

Ben-Grant commented Dec 5, 2024

Describe the bug
buildMorphirAPI2 CI step is silently failing since at least version 2.90.0

To Reproduce
Steps to reproduce the behavior:

  1. Look at Actions history for Node.js CI, and choose any of the releases since 2.90.0
  2. Scroll to somewhere around line 620
  3. See below error:
Error building morphir API 2 Error: Command failed with ENOENT: npx tsc --project lib/tsconfig.json
spawn npx tsc ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn npx tsc',
  path: 'npx tsc',
  spawnargs: [ '--project', 'lib/tsconfig.json' ],
  originalMessage: 'spawn npx tsc ENOENT',
  shortMessage: 'Command failed with ENOENT: npx tsc --project lib/tsconfig.json\n' +
    'spawn npx tsc ENOENT',
  command: 'npx tsc --project lib/tsconfig.json',
  escapedCommand: '"npx tsc" --project "lib/tsconfig.json"',
  exitCode: undefined,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: '',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Expected behavior
buildMorphirAPI2 CI step succeeds and declarations files are emitted by tsc.

Desktop (please complete the following information):

  • OS: Actions
  • Browser N/A
  • Version >= 2.90.0

Additional context
While it is possible this happened in 2.89.0, the logs have been purged, using npm install for this version results in the expected behaviour as per the docs. Using the later versions will result in the module "morphir-elm" not being found. This is likely because the module's declarations file is not generated (usually main.d.ts), which exposes the importable functions/classes. You can also verify this by installing each version and looking in node_modules for the main.d.ts file. This step runs tsc, which emits these files.

Logs:
2.90.0
2.90.1
2.91.0

@Ben-Grant Ben-Grant added the task Task level project item label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Task level project item
Projects
None yet
Development

No branches or pull requests

1 participant