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

John/update monthly task #242

Merged
merged 7 commits into from Aug 11, 2020
Merged

John/update monthly task #242

merged 7 commits into from Aug 11, 2020

Conversation

johnbaldwin
Copy link
Contributor

@johnbaldwin johnbaldwin commented Aug 10, 2020

Likely cause is that I had the default settings to False to run the monthly metrics job (yeah, that's on me). This should be on by default since the monthly job is part of Figures standard workflow

Also added a log timing instrumentation context manager and fixed package dependency versions.

Found an incompatibility with Ginkgo in figures.mau. There is a query that is not compatible with Django 1.8

So for now, disabled failing Ginkgo tests. Then assess the fix and need

Added `figures.log.log_exec_time` as a context manager to output the log
time for a block of code executed within.

The purpose of this is as a convenience to logging execution time. At
this time, it does not handle variables within the block so it only
outputs the label passed in as a parameter
Added guidance in this module
Broken dependencies found after creating new virtualenvs
We found that figures breaks in Ginkgo due to an apparent issue that Django 1.8 does not support datetime `__day__lte` query parameter.

Pending a decision on whether we need to continue to support Ginkgo, we
are disabling these tests in Ginkgo so that Tox will pass.

If we do need to continue Ginkgo support, then we will implement a
compatibility fix. Otherwise, we will remove all Ginkgo support in an
upcoming release
@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2020

Codecov Report

Merging #242 into master will increase coverage by 0.11%.
The diff coverage is 97.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #242      +/-   ##
==========================================
+ Coverage   91.50%   91.62%   +0.11%     
==========================================
  Files          40       41       +1     
  Lines        2061     2078      +17     
==========================================
+ Hits         1886     1904      +18     
+ Misses        175      174       -1     
Impacted Files Coverage Δ
figures/helpers.py 100.00% <ø> (ø)
figures/views.py 92.39% <94.11%> (ø)
figures/log.py 100.00% <100.00%> (ø)
figures/models.py 95.36% <100.00%> (ø)
figures/pipeline/enrollment_metrics.py 98.36% <100.00%> (ø)
figures/settings/lms_production.py 100.00% <100.00%> (+5.26%) ⬆️
figures/tasks.py 85.14% <100.00%> (+0.77%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33e61a3...4a27cb9. Read the comment docs.

edx-lint 0.5.5 requires pylint 1.7.1. Not sure why this error is
happening now, since we've edx-lint 0.5.5 and pylint 1.9.5 have been
coexisting in Figures for a while
It was previously set to not run by default. Since the monthly task is
part of Figures normal workflow, we want it enabled by default. This can
be overridden by setting the ENV_VARS 'FIGURES' variable
`ENABLE_FIGURES_MONTHLY_METRICS` to False in the lms.env.json file
@johnbaldwin johnbaldwin marked this pull request as ready for review August 11, 2020 19:24
@johnbaldwin johnbaldwin merged commit 42dddf6 into master Aug 11, 2020
@johnbaldwin johnbaldwin deleted the john/update-monthly-task branch August 11, 2020 22:48
@melvinsoft
Copy link
Contributor

@johnbaldwin I did a light review, all changes makes sense to me. Since Omar is on vacation, I'd say let's merge it and test on Staging and let's ping Omar when is back from vacation for a more detailed review, and we can address changes in a follow up PR. Thanks!

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.

None yet

3 participants