!zghijEASpYQWYFzriI:nixos.org

Hydra

388 Members
109 Servers

Load older messages


SenderMessageTime
17 May 2022
@kranium:matrix.orgkranium joined the room.12:22:43
@ulrikstrid:matrix.org@ulrikstrid:matrix.org Getting this error: Use of uninitialized value in split at /nix/store/g3lg8z40x6m0l81h3fjkvg6gd2h9wv3m-hydra-0.1.20220502.7c133a9/libexec/hydra/lib/Hydra/Plugin/GithubPulls.pm line 33.
which seems to be this line: https://github.com/NixOS/hydra/blob/b41818e067c7d3925171bcfaeb854015d5b64ff1/src/lib/Hydra/Plugin/GithubPulls.pm#L33
19:40:06
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgHow can I debug/Fix this? I'm not a good perl developer :P19:40:23
@ckie:ckie.devmei 🌒& one would guess $res->header("Link") is null (I have never used perl before) 19:45:19
@ckie:ckie.devmei 🌒& * one would guess $res->header("Link") is null (I have never written perl before) 19:45:32
@janne.hess:helsinki-systems.dedas_j
In reply to @ckie:ckie.dev
one would guess $res->header("Link") is null (I have never written perl before)
it's actually undef, making it appear that no Link header was returned
19:50:21
@ckie:ckie.devmei 🌒& i did say i've never written perl before (^: 19:50:46
@ckie:ckie.devmei 🌒&does perl have a null though?19:50:55
@janne.hess:helsinki-systems.dedas_jno, just undef19:51:00
@janne.hess:helsinki-systems.dedas_j… or does it?19:51:04
@ckie:ckie.devmei 🌒& vsauce music 19:51:12
@janne.hess:helsinki-systems.dedas_j
In reply to @janne.hess:helsinki-systems.de
it's actually undef, making it appear that no Link header was returned
if that's a valid case (and the integration doesn't break when no Link is returned) you can just do `split ',', ($res->header("Link") // "");
19:51:30
@janne.hess:helsinki-systems.dedas_j
In reply to @janne.hess:helsinki-systems.de
it's actually undef, making it appear that no Link header was returned
* if that's a valid case (and the integration doesn't break when no Link is returned) you can just do `split ',', ($res->header("Link") // "");`
19:51:34
@janne.hess:helsinki-systems.dedas_j * if that's a valid case (and the integration doesn't break when no Link is returned) you can just do split ',', ($res->header("Link") // ""); 19:51:42
@janne.hess:helsinki-systems.dedas_j
  DB<2> print STDERR (undef // "lal");
lal
  DB<3> print STDERR ("abc" // "lal");
abc
19:52:17
@janne.hess:helsinki-systems.dedas_j
In reply to @janne.hess:helsinki-systems.de
if that's a valid case (and the integration doesn't break when no Link is returned) you can just do split ',', ($res->header("Link") // "");
probably without the parenthesis but it makes it a lot more readable
19:52:44
18 May 2022
@jhu:pikaviestin.fiJhu joined the room.06:46:51
@ulrikstrid:matrix.org@ulrikstrid:matrix.org Thank you das_j that seems to have worked! :) And now I finally figured out the last pieces to get GitHub PRs working with flakes 12:05:44
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgShould I open a PR with your change or do you want to do it? 🤔12:06:16
@janne.hess:helsinki-systems.dedas_jNo, feel free. I don't use the plugin at all12:14:58
@janne.hess:helsinki-systems.dedas_j * Feel free to do it. I don't use the plugin at all12:15:12
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgCool, opened a PR :)12:17:15
@kenran_:matrix.orgkenran_Redacted or Malformed Event16:27:03
@kenran_:matrix.orgkenran_Redacted or Malformed Event16:27:33
@janne.hess:helsinki-systems.dedas_jNot sure if I understand the question correctly, but how is that related to hydra?16:27:50
@kenran_:matrix.orgkenran_Oh, sorry, I must have pressed some hotkey accidentally and switched the channel. One sec.16:28:18
@janne.hess:helsinki-systems.dedas_jNo worries ;)16:28:54
@rick:matrix.ciphernetics.nlRick (Mindavi)Anyone here an idea how to resolve / workaround this issue? https://github.com/NixOS/nixpkgs/pull/172242#issuecomment-112821034816:42:25
19 May 2022
@rewina:matrix.org@rewina:matrix.org changed their profile picture.10:21:21
22 May 2022
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgAre there any resources on how to write and run Integration-style tests with nix/hydra?13:26:22

Show newer messages


Back to Room ListRoom Version: 6