Skip to content

Define caching research #33

@BioPhoton

Description

@BioPhoton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions