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

Add JSON to hydra-perl-deps #601

Closed
wants to merge 1 commit into from
Closed

Conversation

aycanirican
Copy link
Member

This fixes test failures on 18.09 ("Can't locate JSON.pm in @inc").

Example snippet:

initialising the Hydra database schema...
PASS: set-up.pl
1..76
STDERR: Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: . /build/source/src/lib /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0) at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
BEGIN failed--compilation aborted at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
Compilation failed in require at /build/source/src/script/hydra-eval-jobset line 10.
BEGIN failed--compilation aborted at /build/source/src/script/hydra-eval-jobset line 10.
not ok 1 - Evaluating jobs/basic.nix should exit with return code 0
#   Failed test 'Evaluating jobs/basic.nix should exit with return code 0'
#   at ./evaluation-tests.pl line 24.
not ok 2 - Evaluating jobs/basic.nix should result in 3 builds
#   Failed test 'Evaluating jobs/basic.nix should result in 3 builds'
#   at ./evaluation-tests.pl line 25.
STDERR: Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: . /build/source/src/lib /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0) at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
BEGIN failed--compilation aborted at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
Compilation failed in require at /build/source/src/script/hydra-eval-jobset line 10.
BEGIN failed--compilation aborted at /build/source/src/script/hydra-eval-jobset line 10.

This fixes the "Can't locate JSON.pm in @inc" problem for tests.

```initialising the Hydra database schema...
PASS: set-up.pl
1..76
STDERR: Can't locate JSON.pm in @inc (you may need to install the JSON module) (@inc contains: . /build/source/src/lib /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0) at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
BEGIN failed--compilation aborted at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
Compilation failed in require at /build/source/src/script/hydra-eval-jobset line 10.
BEGIN failed--compilation aborted at /build/source/src/script/hydra-eval-jobset line 10.
not ok 1 - Evaluating jobs/basic.nix should exit with return code 0
#   Failed test 'Evaluating jobs/basic.nix should exit with return code 0'
#   at ./evaluation-tests.pl line 24.
not ok 2 - Evaluating jobs/basic.nix should result in 3 builds
#   Failed test 'Evaluating jobs/basic.nix should result in 3 builds'
#   at ./evaluation-tests.pl line 25.
STDERR: Can't locate JSON.pm in @inc (you may need to install the JSON module) (@inc contains: . /build/source/src/lib /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl/5.28.0 /nix/store/j4wi2q8npcfv84vcwrmf35rwfcqd0yxj-hydra-perl-deps/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/site_perl/5.28.0 /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0/x86_64-linux-thread-multi /nix/store/q9ajsngf2w3r10dg7b1148wzq1avp4gj-perl-5.28.0/lib/perl5/5.28.0) at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
BEGIN failed--compilation aborted at /build/source/src/lib/Hydra/Helper/AddBuilds.pm line 6.
Compilation failed in require at /build/source/src/script/hydra-eval-jobset line 10.
BEGIN failed--compilation aborted at /build/source/src/script/hydra-eval-jobset line 10.
```
@aycanirican
Copy link
Member Author

Duplicate of #597, closing...

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

Successfully merging this pull request may close these issues.

None yet

1 participant