datadog-ci icon indicating copy to clipboard operation
datadog-ci copied to clipboard

This package is quite large

Open schmod opened this issue 1 year ago • 1 comments

Feature request description

Due to the number of cloud-provider SDKs that this package depends on, the footprint for installing datadog-ci is massive.

If I initialize an empty NPM project and install only datadog-ci, I need to install 420 unique dependencies, weighing in at 146MB.

$ npm ls -a | sed '/deduped$/d' | wc -l
420

$ du -d 1 -h .
146M	./node_modules
146M	.

Solution

I'd like for Datadog to consider shipping a modular version of this package that does not depend on large SDKs from cloud providers that I do not use.

I should not need to install 146 megabytes of dependencies to upload a sourcemap.

Additional context

No response

Command

None

schmod avatar Feb 01 '24 19:02 schmod

thats what she said ...

shm-eboks avatar Sep 06 '24 07:09 shm-eboks

Bumping, alongside the provider packages (100mb for azure, we have no need for this lib as we're on AWS and vice versa), why do we need 20mb for an interactive CI tool? https://www.npmjs.com/package/inquirer-checkbox-plus-prompt

└─┬ @datadog/[email protected]
  ├─┬ [email protected]
  │ └── [email protected] deduped
  └── [email protected]

this will primarly run in a CI env where this isn't needed and in the @datadog node_modules there's a datadog-ci package, can we not just install that?

dalyr95 avatar Jul 13 '25 14:07 dalyr95

Hi @dalyr95! Although datadog-ci is a CLI tool that usually runs in the CI, some commands can be run locally (either for testing, for dry-runs or for easy discovery) and some of them are interactive when run locally.

That being said, we are looking into splitting datadog-ci into plugins (see #1765). We don't have a timeline for now though.

Drarig29 avatar Jul 23 '25 15:07 Drarig29

Hi @schmod! This was fixed in last major release: @datadog/datadog-ci@v4

See https://github.com/DataDog/datadog-ci/blob/master/MIGRATING.md#using-plugins

Drarig29 avatar Oct 20 '25 14:10 Drarig29