Page MenuHomeDevCentral

Accept mail notifications for DockerHub build failures
ClosedPublic

Authored by dereckson on Sep 1 2016, 19:30.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 00:07
Unknown Object (File)
Sat, Nov 9, 20:14
Unknown Object (File)
Wed, Nov 6, 04:31
Unknown Object (File)
Wed, Nov 6, 03:10
Unknown Object (File)
Wed, Nov 6, 03:05
Unknown Object (File)
Sat, Nov 2, 12:21
Unknown Object (File)
Fri, Nov 1, 00:27
Unknown Object (File)
Tue, Oct 29, 11:05

Details

Summary

The Docker Hub has currently an API to fire webhooks event when the
notification fails, but no mechanism to fire such notification when
a build fails.

But such notifications exist, by mail. We so accept incoming mail
Mailgun payloads to process them and fire a DockerHub buildFailure
notification.

Fixes T1000.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Passed
Unit
Test Failures
Branch
DockerHubFailures

Unit TestsBroken

TimeTest
63,341 msUnknown Unit Message ("")
cURL error 56: SSL read: error:00000000:lib(0):func(0):reason(0), errno 104 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) /home/ubuntu/workspace/notifications/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187 /home/ubuntu/workspace/notifications/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:150
140 msUnknown Unit Message ("")

Event Timeline

dereckson retitled this revision from to Accept mail notifications for DockerHub build failures.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a subscriber: Sandlayth.

Use Mailgun facade defined in D640.

Extract URL and link from text, tests are ok now.

dereckson added inline comments.
app/Notifications/DockerHubNotification.php
122

Use two classes instead here.

Each DockerHub payload have its own analyzer class.

dereckson marked an inline comment as done.
dereckson added inline comments.
app/Analyzers/DockerHub/BaseEvent.php
5 ↗(On Diff #1624)

Double space.

dereckson marked an inline comment as done.

Double space → single space in class declarations.

This revision was automatically updated to reflect the committed changes.