Skip to main content

๐Ÿ› ๏ธ Troubleshooting โ€” Early CLI (early generate-pr)

This guide focuses on issues specific to the Early CLI when running in Jenkins, CircleCI, or other CI/CD environments.

For shared topics like memory crashes, token auth, Jest setup, or commit issues โ€” see Fundamentals Troubleshooting โ†’.


โŒ No Test Files Generatedโ€‹

This can happen for several different reasons, ranging from configuration or permissions issues to already-covered code.

Please go through the checklist step by step in
๐Ÿ‘‰ Why No Tests Were Generated

That guide explains every possible cause โ€” including missing CLI installation, coverage command failures, validation errors, SCM permissions, and more โ€” along with how to fix each one.


๐Ÿ“ฆ CLI Installation Fails (401 or npm auth error)โ€‹

Likely due to GitHub Packages authentication failure.

See GitHub Packages Install Failures โ†’


๐Ÿ”‘ Missing or Invalid API Keyโ€‹

See API Key Missing or Invalid โ†’


๐Ÿ” GitHub Token Error or Git Push Failsโ€‹

See Token Insufficient or Git Push Fails โ†’


๐Ÿ’ฅ Out of Memory Errorโ€‹

See Node.js Heap / OOM Fixes โ†’


๐Ÿšซ No Test Files Generatedโ€‹

See Testable Code Not Found โ†’


โš ๏ธ Jest Not Installed or Misconfiguredโ€‹

See Jest Setup Missing โ†’


โš ๏ธ Lint / Prettier Hook Breaks Commitโ€‹

If commits fail due to linting or formatting rules in your repo, configure:

export LINT_COMMAND="npx --no eslint $early_filename --fix"
export PRETTIER_COMMAND="npx --no prettier $early_filename --write"

See Lint/Prettier Failures โ†’


๐Ÿงช Coverage Command Failsโ€‹

See Custom Coverage Command Errors โ†’


โš™๏ธ SCM or Git Errors in CIโ€‹

Ensure:

  • Git is installed and configured in the agent image
  • Token is injected as a credential
  • You are using a full clone (not shallow)

See Git or SCM Errors โ†’


๐Ÿ“š More Helpโ€‹