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

Just get failed to build #361

Closed
dani0854 opened this issue Sep 14, 2023 · 6 comments
Closed

Just get failed to build #361

dani0854 opened this issue Sep 14, 2023 · 6 comments

Comments

@dani0854
Copy link

I am just getting failed to build error.

I have added a package, and nix build and tests work fine. But when I run nixpkgs-review pr, I just get "failed to build", with no additional context.

Where can I find extended logs, or something simmilar.

Logs:

$ git -c fetch.prune=false fetch --no-tags --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/255080/head:refs/nixpkgs-review/1
$ git worktree add /home/dsuetin/.cache/nixpkgs-review/pr-255080-4/nixpkgs 11419311288d6b186e96b55b682cd9d4f2ff20a8
Preparing worktree (detached HEAD 11419311288d)
Updating files: 100% (37177/37177), done.
HEAD is now at 11419311288d Merge pull request #255027 from JerrySM64/update-linux-zen
$ nix-env --extra-experimental-features no-url-literals --option system x86_64-linux -f <nixpkgs> --nix-path nixpkgs=/home/dsuetin/.cache/nixpkgs-review/pr-255080-4/nixpkgs nixpkgs-overlays=/tmp/tmp9aoe2wks -qaP --xml --out-path --show-trace --no-allow-import-from-derivation
https://github.com/NixOS/nixpkgs/pull/255080 failed to build
$ git worktree remove -f /home/dsuetin/.cache/nixpkgs-review/pr-255080-4/nixpkgs
@Mic92
Copy link
Owner

Mic92 commented Sep 14, 2023

Did you run out-of-memory evaluating nixpkgs?

@Mic92
Copy link
Owner

Mic92 commented Sep 14, 2023

Is the error still reproducible on the repository after ofborg has evaluated the pull request?

@dani0854
Copy link
Author

I don't think I ran out of memory.
But the error seems to go away now.

Before it was reproducible, I tried building about 5 times. Can't reproduce now.

Mic92 added a commit that referenced this issue Sep 14, 2023
Mic92 added a commit that referenced this issue Sep 14, 2023
Mic92 added a commit that referenced this issue Sep 14, 2023
Mic92 added a commit that referenced this issue Sep 14, 2023
Mic92 added a commit that referenced this issue Sep 14, 2023
@Mic92
Copy link
Owner

Mic92 commented Sep 14, 2023

It's not really clear to me what the problem is, but I refactored nixpkgs-review to print the underlying error better: #362

@dani0854
Copy link
Author

Thanks, if I get the same error again I will hope it will have more context, and might open a different issue. Closing this one for now.

@Mic92
Copy link
Owner

Mic92 commented Sep 15, 2023

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

2 participants