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

Not much seems to have happen, and report is meager #122

Closed
Pamplemousse opened this issue Aug 13, 2020 · 3 comments
Closed

Not much seems to have happen, and report is meager #122

Pamplemousse opened this issue Aug 13, 2020 · 3 comments

Comments

@Pamplemousse
Copy link

I am not too familiar with nixpkgs-review, so maybe I have wrong expectations here...

Wanting to review NixOS/nixpkgs#68524, I obtain the following:

[nix-shell:~/Workspace/tools/nixpkgs]$ nix-review pr 68524
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/68524/head:refs/nixpkgs-review/1
$ git worktree add /home/pamplemousse/.cache/nixpkgs-review/pr-68524/nixpkgs 6127d1e117dfb7c85f216435f3a4378368b2966a
Preparing worktree (detached HEAD 6127d1e117d)
Updating files: 100% (22433/22433), done.
HEAD is now at 6127d1e117d Merge pull request #95261 from r-ryantm/auto-update/operator-sdk
$ nix-env -f /home/pamplemousse/.cache/nixpkgs-review/pr-68524/nixpkgs -qaP --xml --out-path --show-trace
$ git merge --no-commit 01058f5099b92e48d4bccba8639a8b7a7d3b4cb0
warning: inexact rename detection was skipped due to too many files.
warning: you may want to set your merge.renamelimit variable to at least 3864 and retry the command.
Automatic merge went well; stopped before committing as requested
$ nix-env -f /home/pamplemousse/.cache/nixpkgs-review/pr-68524/nixpkgs -qaP --xml --out-path --show-trace --meta
Nothing changed
https://github.com/NixOS/nixpkgs/pull/68524
$ nix-shell /home/pamplemousse/.cache/nixpkgs-review/pr-68524/shell.nix

[nix-shell:~/.cache/nixpkgs-review/pr-68524]$ cat report.md 
Result of `nixpkgs-review pr 68524` [1](https://github.com/Mic92/nixpkgs-review)

It appears that fetchRepoProject is used by amdvlk, so I expected the report to show at least this package being built...

Is there a bug? Did I overlook anything (the warnings)? Was I expecting the wrong behavior?

Thanks for you help 🙂

@Pamplemousse
Copy link
Author

I checked out the PR, which has not been rebased in a while, and there is no package importing fetchRepoProject.
So, I guess that nix-review did not see anything to build...

Might be nice to have a message like "Nothing to be built.".

@Mic92
Copy link
Owner

Mic92 commented Aug 13, 2020

makes sense.

@Mic92
Copy link
Owner

Mic92 commented Aug 14, 2020

amdvlk is not rebuild because fetchRepoProject is a fixed-input derivation with a checksum.
When the checksum stays the same, nix won't rebuilt it. Hence nixpkgs-review is not able to detect changes.

@Mic92 Mic92 closed this as completed in ce9547e Aug 14, 2020
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