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

ENH version migrator refactor #800

Merged
merged 15 commits into from
Feb 15, 2020
Merged

ENH version migrator refactor #800

merged 15 commits into from
Feb 15, 2020

Conversation

beckermr
Copy link
Contributor

@beckermr beckermr commented Feb 14, 2020

This PR has a refactor of the version migrator using the parsing from #795. This approach should allow us to close out various version migration issues for complicated recipes.

Closes #794
Closes #762
Closes #781
Closes #500
Closes #529
Closes #430

@@ -16,8 +16,7 @@
('multisrc', '2.4.1'),
('jinja2sha', '2.4.1'),
('r', '1.3_2'),
# FIXME - this test was being skipped by accident - now fails
# ('cb3multi', '6.0.0'),
('cb3multi', '6.0.0'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

And now this test passes!

@@ -1,4 +1,3 @@
{# cb3_multi #}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ruamel.yaml cannot deal with jinja2 comments...

@codecov
Copy link

codecov bot commented Feb 14, 2020

Codecov Report

Merging #800 into master will increase coverage by 2.71%.
The diff coverage is 87.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #800      +/-   ##
==========================================
+ Coverage   55.88%   58.59%   +2.71%     
==========================================
  Files          32       32              
  Lines        3375     3111     -264     
==========================================
- Hits         1886     1823      -63     
+ Misses       1489     1288     -201
Impacted Files Coverage Δ
conda_forge_tick/make_graph.py 40.43% <ø> (-0.69%) ⬇️
tests/test_version_migrator.py 100% <ø> (ø) ⬆️
conda_forge_tick/auto_tick.py 0% <0%> (ø) ⬆️
conda_forge_tick/status_report.py 0% <0%> (ø) ⬆️
tests/test_cfyaml_cleanup_migrator.py 100% <100%> (+26.66%) ⬆️
conda_forge_tick/migrators/__init__.py 100% <100%> (ø) ⬆️
tests/test_migrators.py 93.85% <100%> (+0.36%) ⬆️
tests/test_recipe_parser.py 100% <100%> (ø) ⬆️
tests/test_matplotlib_base.py 100% <100%> (ø) ⬆️
conda_forge_tick/migrators/core.py 75.43% <87.5%> (-1.27%) ⬇️
... and 9 more

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 27d0fa1...0b15816. Read the comment docs.

@beckermr beckermr changed the title WIP version migrator refactor ENH version migrator refactor Feb 15, 2020
@beckermr beckermr marked this pull request as ready for review February 15, 2020 11:51
@beckermr beckermr requested a review from a team February 15, 2020 11:59
@beckermr beckermr merged commit 091b088 into master Feb 15, 2020
@beckermr beckermr deleted the ver-refactor branch February 15, 2020 13:15
beckermr added a commit that referenced this pull request Feb 15, 2020
beckermr added a commit that referenced this pull request Feb 15, 2020
beckermr added a commit that referenced this pull request Feb 15, 2020
beckermr added a commit that referenced this pull request Feb 23, 2020
* Revert "Revert "ENH version migrator refactor (#800)" (#805)"

This reverts commit c2a8275.

* BUG make sure all urls are updated

* more reliable updates

* more bugs

* clean up the logic

* ENH get actual simple statements from the jinja2 AST

* TST added test for bad version

* stream urls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants