You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make bind-mounted edx-platform setup idempotent on tutor dev launch #1554
When edx-platform is bind-mounted, jobs/init/mounted-directories.sh runs on every tutor dev launch / do init:
pip install -e .
npm clean-install
npm run build-dev
npm clean-install deletes and reinstalls node_modules, and build-dev recompiles all assets, even when nothing in package-lock.json or the frontend sources changed since the last launch. This takes several minutes each time and is the main cost of relaunching a dev environment for core developers.
Proposal: make these steps idempotent by caching a fingerprint, e.g.
store sha256(package-lock.json) next to node_modules and skip npm clean-install when it matches;
skip build-dev when webpack-stats.json exists and is newer than the asset sources, or store a hash of the relevant inputs;
skip pip install -e . when Open_edX.egg-info exists and setup.py/pyproject.toml hasn't changed.
A --force path (or just deleting the fingerprint file) would keep the current behaviour available.
Activity