Skip to content

fix: Remove call to print WEBPACK_CONFIG_PATH when updating static assets #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

timmc-edx
Copy link
Member

@timmc-edx timmc-edx commented Apr 9, 2025

This setting was removed from edxapp base configs in openedx/edx-platform#36494 and one of these lines started failing with "CommandError: WEBPACK_CONFIG_PATH not found in settings."

We don't actually need to print any particular setting here; see comment for why we're making this call at all. So here I change it to use a setting that is more unlikely to go away any time soon.

Also, add some "comments" to help draw attention to the comment higher up, as well as a little more explanation of the situation.


Make sure that the following steps are done before merging:

  • Have a Site Reliability Engineer review the PR if you don't own all of the services impacted.
  • If you are adding any new default values that need to be overridden when this change goes live, update internal repos and add an entry to the top of the CHANGELOG.
  • Performed the appropriate testing.

@timmc-edx timmc-edx force-pushed the timmc/depr-webpack-print branch from 6412c20 to 5b58405 Compare April 9, 2025 18:27
…sets

This setting was removed from edxapp base configs in
openedx/edx-platform#36494 and one of these lines
started failing with "CommandError: WEBPACK_CONFIG_PATH not found in
settings."

We don't actually need to print any *particular* setting here; see comment
for why we're making this call at all. So here I change it to use a
setting that is more unlikely to go away any time soon.

Also, add some "comments" to help draw attention to the comment higher up,
as well as a little more explanation of the situation.
@timmc-edx timmc-edx force-pushed the timmc/depr-webpack-print branch from 5b58405 to d429662 Compare April 9, 2025 18:55
@@ -10,12 +10,16 @@ export JS_ENV_EXTRA_CONFIG={}
# We need to make a call to a management command before running webpack because proctoring runs a webpack
# webworker that only gets built if the proctoring djangoapp writes out a `workers.json`:
# https://github.com/openedx/edx-proctoring/blob/73c7f55e2be91324fa07fec6e6ac0a667fdd8412/edx_proctoring/apps.py#L4
# We know that `print_setting` will load settings and apps, which is what we
# actually need. Yes, this is absurd.
Copy link
Member

Choose a reason for hiding this comment

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

😂 😭

@timmc-edx timmc-edx merged commit 6ac5bba into master Apr 9, 2025
3 checks passed
@timmc-edx timmc-edx deleted the timmc/depr-webpack-print branch April 9, 2025 18:59
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