Add Buildbot build status badge#11938
Open
LuxologyGG wants to merge 2 commits into
Open
Conversation
Implement badge for issue badges#6837 using the Buildbot REST API to show the latest build result for a builder.
Contributor
|
Member
|
Hello @LuxologyGG 👋🏻 What are the API rate limits? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6837
Summary
Adds a new Buildbot build status badge that queries a self-hosted Buildbot instance's REST API for the latest build result on a given builder.
Example URL:
Changes
services/buildbot/buildbot.service.js— fetches{baseUrl}/api/v2/builders/{builder}/builds?limit=1&order=-numberand maps Buildbot result codes to badge statusservices/buildbot/buildbot.service.spec.js— unit tests for URL building, result transformation, and renderingservices/buildbot/buildbot.tester.js— live and mocked integration testsTest plan
npm run test:core -- --grep Buildbot(15 passing)npm run test:services -- --grep buildbot(3 passing)