Skip to content

More helpful message when refusing to evaluate "broken" package - #2455

Merged
vcunat merged 2 commits into
NixOS:masterfrom
bjornfor:helpful-messages-when-refusing-eval
Aug 12, 2014
Merged

vcunat merged 2 commits into
NixOS:masterfrom
bjornfor:helpful-messages-when-refusing-eval

Conversation

@bjornfor

Copy link
Copy Markdown
Contributor

A "broken" package is one where either "meta.broken = true" or build
platform != meta.platforms.

@vcunat

vcunat commented Apr 30, 2014

Copy link
Copy Markdown
Member

There would be a 6-line part of text block identically repeated three times (very close together). It might better be factored out, IMO.

@bjornfor

Copy link
Copy Markdown
Contributor Author

Ok. I'll refactor it in a 2nd commit. If it is more readable we can squash and merge.

@bjornfor

Copy link
Copy Markdown
Contributor Author

@vcunat: Like that?

@vcunat

vcunat commented May 1, 2014

Copy link
Copy Markdown
Member

Oh, I didn't notice there was one word changed. Nice solution.

Maybe I'd wait roughly a day, so others have chance to comment.

@edolstra

edolstra commented May 1, 2014

Copy link
Copy Markdown
Member

The only problem with this is that it will explode the size of the evaluation errors of the nixpkgs:trunk jobset, which are already vast: http://hydra.nixos.org/jobset/nixpkgs/trunk#tabs-errors

@bjornfor

bjornfor commented May 1, 2014

Copy link
Copy Markdown
Contributor Author

The size will still be O(n) :-)

Joking aside, isn't potentially important errors already hidden in between all the "not supported on platform" and "marked as broken" messages? Is there a way to separate "real" eval errors and warnings about broken/unsupported packages?

@vcunat

vcunat commented May 1, 2014

Copy link
Copy Markdown
Member

We might shorten it, e.g. by replacing the text by a link to online docs.

@bjornfor

bjornfor commented May 1, 2014

Copy link
Copy Markdown
Contributor Author

Still, isn't the eval error list full of non-errors, like refusing to build broken/unsupported packages?

The O(n) comment was only partly a joke, because if the list contents is mostly about broken/unsupported package anyway, it doesn't matter how short we make the additional help message; real errors will still be hidden in the myriad of non-errors.

@domenkozar

Copy link
Copy Markdown
Member

Big +1 to link errors to manual nixpkgs manual explaining in details what's going on.

@bjornfor

bjornfor commented May 3, 2014

Copy link
Copy Markdown
Contributor Author

@iElectric: Would you rather have the link than the text? Or are you suggesting it as a compromise? For the latter, I agree, it's better than what we currently have. But I feel having the text right there is much more user friendly (e.g. what if you're offline?).

Like I said in my previous comment, shortening the help text doesn't fix the problem of the eval error list being too big and full of non-errors. Its size is still O(n).

@edolstra: Is it possible to filter out broken and unsupported packages from the eval error list?

@vcunat

vcunat commented May 3, 2014

Copy link
Copy Markdown
Member

Yes, I agree that messages on Hydra for trying to evaluate unsupported/broken/unfree packages are really useless.

@lucabrunox

Copy link
Copy Markdown
Contributor

I don't agree about unfree packages. For example, faac was stopping hydra
from building a lot of packages. Discovered that from the evaluation errors
and fixed that to make faac optional.

On Sat, May 3, 2014 at 10:59 PM, Vladimír Čunát [email protected]:

Yes, I agree that messages on Hydra for trying to evaluate
unsupported/broken/unfree packages are really useless.

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/2455#issuecomment-42116301
.

www.debian.org - The Universal Operating System

@vcunat

vcunat commented May 4, 2014

Copy link
Copy Markdown
Member

@lethalman: depending on a broken package might be a problem as well.

Since there are lots of these messages, we might at least split them away (or add a checkbox to only show the regular evaluation errors). I stopped reading them long ago, as most seem useless, and moreover always the same. That's why I'd personally consider package evaluation just as another step of failing to build it, adding to "aborted", "dependency failed" and "build failed". That way it should be easier to watch the changes via the current "newly failing/succeeding" tabs.

@domenkozar

Copy link
Copy Markdown
Member

@bjornfor I agree being offline is a problem, we could print out url and manual section of the explanation.

bjornfor added 2 commits June 21, 2014 15:04
A "broken" package is one where either "meta.broken = true" or build
platform != meta.platforms.
vcunat added a commit that referenced this pull request Aug 12, 2014
…-eval

More helpful message when refusing to evaluate "broken" package
@vcunat
vcunat merged commit e80f41f into NixOS:master Aug 12, 2014
@bjornfor
bjornfor deleted the helpful-messages-when-refusing-eval branch August 25, 2014 19:20
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

Successfully merging this pull request may close these issues.

5 participants