npm i caching revalidating (OD-2309)
vipul opened 10 months ago

npm install command runs fast in my local ubuntu machine for a particular repo. The same machine I have registered as shell runner and running the same through CI/CD and despite setting up caching it revalidates cache which are github URL's in package.json npm http fetch GET 200 https://codeload.github.com/******* 1020ms (cache revalidated)

  jobExecutor: test-runner
  steps:
  - !CheckoutStep
    name: checkout
    cloneCredential: !DefaultCredential {}
    withLfs: false
    withSubmodules: false
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  - !SetupCacheStep
    name: cache
    key: node_modules
    loadKeys:
    - node_modules
    - ~/.npm
    paths:
    - node_modules
    - ~/.npm
    uploadStrategy: UPLOAD_IF_NOT_HIT
    uploadAccessTokenSecret: lint-cache-token
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  - !CommandStep
    name: lint
    runInContainer: false
    interpreter: !DefaultInterpreter
      commands: |
        npm install --save-dev eslint-config-google --verbose
        npm run lint
    useTTY: true
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
  retryCondition: never
  maxRetries: 3
  retryDelay: 30
  timeout: 3600
  • Robin Shen commented 10 months ago

    Please demonstrate this issue by attaching git repo of an example project

  • Robin Shen changed state to 'Closed' 10 months ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2309
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover