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: fix run-time dependencies after latest CPAN update. #39314

Merged
merged 1 commit into from
Apr 23, 2018
Merged

hydra: fix run-time dependencies after latest CPAN update. #39314

merged 1 commit into from
Apr 23, 2018

Conversation

dhess
Copy link
Contributor

@dhess dhess commented Apr 21, 2018

Motivation for this change

Since the last CPAN update, Hydra gives me the following error:

hydra# [   38.522286] hydra-server[1020]: Can't locate CatalystX/RoleApplicator.pm in @INC (you may need to install the CatalystX::RoleApplicator module) (@INC contains: /nix/store/yfhzsc7lpizxb76d9300sy9jawakk5j3-hydra-2017-11-21/libexec/hydra/lib /nix/store/9a33c872rlgda3zqf4x05izyl5jv2hr6-hydra-perl-deps/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi /nix/store/9a33c872rlgda3zqf4x05izyl5jv2hr6-hydra-perl-deps/lib/perl5/site_perl/5.24.3 /nix/store/9a33c872rlgda3zqf4x05izyl5jv2hr6-hydra-perl-deps/lib/perl5/site_perl /nix/store/cxdmh98g0lvl1dyq304c1lq7f90dh01f-perl-5.24.3/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi /nix/store/cxdmh98g0lvl1dyq304c1lq7f90dh01f-perl-5.24.3/lib/perl5/site_perl/5.24.3 /nix/store/cxdmh98g0lvl1dyq304c1lq7f90dh01f-perl-5.24.3/lib/perl5/site_perl /nix/store/cxdmh98g0lvl1dyq304c1lq7f90dh01f-perl-5.24.3/lib/perl5/5.24.3/x86_64-linux-thread-multi /nix/store/cxdmh98g0lvl1dyq304c1lq7f90dh01f-perl-5.24.3/lib/perl5/5.24.3 .) at /nix/store/yfhzsc7lpizxb76d9300sy9jawakk5j3-hydra-2017-11-21/libexec/hydra/lib/Hydra.pm line 22.
hydra# [   38.542486] hydra-server[1020]: BEGIN failed--compilation aborted at /nix/store/yfhzsc7lpizxb76d9300sy9jawakk5j3-hydra-2017-11-21/libexec/hydra/lib/Hydra.pm line 22.
hydra# [   38.548678] hydra-server[1020]: Compilation failed in require at /nix/store/9a33c872rlgda3zqf4x05izyl5jv2hr6-hydra-perl-deps/lib/perl5/site_perl/5.24.3/Catalyst/Utils.pm line 309.
hydra# [   38.555978] systemd[1]: hydra-server.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
hydra# [   38.558857] systemd[1]: hydra-server.service: Failed with result 'exit-code'.

Adding CatalystXRoleApplicator to the run-time dependencies fixes that error, but it then complains about JSON::Any, so I've fixed that here, as well.

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.

@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 1-10 labels Apr 21, 2018
@Mic92
Copy link
Member

Mic92 commented Apr 22, 2018

@GrahamcOfBorg build hydra

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: hydra

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: hydra

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@Mic92
Copy link
Member

Mic92 commented Apr 22, 2018

So the same applies to 18.03?

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: hydra

Partial log (click to expand)

make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/v66ki58nwknrymrbhpa7jd6lmg1niks0-hydra-2017-11-21
shrinking /nix/store/v66ki58nwknrymrbhpa7jd6lmg1niks0-hydra-2017-11-21/bin/hydra-evaluator
shrinking /nix/store/v66ki58nwknrymrbhpa7jd6lmg1niks0-hydra-2017-11-21/bin/hydra-eval-jobs
shrinking /nix/store/v66ki58nwknrymrbhpa7jd6lmg1niks0-hydra-2017-11-21/bin/hydra-queue-runner
patching script interpreter paths in /nix/store/v66ki58nwknrymrbhpa7jd6lmg1niks0-hydra-2017-11-21
checking for references to /build in /nix/store/v66ki58nwknrymrbhpa7jd6lmg1niks0-hydra-2017-11-21...
finalPhase
build time elapsed:  0m0.521s 0m0.497s 1m18.847s 0m8.108s

@Mic92 Mic92 merged commit 635f24d into NixOS:master Apr 23, 2018
@dhess dhess deleted the fix-hydra branch April 23, 2018 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants