Skip to content

Commit f48a3e5

Browse files
iankhougithub-actions
andauthored
fix(orchestration): execution fails when package not available in NPM (#1760)
Ignore 'jsii-docgen.NpmError.ETARGET' error after retries fail. Motivated by an execution failure: ```json { "cause": { "message": "Command \"npm install \"/tmp/packages-ynuuej/package.tgz\" --ignore-scripts --no-audit --no-bin-links --no-package-lock --json --include=dev --include=peer --include=optional --save\" exited with code 1: No matching version found for @aws-mdaa/naming@^1.0.20250708164847.\nIn most cases you or one of your dependencies are requesting\na package version that doesn't exist.", "name": "jsii-docgen.NpmError.ETARGET", "stack": "jsii-docgen.NpmError.ETARGET: Command \"npm install \"/tmp/packages-ynuuej/package.tgz\" --ignore-scripts --no-audit --no-bin-links --no-package-lock --json --include=dev --include=peer --include=optional --save\" exited with code 1: No matching version found for @aws-mdaa/naming@^1.0.20250708164847.\nIn most cases you or one of your dependencies are requesting\na package version that doesn't exist.\n at assertSuccess (/node_modules/jsii-docgen/src/docgen/view/_npm.ts:302:13)\n at Npm.install (/node_modules/jsii-docgen/src/docgen/view/_npm.ts:51:7)\n at async Function.forPackage (/node_modules/jsii-docgen/src/docgen/view/documentation.ts:145:18)\n at async <anonymous> (/src/backend/transliterator/transliterator.ecstask.ts:214:20)\n at async ensureWritableHome (/src/backend/transliterator/transliterator.ecstask.ts:441:12)\n at async handler (/src/backend/transliterator/transliterator.ecstask.ts:67:18)\n at async main (/src/backend/transliterator/transliterator.ecs-entrypoint.ts:59:20)" }, "error": "jsii-docgen.NpmError.ETARGET", "resource": "runTask.waitForTaskToken", "resourceType": "ecs" } ``` The root cause is that `@aws-mdaa/[email protected]` depends on `@aws-mdaa/[email protected]`, and the latter does not exist in NPM. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent 7710d87 commit f48a3e5

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

src/__tests__/__snapshots__/construct-hub.test.ts.snap

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)