Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define caching research #33

Open
BioPhoton opened this issue Sep 24, 2024 · 2 comments
Open

Define caching research #33

BioPhoton opened this issue Sep 24, 2024 · 2 comments

Comments

@BioPhoton
Copy link
Contributor

What can be cached

  • setup-env
    • npm workspace folder (.npmrc, package-lock.json, node_modules)
  • npm-publish
    • inputs
    • outputs
      • list of packages in registry under .../storage/.verdaccio-db.json e.g.: `{"list":[""],"secret":"esKM34zA53wetObgi5f0Uu1e7iObmm+f"}``
      • tarball of package under .../storage/@push-based/<package-name>-<version>.tgz
        e.g.: {workspaceRoot}/${environmentsDir}/{args.environmentProject}/storage/@push-based/${packageName},
      • package.json of package under .../storage/@push-based/<package-name>/package.json
  • npm-install
    • outputs
      • list of installed packages under .../package.json
      • list of installed packages under .../package-lock.json
      • source of package under .../node_modules/@push-based/<package-name>/*
        mehh, we know the node_modules reputation
    • inputs:
      • output of npm-publish(?), package.json
    • concerns: chicken-egg problem.
      • when only caching package-lock.json, we still need to run <packageManager> install, separate install in 2 steps?
      • when caching node_modules, obviously cache takes lot of room!
      • to install dependencies and generate lock file, we need the Verdaccio server running

Caching scenarios

  1. what can be cached?
  2. is more small caches better
  3. how to visualize scenarios
  • what is a worse/best case for e2e tests
@getlarge
Copy link
Collaborator

  • benchmark effect of caching the node_modules

@BioPhoton
Copy link
Contributor Author

  • benchmark effect of caching the node_modules

What a possible effect be?

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

No branches or pull requests

2 participants