-
Notifications
You must be signed in to change notification settings - Fork 7
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
New version of conda-build throws error if channel URL path is conda
#915
Comments
Is it possible to have "informative tests"? So that we have 3 situations:
|
So aside from the fact that I use Mac and dislike the builds not being ran for it. I also remember the case where the tests were only failing on one build and it exposed that there was a genuine problem in the code: #779 so I think long term not running mac builds isn't a great idea. I've been digging around this morning and basically all of the failed builds use conda-build > 3.18 which makes sense because the assertion that is firing was added around 3.19.4/3.20 conda/conda-build#3952 we note that one of the last successful builds after unlocking the conda build version https://travis-ci.com/github/NNPDF/nnpdf/jobs/366999896 uses conda build 3.18.11, I was planning to play around with this and try to confirm if this is true |
Just to make my comment clearer, I think we totally should still run the mac builds. |
Ah ok, I misunderstood.. That does sound helpful! |
Ok I either have no idea what's happening or may be close to sorting this (actually both is probably a fairer assessment) It would be really helpful if we could see the version of conda build being used in the linux build for comparison between mac and linux in future. If I manage to make a fix for this I will also add that for future debugging. |
ok this is super rogue but basically I think we would start getting builds breaking on linux once we moved to 3.8 basically naming a channel and so the channel name was not being filled correctly - I tested this by temporarily copying https://packages.nnpdf.science/conda/ to https://packages.nnpdf.science/nnpdf-packages/ (I'd previously tried to just change the name using the command line option with I can't believe how long this has taken me to work out 🤦 |
the TL;DR is can we change the name of our |
would probably also be nice if we were using the same version of python/conda build on both linux and mac builds but not sure how easy this is |
as suspected the linux builds are using an old version of codna build https://travis-ci.com/github/NNPDF/nnpdf/jobs/383591803 and an older version of python in fact I think that the section in the dockerfile is doing nothing:
because I assume this installs into the home directory but from then onwards we use the conda installed in root, unless I am mistaken with how docker works EDIT: in that build log some info on conda is printed out |
@Zaharid it seems to me there are a few things to sort out. Firstly do you agree that we should change the channel directory names? I think this would involve:
The second issue is whether we should be using the new version of conda/miniconda on travis? At the moment the Mac build is always performed with latest miniconda and the linux build is always performed with (I guess some preinstalled on the image) python 3.7 conda. |
Out of curiosity, is it possible in conda to have legacy channel so that when you use it it still works but you get a message saying "change to this other channel" @Zaharid ? |
I don't believe that is supported. The closest you can get it probably to keep the old channels in their current state the downside is there would be no warning and so people would be using out of date packages probably without knowing. Is there something you're worried about with changing the channel names? |
No, just wondering as I thought it would be somewhat cool. |
honestly the documentation for setting up your own channel is basically non-existing limited AFAICT to this: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/create-custom-channels.html It seems relatively unsupported/undocumented hence why it took so long to find this issue. I guess an alternative would be to just to put the channels on an anaconda account but I guess there was a reason why this wasn't done, maybe it costs money? |
Frankly the behaviour of conda is more than a bit rogue here. I would suggest pinning conda build to the latest version known to work and trying to open an issue with them. I am not sure they would be very receptive (seems non trivial to fix) but maybe at least offer some workaround. Changing the channel names is rather annoying in that you have to ask everyone to do it by hand on every computer, plus a ton of documentation plus the logic in the server, so I'd like to avoid that if possible. |
I think opening an issue is a good idea but it wasn't clear to me where to open it:
So is this an issue for We can pin conda-build to a set version of course. Would it make sense to be building on both platforms with same version |
I think conda build which has the funky special case. I'd say it's good to pin to the same older version for now. I guess if we find no better solution we will have to resort to changing the channels, but let's leave that for later. |
@wilsonmr did you open an issue with conda build? |
Not yet! I will do |
ok opened: conda/conda-build#4057 |
conda
I think that given the lack of response on the conda issue and that the "conda-private" channel name is not going to make a whole lot of sense, we may want to byte the bullet and change the names... |
I have simplinked the channels so that
works. |
This seems like a specific conda one. If I look at
https://travis-ci.com/github/NNPDF/nnpdf/jobs/380787948
I see a weird error at the very end.
It can be that the version of conda build is different. Or something specific to our package repositories (given the error).
The text was updated successfully, but these errors were encountered: