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

[Hydra failure] attribute 'elkPackages' missing, at /build/source/pkgs/tools/misc/logstash/6.x.nix:58:30 #127274

Closed
happysalada opened this issue Jun 17, 2021 · 12 comments
Labels

Comments

@happysalada
Copy link
Contributor

happysalada commented Jun 17, 2021

Hydra is failing
from the logs, I can only point to this commit
cc @roberth
Since this commit is from the 23rd of march, I might be wrong on this. Don't take this as a blame, but more as a, let's figure out what is happening together. It seems you might be the most knowledgeable person.

@collares
Copy link
Member

collares commented Jun 18, 2021

nixosTests.elk is only non-{} for x86_64-linux...

https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/all-tests.nix#L115

...while logstash supports all Unix platforms:

https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/logstash/6.x.nix#L53

But if that's the cause, why would find-tarballs.nix suddenly start caring about other platforms?

@roberth
Copy link
Member

roberth commented Jun 18, 2021

This job has been robust against this inconsistency in tests until a change in the last 2 days.
I hope we can repair this recent change, because that will save complexity in the packages. I'll attempt to git bisect.

@vcunat
Copy link
Member

vcunat commented Jun 18, 2021

Bisected to PR #125973, though I'm not sure that really helps.

I misread your post and didn't think you were bisecting already.

@roberth
Copy link
Member

roberth commented Jun 18, 2021

No problem! My bisect completed just now and returned d1d37fe, which is a master->staging-next merge.

bisect log

I still consider myself somewhat of a novice when it comes to bisecting, so I might have made a mistake.

bisect run command

git bisect run nix-build pkgs/top-level/release.nix -A tarball

log

git bisect start
# bad: [c06cb69ca0dc02b37e27104ac8415c3cab173328] networkmanager: fix updateScript
git bisect bad c06cb69ca0dc02b37e27104ac8415c3cab173328
# good: [0747387223edf1aa5beaedf48983471315d95e16] Merge pull request #126998 from Artturin/update-discord
git bisect good 0747387223edf1aa5beaedf48983471315d95e16
# bad: [2d104c99a7d99ead0a9eeb74f1f523aa77aae743] Merge master into staging-next
git bisect bad 2d104c99a7d99ead0a9eeb74f1f523aa77aae743
# good: [39f8014bf704011154a2b5858f50ca5d42788f9b] Merge master into staging-next
git bisect good 39f8014bf704011154a2b5858f50ca5d42788f9b
# good: [f36f78c8034efd05eb5f47bdd51ed1375faf70fb] Merge master into staging-next
git bisect good f36f78c8034efd05eb5f47bdd51ed1375faf70fb
# good: [212846c302a1e805d325b256111e6833f2ae30ba] Merge master into staging-next
git bisect good 212846c302a1e805d325b256111e6833f2ae30ba
# bad: [d1d37feb6d21180b7f7b47cf681613a09228da0a] Merge branch 'master' into staging-next
git bisect bad d1d37feb6d21180b7f7b47cf681613a09228da0a
# good: [ec4b7ebf8686e1162e2e7406996a2650a34870d4] Merge master into staging-next
git bisect good ec4b7ebf8686e1162e2e7406996a2650a34870d4
# good: [13f31f60bf933de43c4b4f5c6601a7a2376cd334] Merge master into staging-next
git bisect good 13f31f60bf933de43c4b4f5c6601a7a2376cd334
# good: [f2ba460019c8ceb7af3967520f98a6836e759217] Merge master into staging-next
git bisect good f2ba460019c8ceb7af3967520f98a6836e759217
# good: [91171e295574bd7721cafeaf4200c807952275a7] Merge branch 'master' into staging-next
git bisect good 91171e295574bd7721cafeaf4200c807952275a7
# first bad commit: [d1d37feb6d21180b7f7b47cf681613a09228da0a] Merge branch 'master' into staging-next

Note the the tarball function removes meta and passthru. Perhaps an easy solution is to remove tests as well. I don't suppose we have many tarballs that are only ever referenced through passthru.tests?

@vcunat
Copy link
Member

vcunat commented Jun 18, 2021

The commit you found shows a different error for me:

$ nix build -f pkgs/top-level/release.nix tarball
error: syntax error, unexpected OR, at $nixpkgs/pkgs/servers/x11/xorg/default.nix:3135:1

@vcunat
Copy link
Member

vcunat commented Jun 18, 2021

As you say, it would be easy enough way to work around this particular issue (I verified that) and down-sides seem very low, so perhaps 🤷🏽

BTW, even if a couple tarballs would get missed, we apparently had much larger issues unnoticed: https://discourse.nixos.org/t/is-tarballs-nixos-org-stuck-at-19-09/13647

@aszlig
Copy link
Member

aszlig commented Jun 18, 2021

Note that the actual commit that introduces this is 3884ff7.

@happysalada
Copy link
Contributor Author

@blaggacao maybe you have some insight?

@aszlig
Copy link
Member

aszlig commented Jun 18, 2021

The issue is that the passthru attribute from here didn't get passed to the actual functions generating the runner, as it was prior to this commit.

aszlig added a commit to aszlig/nixpkgs that referenced this issue Jun 18, 2021
Apparently this looks like it was forgotten when doing commit
3884ff7, which refactored the test
runner and driver a bit.

The passthru argument actually was correctly reintroduced in
setupDriverForTest, but the actual makeTest function didn't use it.

This fixes the nixpkgs tarball job, which previously failed with:

  attribute 'elkPackages' missing, at /build/source/pkgs/tools/misc/logstash/6.x.nix:58:30

Signed-off-by: aszlig <aszlig@nix.build>
Fixes: NixOS#127274
@blaggacao
Copy link
Contributor

I'll be on it in a minute.

@aszlig
Copy link
Member

aszlig commented Jun 18, 2021

@blaggacao: See #127346

@aszlig aszlig closed this as completed in bc09974 Jun 18, 2021
@blaggacao
Copy link
Contributor

blaggacao commented Jun 18, 2021

@aszlig thanks a lot for covering my back! 😄

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

Successfully merging a pull request may close this issue.

6 participants