Skip to content

[CI] Cache the result of pip install and npm install#26338

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:circleci_cache
Open

[CI] Cache the result of pip install and npm install#26338
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:circleci_cache

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 25, 2026

No description provided.

@sbc100 sbc100 requested a review from dschuff February 25, 2026 21:37
@sbc100 sbc100 force-pushed the circleci_cache branch 6 times, most recently from 779b3ff to b6b12f4 Compare February 25, 2026 22:10
command: << parameters.python >> -m pip install -r requirements-dev.txt
command: |
if [[ -e ~/.cache/pip ]]; then
echo "Skipping npm ci due to cache hit"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If everything is already there, isn't npm ci just a no-op that runs fast?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, actually this is pip, so the echo should be updated. but same question. i.e. could we just run the command anyway.

steps:
- restore_cache:
keys:
- python-deps-v2-{{ arch }}-checksum "requirements-dev.txt" }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why v2 here?

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