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 github notifications for evals #712

Closed
wants to merge 1 commit into from

Conversation

pikajude
Copy link

@pikajude pikajude commented Feb 6, 2020

Eval notifications are nice. This makes status not get stuck if an evaluation fails.

@knl
Copy link
Contributor

knl commented Mar 16, 2020

Maybe it would be good to have unified eval context (instead of one being named after the PR), so one could turn on branch protection on the context being successful.

Implemented in: pikajude#1

}
};
if ($@) {
print STDERR "error processing message '$payload' on channel '$channelName': $@\n";
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed. My understanding is that it's used for the test, and I wrote in the test how one can do it differently, alleviating the need for once.

@@ -88,6 +127,10 @@ for my $build ($db->resultset('Builds')->search(
my $buildId = $build->id;
print STDERR "sending notifications for build ${\$buildId}...\n";
buildFinished($build);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed. My understanding is that it's used for the test, and I wrote in the test how one can do it differently, alleviating the need for once.

Comment on lines +367 to +369
my $output = $machine->mustSucceed("hydra-notify --once 2>&1");
$output =~ m!GithubStatus_Debug POSTing to.*repos/run/jobset/statuses!
or die "GithubStatus plugin did not activate";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
my $output = $machine->mustSucceed("hydra-notify --once 2>&1");
$output =~ m!GithubStatus_Debug POSTing to.*repos/run/jobset/statuses!
or die "GithubStatus plugin did not activate";
$machine->waitUntilSucceeds("journalctl -u hydra-notify.service | grep -G 'GithubStatus_Debug POSTing to.*repos/run/jobset/statuses'");

@pingiun
Copy link
Member

pingiun commented Jan 4, 2021

I have a modified version of this running on my hydra server, and it seems to work great. If you apply the suggestions and rebase this from master I think it would be a good addition

pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 29, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 30, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
pingiun added a commit to pingiun/hydra that referenced this pull request Jan 30, 2021
Adapted from NixOS#712

NixOS#712

Co-authored-by: Jude Taylor <jude.taylor@dfinity.org>
@pikajude pikajude closed this Jun 24, 2021
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

3 participants