Skip to content

Update top-level config files - #4958

Closed
jbrockmendel wants to merge 5 commits into
statsmodels:masterfrom
jbrockmendel:topdir
Closed

jbrockmendel wants to merge 5 commits into
statsmodels:masterfrom
jbrockmendel:topdir

Conversation

@jbrockmendel

@jbrockmendel jbrockmendel commented Aug 22, 2018 •

Copy link
Copy Markdown
Contributor

For kicks I also enabled doctests, am curious how they do.

Closes #4955
Closes #4931
Closes #4677

Comment thread setup.cfg Outdated
@@ -1,3 +1,36 @@
[tool:pytest]
addopts = --doctest-modules

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You need to drop this. You won't get doctests to pass in finite time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will do. As mentioned, this was just for curiosity sake.

@josef-pkt

Copy link
Copy Markdown
Member

@jbrockmendel you can try things locally and try on specific modules or folders first instead of wasting our ci resources.

I tried running doctest (on my computer) several years ago, and it is useless because almost all our docstrings are written in a way that will not test.
And we are NOT going to change that, at least not in the next 5 years.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

you can try things locally and try on specific modules or folders first instead of wasting our ci resources.

@josef-pkt I look forward to getting back in this habit just as soon as CI turnaround time comes without a mile of being the binding constraint on the workflow.

@josef-pkt

Copy link
Copy Markdown
Member

I look forward to getting back in this habit just as soon as CI turnaround time comes without a mile of being the binding constraint on the workflow.

You should do this now, when we have so many PRs incoming, when PR action is quite, then it is not as relevant, but testing locally is just "proper behavior" for contributors, developers and maintainers.

@bashtage

Copy link
Copy Markdown
Member

One reason to avoid experiments in PRs is that it blocks master builds. When merging it is usually a good idea to make sure master is green before merging the next patch so that if a changeset breaks master it can be quickly fixed or abandoned.

Personal Travis is a good place to run Experiments. Plus you get email notifications of failure/success/error on personal.

@josef-pkt

Copy link
Copy Markdown
Member

For me the main advantage of running module or function specific unit tests is the turnaround time during refactoring. The test runs take at most a few seconds, and it can catch incomplete refactoring mistakes very quickly. (plus it's easy to switch to using pdb)
Then Travis and appveyor are left to check for platform and version problems and to check for long distance side effects outside of the immediate, locally tested modules.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

but testing locally is just "proper behavior"

Point taken, especially seeing as how I'm making a push for Best Practices elsewhere.

But for the love of Cthulthu, can we implement a system so that trivial PRs don't fall through the cracks for weeks and years at a time?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) to 83.834% when pulling 0e3e698 on jbrockmendel:topdir into 66fc298 on statsmodels:master.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt
#4954
#4941
#4933
#4927
#4924
#4907
#4906
#4888
#4875
#4874
#4868
#4849
#4846
#4677 (bashtage's, 3 months old)
#4506 (4 months old, unmangling tests)
#2652 (three frakkin years)

are all either green or green-as-it-gets and no-brainers. Going through another unnecessary rebase cycle would waste CI resources, so maybe its worth taking the 30 seconds apiece to verify they do exactly what the titles suggest and merge them. Or was that complaint disingenuous?

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4958 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4958   +/-   ##
=======================================
  Coverage   81.34%   81.34%           
=======================================
  Files         581      581           
  Lines       90053    90053           
  Branches    10087    10087           
=======================================
  Hits        73253    73253           
  Misses      14506    14506           
  Partials     2294     2294

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 66fc298...0e3e698. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Closing in favor of #4677 + #4972 + #4973

@jbrockmendel
jbrockmendel deleted the topdir branch August 23, 2018 18:53
@bashtage bashtage added the rejected Used for PRs with changes that are not acceptable label Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rejected Used for PRs with changes that are not acceptable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.bzrignore needed/used? duplicated LICENSE.txt file?

5 participants