Paver (Part 1) -- Attempt 2 - #2615
Merged
Merged
Conversation
Contributor
|
@wedaly - ah; makes sense. Soon as you merge this, I'll rebase my https://github.com/yarko/edx-platform/tree/yarko/pr-2520-default-variant and PR it to add fixes for custom theme behavior (similar to what #2387 fixes w/ rake). |
Contributor
There was a problem hiding this comment.
@wedaly I think you want to sys.path.insert(1,foo)?
That seems to be the standard way for prepending a dir to the python path.
See http://docs.python.org/2/library/sys.html#sys.path
Restore reverted changes from paver part 1
Contributor
Contributor
Author
|
@jzoldak "github.txt" is included implicitly in "base.txt" (by way of "repo.txt"). I'm not sure why "private.txt" is necessary -- why wouldn't someone just install extra requirements in the virtualenv? |
jenkins-ks
pushed a commit
to nttks/edx-platform
that referenced
this pull request
Nov 12, 2018
…jast-2613 Develop/gacco/dogwood/jast openedx#2613
kdmccormick
pushed a commit
to kdmccormick/openedx-platform
that referenced
this pull request
Apr 9, 2025
* feat: add admin action to import course to library * refactor: [AXM-1807] finish actions, refactor validation & purpose uniq --------- Co-authored-by: Andrii <andrii.hantkovskyi@raccoongang.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When I merged the Paver PR into master, Jenkins started failing in bizarre ways. It turns out that:
pip install -e .(here: https://github.com/edx/edx-platform/blob/master/requirements/edx/local.txt#L2)sys.path.sys.pathmay contain the path to another repo.paverbefore re-runningpip installon local requirements, thepavelib/assets.pyin another copy of the repository was taking precedence over the local copy.pavelib/assets.pyconstructed a path to the wrong repository, where the prereqs cache indicated thatcoffeehad already been installed (in "node_modules/.bin")coffeehad NOT, in fact, been installed in the current repository, coffescript compilation would fail.Whew!
The right solution is probably to have Jenkins better isolate virtualenvs between jobs. But that would be unacceptably slow, which is why we don't do it.
The solution I've adopted here is to insert the current working directory as the first item in
sys.pathbefore loading the pavement modules. This ensures that Paver thinks it's in the right directory.The only difference between this and the original PR is the sys.path manipulation in
pavement.py, which includes a detailed comment.