Skip to content

Only write xmodule asset files that have changed - #172

Merged
cpennington merged 6 commits into
masterfrom
cale/xmodule-assets-incremental
Jun 20, 2013
Merged

Only write xmodule asset files that have changed#172
cpennington merged 6 commits into
masterfrom
cale/xmodule-assets-incremental

Conversation

@cpennington

Copy link
Copy Markdown
Contributor

@chrisndodge: This should reduce the amount of CPU thrashing that you're having.

Depends on #185 and #173

Rake by default imports all .rake files in the rakelib dir, so we can
use that rather than doing our own import loop.
`rake install_prereqs` requires a minimal level of ruby and rake already
installed. If it doesn't exist, then print out a helpful message
indicating next steps.
The preprocess task requires system and env arguments in order to
correctly load up the django environment to preprocess sass files to
inject themes.

In order for that task to recieve the arguments, all tasks that depend
on it also have to accept that same set of arguments.

This will all go away once the next evolution of themes arrives, which
will remove the preprocessing needed to inject theme names.
When running under watchmedo, coffee doesn't display any useful
information when it recompiles a changed file, so we make watchmedo echo
that information instead.
xmodule-assets creates coffeescript files in the output directories. On
its next run, it used to delete the javascript files compiled from those
coffee files. Now it doesn't which should make coffee have to do less
work.

Fixes LMS-451
Use md5 checksumming to verify that we only write out xmodule asset
files whose contents differ from what we are about to write. This
minimizes thrashing of the other watchers.

Fixes LMS-452
@cpennington
cpennington merged commit cd57e28 into master Jun 20, 2013
@cpennington
cpennington deleted the cale/xmodule-assets-incremental branch June 20, 2013 14:11
aboudreault pushed a commit to aboudreault/edx-platform that referenced this pull request Aug 14, 2014
…-cohorted-course

Add inline_discussions_cohorting_default and cohorted_inline_discussions in course settings
alanoe pushed a commit to alanoe/edx-platform that referenced this pull request Mar 28, 2020
)

* Add support for MongoDB authentication databases.
* Update MongoDB tracking backend
rediris pushed a commit to gymnasium/edx-platform that referenced this pull request Feb 25, 2021
Danyal-Faheem pushed a commit to Danyal-Faheem/edx-platform that referenced this pull request Jul 15, 2025
Co-authored-by: RahatAli <rahatali@A006-00935.local>
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.

1 participant