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

Alternatives to always-up-to-date submodules #11

Closed
alexbw opened this issue Jan 20, 2015 · 8 comments
Closed

Alternatives to always-up-to-date submodules #11

alexbw opened this issue Jan 20, 2015 · 8 comments

Comments

@alexbw
Copy link
Contributor

alexbw commented Jan 20, 2015

There are obvious downsides to having submodules always update to master (no master branch is 100% perfect all the time, and performance and memory leak regressions can be subtle and take awhile to catch and fix).

The downside to having submodules at fixed commits is stewardship overhead to make sure the submodules are as up-to-date as possible, but no more.

I lean more on the side of stability than ease-of-stewardship.

@soumith
Copy link
Member

soumith commented Jan 20, 2015

@alexbw as I said, I am okay with either. I think we should give the one a try, i.e. keeping submodules at fixed commits. If we have any issues, we would uncover them as we go.
Historically, I built torch-distro for @jonathantompson, as he was complaining that he missed the old torch7-distro, and with torch7-distro, we just had one giant repo of everything (which was automatically on master by definition). But torch-distro has gotten bigger than that one single use-case.

Also, it's great that you are taking the lead on this, dont tone it down at all :)

@clementfarabet
Copy link
Member

This is a great initiative. I'd vote for versioning commits, and upgrade them only when certain strict conditions are met (such as travis giving you the green light). It's especially important for /torch7, /nn, /cutorch and /cunn, where any subtle regression becomes a huge pain to trace.

@soumith
Copy link
Member

soumith commented Jan 20, 2015

on board with that idea as well.

on the issue of travis, we have travis for torch7 and nn, but it almost always fails when running the unit tests, by just not responding for a long time. It seems to be a bug of VM + OpenBlas.

We also do not have travis testing for cutorch/cunn

If you guys have any ideas, let me know

@clementfarabet
Copy link
Member

So about openblas, I think we should kill it for travis (if not everywhere...). This would speedup the build tremendously. What do you think?

For CUDA stuff, it's tricky to test for sure (no gpus on travis right?). Maybe we could host some of this testing somewhere else.

@alexbw
Copy link
Contributor Author

alexbw commented Jan 20, 2015

Ok. I will remove the line in install.sh that automatically pulls all new repos and update all submodules to their current master branches.

After that, all new cool updates to included submodules have to be rolled in via a git submodule commit update. I think this is feasible, because if this distribution becomes a community standard, folks will pester us with github issues when it's time to update. I like the push better than pull model here :)

@clementfarabet
Copy link
Member

Totally agreed!

@soumith
Copy link
Member

soumith commented Jan 20, 2015

👍

@alexbw
Copy link
Contributor Author

alexbw commented Jan 20, 2015

Done in dbf367a. Tested on laptop.

@alexbw alexbw closed this as completed Jan 20, 2015
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

No branches or pull requests

3 participants