Skip to content

Increase @sap/cds-indexer timeout from 2 min to 10 min#308

Merged
data-douser merged 2 commits intodd/cds-extractor-update/1from
copilot/sub-pr-303
Feb 23, 2026
Merged

Increase @sap/cds-indexer timeout from 2 min to 10 min#308
data-douser merged 2 commits intodd/cds-extractor-update/1from
copilot/sub-pr-303

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

Projects declaring @sap/cds-indexer as a dependency are inherently large CAP projects — a 120-second timeout is inadequate for indexing all their *.cds files.

What This PR Contributes

  • Increases CDS_INDEXER_TIMEOUT_MS in extractors/cds/tools/src/cds/indexer.ts from 120_000 ms (2 min) to 600_000 ms (10 min)

Future Works

  • Consider making the timeout configurable via an environment variable for projects that may require even longer indexing times

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on timeout for @sap/cds-indexer support Increase @sap/cds-indexer timeout from 2 min to 10 min Feb 23, 2026
@data-douser data-douser marked this pull request as ready for review February 23, 2026 16:34
@data-douser data-douser merged commit 7308c06 into dd/cds-extractor-update/1 Feb 23, 2026
@data-douser data-douser deleted the copilot/sub-pr-303 branch February 23, 2026 16:34
data-douser added a commit that referenced this pull request Feb 26, 2026
* Add best-effort @sap/cds-indexer support to CDS extractor

- Integrate indexer orchestration into cds-extractor.ts between
  dependency installation and compilation phases
- New src/cds/indexer.ts: detect projects using @sap/cds-indexer and
  run `npx --yes @sap/cds-indexer` before compilation, with graceful
  error handling and diagnostic warnings on failure
- Include @sap/cds-indexer in dependency cache when declared in
  project package.json (dependencies or devDependencies)
- Add addCdsIndexerDiagnostic() to diagnostics.ts
- Add unit tests to cover new indexer and diagnostic functions
- Fix Jest localstorage-file warnings on Node.js v25+

* Update extractors/cds/tools/src/diagnostics.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Sync dist/cds-extractor.bundle.js.map

* Increase @sap/cds-indexer timeout from 2 min to 10 min (#308)

* Initial plan

* Increase CDS indexer timeout from 120s to 600s (10 minutes)

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants