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

Paver #2065

Closed
wants to merge 3 commits into from
Closed

Paver #2065

wants to merge 3 commits into from

Conversation

singingwolfboy
Copy link
Contributor

Rebased and squashed version of #1687

@rocha
Copy link
Contributor

rocha commented Dec 31, 2013

I love the commit! Thanks @dglance and @singingwolfboy. We had a few tries in the past to move to something like Paver, but were never completed.

What is the plan now, deprecate the rake commands? Is there a way that we can make more explicit?

If we deprecate rake, how does it affect the deployment on edx.org? We need to have devops look into it too, @jarv, @e0d, @feanil comments?

@jzoldak
Copy link
Contributor

jzoldak commented Jan 6, 2014

Please keep me and @wedaly in the loop before merging this in. It has implications on the jenkins setups, especially if we're looking to deprecate rake.

@ovnicraft
Copy link
Contributor

Recenlty was merge https://github.com/edx/edx-platform/pull/1957 to consider.

"""
runs lms without running prereqs
"""
sh("python manage.py lms runserver --traceback --settings=dev --pythonpath=. %s" % default_options['lms'])
Copy link

Choose a reason for hiding this comment

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

Is this fast_lms() different from running the lms task with "dev" as the environment? Might not be needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Originally I did a 1-for-1 replacement of the rake functions but as we are doing a tidy-up at the same time as replacing rake, it is worth thinking about what is actually needed or not needed. In the current scheme of things, fast_lms isn't different from the normal running of lms

@cybermnemosyne
Copy link
Contributor

I am still here btw :)

I was originally going to do this in two parts:

[a] submit paver
[b] update rake to deprecate the functions

it seems that people want [a] + [b] in one go.

So @singingwolfboy - what do you want me to do? I have the code for [b] mostly done - do you want me to resubmit a PR with both [a] and [b]? Do you need tests and if so, do they just need to check that the coverage of functions deprecated or the actual functionality of paver?

@singingwolfboy
Copy link
Contributor Author

@dglance Ack, sorry it took me so long to follow-up on this. Yes, [a] and [b] together would be great -- we don't want to have multiple ways to do the same thing. Tests would be awesome, but since these paver commands are going to be part of our daily routine, we'll all be manually testing them every day, so I don't think automated tests are necessary.

except KeyboardInterrupt:
pass
except:
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious about this pattern of using subprocess. It seems elaborate. Why do we need all of this machinery? Do we have unusual requirements that most Paver users don't? What is the typical Paver solution to the problem this is solving? If we do decide to keep it, at least we can encapsulate it somehow so we don't have to repeat it.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is for running Sass, Coffeescript etc with the watch flag. This creates children and they don't get cleaned up by sending a signal to the parent (for some reason) - at least not on MacOS. The other aspect is handling the ctl-c interrupt so that it is handled properly and no errors are not printed on the console.

Resubmit of rake replacement of assets, django, docs and prereqs
Deprecated rake functions issue a warning and then call paver
replacements
Changes on feedback from @cpennington and @singingwolfboy
Based on feedback from @singingwolfboy and @cpennington
@singingwolfboy singingwolfboy deleted the dglance/paver branch January 28, 2014 21:12
shimulch pushed a commit to open-craft/edx-platform that referenced this pull request Jan 26, 2021
* [MCKIN-27241] Merge user progress when target is enrolled but has no progress (openedx#2065)

During user progress migration, targets already enrolled in the course are now acceptable if they have no progress in that course already. In case progress already exists, the migration to that user will be skipped.

* MCKON-27241 Fixed function name

* Skip test if not lms

Co-authored-by: Paulo Viadanna <paulo@opencraft.com>
shimulch pushed a commit to open-craft/edx-platform that referenced this pull request Mar 15, 2021
…progress (openedx#2065)

During user progress migration, targets already enrolled in the course are now acceptable if they have no progress in that course already. In case progress already exists, the migration to that user will be skipped.
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.

7 participants