Project

General

Profile

Actions

Bug #24466

closed

build process runs "pip install" and "npm install" while building the mgr frontend

Added by Patrick McLean almost 6 years ago. Updated about 3 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The current build process runs "pip install" and "npm install" while building the mgr frontend. This is a violation of most distros' packaging policies, but more importantly this makes the frontend code someone is running be non-deterministic. The code that someone is running will depend on when they built ceph, not just the version they are running. This will quite likely complicate triaging and debugging of any issues that crop up.

I would suggest just listing python dependencies in the global dependency list, and bundling node dependencies in the distributed tarball, that way you can be sure that everyone who builds from the source tarball is actually running the same code.

I would also suggest separating out test dependencies from build dependencies in the npm packages.json, since the test dependencies download precompiled binaries for phantomjs (which is abandoned and vulnerable according to it's website) and other things.


Files

ceph-pip.log (8.82 KB) ceph-pip.log Patrick McLean, 06/19/2018 09:20 PM
Actions

Also available in: Atom PDF