Skip to content

Force rebuilding of python files in PR #13515

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

Closed
wants to merge 3 commits into from
Closed

Force rebuilding of python files in PR #13515

wants to merge 3 commits into from

Conversation

nparley
Copy link
Contributor

@nparley nparley commented Jun 26, 2016

Force the rebuilding of cython files in PR as can't rely on the git history

@codecov-io
Copy link

codecov-io commented Jun 26, 2016

Current coverage is 84.33%

Merging #13515 into master will not change coverage

@@             master     #13515   diff @@
==========================================
  Files           138        138          
  Lines         51107      51107          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          43103      43103          
  Misses         8004       8004          
  Partials          0          0          

Powered by Codecov. Last updated by bf4786a...75e71e7

@gfyoung
Copy link
Member

gfyoung commented Jun 26, 2016

@nparley : as confirmation, you might want to make a second commit (that won't be merged) that attempts to change one of the .pyx files (e.g. change downcast_int64 --> downcast_int in inference.pyx and propagate throughout, which isn't too much) and show that Travis passes still.

@nparley
Copy link
Contributor Author

nparley commented Jun 26, 2016

Yep OK. I actually have to make two commits as the cache will not be used two commits after a ci change.

@jreback
Copy link
Contributor

jreback commented Jun 26, 2016

@nparley so Idea is to merge this and see if we can do cache detection in a better way?

I think on master we should turn off caching entirely to avoid any issues (though you can certainly keep miniconda / env caching). If we can reliably have cython / build caching great. I think the cython / build caching is great for PR's as it cuts down on build time.

@jreback jreback added the Build Library building on various platforms label Jun 26, 2016
@nparley
Copy link
Contributor Author

nparley commented Jun 26, 2016

Yes this turns off the cython caching but not the miniconda caching. This is only turning off the caching for PRs at the moment. The cache detection works ok on the master as the git history is never going to be rewritten. It is the same way it was working when the caching was being done externally, the only thing that has changed is that it has moved to travis. That being said it probably make sense to not use the git and use @gfyoung's idea of using the pyx file diff as that makes it more bullet proof. I could add to this PR to turn off the cython caching in non PRs too or just on the master branch. Or if there was a PR with a cython change to merge ready, that could be merged as a test.

@jreback
Copy link
Contributor

jreback commented Jun 26, 2016

@nparley yeah I think doing a pyx diff is the best thing. You can add it here if you would like. Or can merge this, then work on that independetly. lmk. Ok on master caching. Yes that will never be force pushed. PR's on the other hand anything goes.

@gfyoung
Copy link
Member

gfyoung commented Jun 26, 2016

I would vote for merging this as is and working on pyx comparisons independently (unless a method can be found quickly). The comparison part is not vital from a correctness point of view but undoing part of the current caching is.

@nparley
Copy link
Contributor Author

nparley commented Jun 26, 2016

Yes might be best to merge this. I have started working on the pyx diff code but have ran out of time today and tomorrow I will not have time to do any work on this I am afraid. Let me just fire two commits to check this works and the cython files are rebuilt as @gfyoung comment above before merging though.

@jreback
Copy link
Contributor

jreback commented Jun 26, 2016

ok ping when ready for merge

@nparley
Copy link
Contributor Author

nparley commented Jun 27, 2016

@jreback OK this works. I tested changing a cython file, breaking a build and getting it cached, then changed it back rewriting the history and the cython files are rebuilt.

@jreback jreback added this to the 0.18.2 milestone Jun 27, 2016
@jreback jreback closed this in 1a9abc4 Jun 27, 2016
@jreback
Copy link
Contributor

jreback commented Jun 27, 2016

thanks @nparley

@nparley nparley deleted the no-pr-cache branch June 27, 2016 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants