Skip to main content

build-failure

Diagnose Elastic CLI CI and local build failures.

Quellinformationen

Repository
elastic/cli
Letzte Quellaktivität
28. September 2026 um 18:54
Erkannte Sprache von SKILL.md
Englisch
Sterne
47
Forks
27

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
build-failure
description
Diagnose Elastic CLI CI and local build failures.
# Build failure Read the failing job log before changing code. Match the symptom, then apply the fix. JavaScript heap out of memory / `tsc` killed: set `NODE_OPTIONS=--max-old-space-size=8192` (CI already uses 6144). Do not lower memory to make a test pass. `docs/cli/schema.json` is out of date: `npm run build && npm run build:schema`, commit the file. Same-repo PRs can let CI commit it. `NOTICE.txt` is out of date: `node scripts/generate-notice.mjs`, commit if it changed. PR title rejected: conventional commits, lowercase type, no trailing period. Example: `fix: redact cloud credentials`. Edited generated API files: revert `src/es/apis/`, `src/es/api-manifest.ts`, `src/kb/apis.ts`, `src/kb/api-manifest.ts`. Fix the generator or a hand-maintained file (`src/es/register.ts`, `src/factory.ts`) instead. MegaLinter / pre-commit: Docker must be running. Fix the flagged files; do not `--no-verify`. Windows path or spawn failures: use `path.join`, no hard-coded `/`. Tests must pass on Windows, macOS, and Linux. Functional tests: `ELASTIC_CLI_CONFIG_FILE` must be unset unless pointing at an intentional fixture. Kibana functional tests need `kibana_system`, not `elastic`. `npm ci` lock mismatch: do not hand-edit `package-lock.json`. Change `package.json` and re-run `npm install`.
Auf GitHub ansehen