allow using a shorter context and increase hydra-notify debug

[?]
Sep 10, 2018, 4:50 PM
7LD275CWWC7L5V4ETGIQRMOEJV5JRUSYQ7LUFINAUGAHWANCREGAC

Dependencies

  • [2] NTEDD7T4 Provide a plugin hook for when build steps finish
  • [3] 5K2OOGOQ Github status API: Pull authorization from github_authorization by default
  • [4] 3STSGGIY GithubStatus: Allow config to specify the integration description and context
  • [5] WIM6VQOH GithubStatus: Include the full job name and build ID in the context.
  • [6] NSRWW6LC Add a plugin to interact with the github status API.
  • [*] 24BMQDZA Start of single-process hydra-queue-runner
  • [*] IE2PRAQU hydra-queue-runner: Send build notifications

Change contents

  • edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 490
    [2.2662]
    [9.2117]
    printMsg(lvlChatty, "Executing hydra-notify " + concatStringsSep(" ", argv));
  • edit in src/lib/Hydra/Plugin/GithubStatus.pm at line 35
    [5.1343]
    [5.1343]
    print STDERR "GithubStatus_Debug job name $jobName\n";
  • edit in src/lib/Hydra/Plugin/GithubStatus.pm at line 41
    [5.91]
    [5.91]
    my $github_job_name = $jobName =~ s/-pr-\d+//r;
    my $extendedContext = $conf->{context} // "continuous-integration/hydra:" . $jobName . $contextTrailer;
    my $shortContext = $conf->{context} // "ci/hydra:" . $github_job_name . $contextTrailer;
    my $context = $conf->{useShortContext} ? $shortContext : $extendedContext;
  • replacement in src/lib/Hydra/Plugin/GithubStatus.pm at line 50
    [4.102][4.102:214]()
    context => $conf->{context} // "continuous-integration/hydra:" . $jobName . $contextTrailer
    [4.102]
    [5.462]
    context => $context
  • replacement in src/lib/Hydra/Plugin/GithubStatus.pm at line 67
    [3.71][3.71:188]()
    my $req = HTTP::Request->new('POST', "https://api.github.com/repos/$owner/$repo/statuses/$rev");
    [3.71]
    [5.2242]
    my $url = "https://api.github.com/repos/$owner/$repo/statuses/$rev";
    print STDERR "GithubStatus_Debug POSTing to '", $url, "'\n";
    my $req = HTTP::Request->new('POST', $url);