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

nix-info: apply SC1117 suggested fix #32857

Merged
merged 1 commit into from Dec 20, 2017
Merged

nix-info: apply SC1117 suggested fix #32857

merged 1 commit into from Dec 20, 2017

Conversation

acowley
Copy link
Contributor

@acowley acowley commented Dec 19, 2017

Motivation for this change

It seems like this a nix-info build failure is blocking the unstable channels.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@lukateras
Copy link
Member

lukateras commented Dec 19, 2017

For reference: https://github.com/koalaman/shellcheck/wiki/SC1117

Since this is a stylistic change, I think that in order for it to make sense this also should be changed in the rest of Nixpkgs, preferably including .nix files.

@acowley
Copy link
Contributor Author

acowley commented Dec 19, 2017

Or we could disable this check. I’m just trying to unblock the unstable channels.

@orivej orivej merged commit c7c79eb into NixOS:master Dec 20, 2017
@lukateras
Copy link
Member

lukateras commented Dec 20, 2017

@acowley I'm sorry, I was wrong.

I should have looked into the derivation before making assumptions.

@orivej
Copy link
Contributor

orivej commented Dec 20, 2017

I don't know if this is necessary or sufficient to unstuck the channel, but at least it fixes the test.

I thought that http://hydra.nixos.org/job/nixos/trunk-combined/tested linked from https://howoldis.herokuapp.com/ is responsible for channel updates, but it has completed 6 hours ago and the channel has not advanced.

@lukateras
Copy link
Member

Does Hydra build with checks, even if doCheck = false by default?

@orivej
Copy link
Contributor

orivej commented Dec 20, 2017

Aha, I was looking at nixos-unstable (the default channel on NixOS) and @acowley was looking at nixpkgs-unstable.

@yegortimoshenko No.

@lukateras
Copy link
Member

lukateras commented Dec 20, 2017

Then this has not affected the channel, see: https://github.com/nixos/nixpkgs/blob/2e001620d52ddbaa41fcd5ab8dfb5e36d204ea1c/pkgs/tools/nix/info/default.nix#L2

I didn't think that nix-info derivation used shellcheck, so I was wrong in my first comment anyway.

@orivej
Copy link
Contributor

orivej commented Dec 20, 2017

It is an option to be overridden :)

nix-info-tested = callPackage ../tools/nix/info { doCheck = true; };

@lukateras
Copy link
Member

...

@orivej
Copy link
Contributor

orivej commented Dec 20, 2017

https://howoldis.herokuapp.com/ gives an explanation:

For a channel to be updated two conditions need to be satisfied:

  • Particular jobset evaluation needs to be completely built ie. no more queued jobs, even if some jobs may fail
  • Particular jobset evaluation's tested/unstable job needs to be built succesfully

And the evaluation of that nixos-unstable jobset has not completed yet: https://hydra.nixos.org/eval/1419641#tabs-unfinished . My understanding is that the channel will update after no jobs remain in the queue, even if they will be cancelled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants