6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-13 06:37:46 +00:00

Fix missing webpack-stats.json in openedx Docker image

In CI, the webpack-stats.json file sometimes contains just:

    {"status":"compiling"}

This was due to the fact that the `subprocess.call(...)` command in
openedx-assets did not check whether the command was killed -- for lack
of memory for instance. This is resolved by replacing "call(...)" by
"check_call(...)".
This commit is contained in:
Régis Behmo 2020-06-16 06:22:12 +02:00
parent 24035ac1fe
commit 325c1037c0
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@
Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Bugfix] Fix missing webpack-stats.json in openedx Docker image
## v10.0.1 (2020-06-15)
- [Bugfix] Fix KeyError when running ``local quickstart`` for the first time

View File

@ -120,7 +120,7 @@ def run_webpack(args):
os.environ["STATIC_ROOT_LMS"] = args.static_root
os.environ["STATIC_ROOT_CMS"] = os.path.join(args.static_root, "studio")
os.environ["NODE_ENV"] = {"prod": "production", "dev": "development"}[args.env]
subprocess.call(
subprocess.check_call(
["webpack", "--config=webpack.{env}.config.js".format(env=args.env)]
)