Skip to content
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

build: fixes for native deployment #407

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

tecoholic
Copy link
Contributor

While creating the Ansible playbooks and roles for deploying enterprise-access - openedx-unsupported/configuration#7107, a couple of issues were discovered with the production-requirements make command and the requirements.

This PR includes the following changes:

  1. Make the production-requriements command depend on the piptools command so that it can be run without explicitly running the piptools beforehand.
  2. Add pygments as an explicit requirement.

When deploying enterprise-access using a playbook based on the
edx_django_service role, the production requirements fail to install
due to missing pip-tools. This commit makes the production-requirements
command depend on `piptools` so that pip-tools are installed before
installing the production requirements.
Pygments is directly imported in
enterprise_access/app/subsidy_access_pilicy/admin.py. But it is not
included a base dependency. This commit adds it as a base dependency
and updates all the requirements using `make upgrade`.
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Feb 15, 2024
@openedx-webhooks
Copy link

Thanks for the pull request, @tecoholic! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@mphilbrick211 mphilbrick211 requested a review from a team February 15, 2024 19:14
Copy link
Contributor

@pwnage101 pwnage101 left a comment

Choose a reason for hiding this comment

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

LGTM. FWIW, in production for edx.org we don't actually rely on this make target to install requirements. We use the pip sequence in the Dockerfile

RUN pip install -r requirements/production.txt
. That's to say the impact of this is minimal and safe to merge.

@pwnage101 pwnage101 merged commit 60e810c into openedx:main Feb 15, 2024
4 checks passed
@openedx-webhooks
Copy link

@tecoholic 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@tecoholic tecoholic self-assigned this Feb 16, 2024
@tecoholic
Copy link
Contributor Author

@pwnage101 Thank you for the quick review and merge.

@tecoholic tecoholic deleted the tecoholic/BB-8440-deployment-fixes branch February 16, 2024 09:53
@tecoholic tecoholic restored the tecoholic/BB-8440-deployment-fixes branch February 16, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants