Skip to content

make-bootstrap-tools-cross: fix typo which prevents hydra eval#165733

Merged
sternenseemann merged 1 commit intomasterfrom
unknown repository
Mar 26, 2022
Merged

make-bootstrap-tools-cross: fix typo which prevents hydra eval#165733
sternenseemann merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Mar 25, 2022

When implementing this reviewer request to move mips64el-unknown-linux-* from platforms.nix to examples.nix, I
neglected to update the reference in make-bootstrap-tools-cross.nix.
As a result, the hydra jobs to generate a bootstrap tarball for
mips64el are not running:

https://hydra.nixos.org/eval/1750828?filter=mips&compare=1750620&full=#tabs-errors

This commit fixes the problem, so the hydra job can run. Once it
does, I will submit a PR adding the trusted bootstrap tarball hash to
pkgs/stdenv/linux/bootstrap-files/.

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: stdenv Standard environment label Mar 25, 2022
@ghost
Copy link
Author

ghost commented Mar 25, 2022

@Ericson2314, please take a look at this when you get a chance. You are familiar with the background here.

Also, can anybody explain to me how to reproduce exactly what expression Hydra is evaluating here? It isn't simply

nix-build pkgs/top-level/release-cross.nix

since that evaluates to an attrset, not a derivation (so the command above does nothing). Clearly there is much more "input" to this job than is shown on the webpage; at minimum you need

nix-build pkgs/top-level/release-cross.nix -A bootstrapTools.mips64el-linux-gnuabi64

plus you need to pass a value for supportedSystems to avoid the abort on line 212. Where is Hydra getting these values from?

@ghost
Copy link
Author

ghost commented Mar 25, 2022

One other question: in nixlang, how exactly does one go about figuring out all the places in a codebase that reference a given identifier?

In Haskell, ML, Rust, and even C/C++ I'm accustomed to simply deleting a declaration and then recompiling to figure out "what uses this declaration?" The compiler will tell me all the places where it is used by producing a compilation error for each of those places.

How do I do this in nixlang?

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Mar 25, 2022
@ghost
Copy link
Author

ghost commented Mar 25, 2022

@ofborg said:

evaluation aborted with the following error message: 'Failed to evaluate qmmp-1.4.4: «unknown-meta»: has an invalid meta attrset:

Um, I don't think this is my fault.

@Artturin
Copy link
Member

@ofborg eval

@ghost
Copy link
Author

ghost commented Mar 25, 2022

@ofborg eval

(success)

Weird. Nothing changed between the two evaluations.

@ghost ghost mentioned this pull request Mar 25, 2022
13 tasks
@sternenseemann
Copy link
Member

Also, can anybody explain to me how to reproduce exactly what expression Hydra is evaluating here? It isn't simply

nix-shell -p hydra-unstable --run "hydra-eval-jobs -I . pkgs/top-level/release-cross.nix

Weird. Nothing changed between the two evaluations.

ofborg merges the PR into master before evaluating, so probably master fixed the eval issue in the meantime.

@Artturin
Copy link
Member

@ofborg eval

(success)

Weird. Nothing changed between the two evaluations.

i fixed the eval issue in a another pr

@ghost ghost requested a review from sternenseemann March 25, 2022 20:54
@sternenseemann
Copy link
Member

Please squash the commits into one.

@ghost
Copy link
Author

ghost commented Mar 26, 2022

Please squash the commits into one.

Done.

@Artturin
Copy link
Member

Commit name is wrong

@ghost
Copy link
Author

ghost commented Mar 26, 2022

Sorry about that, fixed now.

When implementing this reviewer request:

  #161158 (comment)

to move mips64el-unknown-linux-* from platforms.nix to examples.nix, I
neglected to update the reference in make-bootstrap-tools-cross.nix.
As a result, the hydra jobs to generate a bootstrap tarball for
mips64el are not running:

  https://hydra.nixos.org/eval/1750828?filter=mips&compare=1750620&full=#tabs-errors

This commit fixes the problem, so the hydra job can run.  Once it
does, I will submit a PR adding the trusted bootstrap tarball hash to
pkgs/stdenv/linux/bootstrap-files/.

Co-authored-by: sterni <[email protected]>
@sternenseemann sternenseemann merged commit 13e63f6 into NixOS:master Mar 26, 2022
@ghost
Copy link
Author

ghost commented Mar 26, 2022

Thank you. And, again, apologies for how I screwed this up in the initial PR.

Still interested in knowing if nixlang has a "where is this declaration used" mechanism. I'll ask on the Discourse forum.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixlang-how-do-you-find-all-uses-of-a-declaration/18369/1

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixlang-how-do-you-find-all-uses-of-a-declaration/18369/6

@ghost ghost deleted the fix-mips-hydra-job-eval branch March 26, 2022 22:50
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixlang-how-do-you-find-all-uses-of-a-declaration/18369/11

@ghost
Copy link
Author

ghost commented Mar 30, 2022

Hydra's /nix/store appears to have some crud in one of the directories, preventing the build from resuming. I've logged the details in #166481. If anybody could poke Hydra in the right way to make it resume I would really appreciate it.

@ghost
Copy link
Author

ghost commented Mar 31, 2022

Narrowed it down to this.

If somebody could kick Hydra in the appropriate way to force a rebuild I would appreciate it.

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

Labels

6.topic: stdenv Standard environment 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants