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

Bug 1619470: Add support for listening to hg.mozilla.org pulse messsages. #22

Merged
merged 4 commits into from
Jun 22, 2020

Conversation

tomprince
Copy link
Contributor

This is to support Bug 1619470, running `ci-admin automatically in cloudops's Jenkins instance. (cc: @edunham)

@oremj This shares a bunch of code with #18 but I realized that that may need a bit more thought on the exact interface that should have between taskcluster and jenkins, where-as I think the interface here is fairly obvious.

cli.StringSliceFlag{
Name: "hgmo-repo",
Usage: "hg.mozilla.org repo to listend to pushes from (can be used multiple times)",
Value: &cli.StringSlice{"ci/ci-admin", "ci/ci-configuration"},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if these should be hard-coded?

@tomprince
Copy link
Contributor Author

(also, this is currently untested)

proxyservice/jenkins.go Outdated Show resolved Hide resolved
@tomprince tomprince force-pushed the hgmo-support branch 2 times, most recently from d7bcd00 to b9a7c76 Compare March 27, 2020 20:56
@tomprince tomprince requested a review from oremj March 30, 2020 07:27
proxyservice/jenkins.go Outdated Show resolved Hide resolved
proxyservice/jenkins.go Outdated Show resolved Hide resolved
@tomprince
Copy link
Contributor Author

Added some test (with the docker-specific parts in #23 that this is based on).

@oremj
Copy link
Contributor

oremj commented May 8, 2020

Would you mind rebasing this PR?

@oremj oremj requested a review from a user May 8, 2020 16:34
@oremj
Copy link
Contributor

oremj commented May 8, 2020

Adding @moz-jvehent for security review.

main.go Outdated Show resolved Hide resolved
if len(data.PushlogPushes) != 1 {
log.Printf("Message %s has %d pushlog pushes, only 1 supported", t, len(data.PushlogPushes))
break
}
Copy link

Choose a reason for hiding this comment

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

@tomprince and I have been discussing this outside of this PR, but need some sort of verification step here similar to https://github.com/mozilla-services/cloudops-deployment-proxy/blob/master/proxyservice/dockerhub_handler.go#L49

@tomprince
Copy link
Contributor Author

@oremj I think this is ready for review.

@oremj oremj merged commit cfdfb52 into mozilla-services:master Jun 22, 2020
@tomprince tomprince deleted the hgmo-support branch June 22, 2020 20:58
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.

3 participants