Skip to content

Add Buildbot build status badge#11938

Open
LuxologyGG wants to merge 2 commits into
badges:masterfrom
LuxologyGG:feat/auto-badge-issue-6837
Open

Add Buildbot build status badge#11938
LuxologyGG wants to merge 2 commits into
badges:masterfrom
LuxologyGG:feat/auto-badge-issue-6837

Conversation

@LuxologyGG

Copy link
Copy Markdown

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:

/buildbot/build/amd64-rhel8-dockerlibrary?baseUrl=https://buildbot.mariadb.org

Changes

  • Add services/buildbot/buildbot.service.js — fetches {baseUrl}/api/v2/builders/{builder}/builds?limit=1&order=-number and maps Buildbot result codes to badge status
  • Add services/buildbot/buildbot.service.spec.js — unit tests for URL building, result transformation, and rendering
  • Add services/buildbot/buildbot.tester.js — live and mocked integration tests

Test plan

  • npm run test:core -- --grep Buildbot (15 passing)
  • npm run test:services -- --grep buildbot (3 passing)

Implement badge for issue badges#6837 using the Buildbot REST
API to show the latest build result for a builder.
@github-actions

Copy link
Copy Markdown
Contributor
Warnings
⚠️

This PR modified service code.
Please run tests by including affected services in the pull request title.

Messages
📖 ✨ Thanks for your contribution to Shields, @LuxologyGG!

Generated by 🚫 dangerJS against fb7c2f8

@LuxologyGG LuxologyGG marked this pull request as ready for review June 19, 2026 02:58
Copilot AI review requested due to automatic review settings June 19, 2026 02:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@PyvesB

PyvesB commented Jun 21, 2026

Copy link
Copy Markdown
Member

Hello @LuxologyGG 👋🏻 What are the API rate limits?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

badge request - buildbot

4 participants