{"id":31807852,"url":"https://github.com/mariadb/failman","last_synced_at":"2026-04-18T00:31:59.055Z","repository":{"id":318463461,"uuid":"1071352812","full_name":"MariaDB/failman","owner":"MariaDB","description":"Buildbot failed builds reporter","archived":false,"fork":false,"pushed_at":"2025-10-07T09:39:42.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T11:39:47.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MariaDB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-07T08:27:44.000Z","updated_at":"2025-10-07T09:39:45.000Z","dependencies_parsed_at":"2025-10-09T05:45:46.199Z","dependency_job_id":null,"html_url":"https://github.com/MariaDB/failman","commit_stats":null,"previous_names":["mariadb/failman"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MariaDB/failman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDB%2Ffailman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDB%2Ffailman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDB%2Ffailman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDB%2Ffailman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MariaDB","download_url":"https://codeload.github.com/MariaDB/failman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDB%2Ffailman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006245,"owners_count":26084061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-11T04:38:21.621Z","updated_at":"2025-10-11T04:38:27.267Z","avatar_url":"https://github.com/MariaDB.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buildbot Failed Builds Reporter\n\nThis script collects the latest failed builds from a [Buildbot](https://buildbot.net/) instance, generates both an **HTML report** and a **CSV file**, and sends them via email using an SMTP relay (IP-based authentication).\n\n## Features\n\n- ✅ Fetches builders and latest builds per branch from the Buildbot API\n- ✅ Filters builds by branch and builder names. See Config.\n- ✅ Identifies **failed builds**\n- ✅ Generates:\n  - HTML tables grouped by branch\n  - A CSV report with details for each failed build\n- ✅ Sends an email with both the HTML report (inline) and the CSV as an attachment\n- ✅ SMTP relay connection with **IP-based authentication** (no login required)\n\n## Requirements\n\n- Buildbot REST API (v2) accessible\n- SMTP relay server accessible from the host machine\n- [Google Workspace SMTP relay](https://support.google.com/a/answer/176600?hl=en) or similar\n\n## Config\n\n- the configuration file can be either a local file or a URL. To use an URL set `CONFIG_URL` in the `.env` file\n- `branches` list for making calls to buildbot `/changes` api and retrieve the latest builds per branch\n- `builder_filter` empty to get results for all builders from the `/builders` API\n\n\n## How to run\n\nSet according to your setup:\n```\nSENDER=#SENDER_EMAIL#\nRECIPIENT_EMAIL=#RECEIVER_EMAIL#\nSMTP_RELAY_SERVER=smtp-relay.gmail.com\nSMTP_RELAY_PORT=465\nBASE_BUILDBOT_URL=#BUILDBOT BASE URL#\n```\n\n```bash\npip install -r requirements.txt\npython3 failman.py\n```\n\nOr in `Docker` as a scheduled event. Set the desired schedule in `crontab`\n```\ndocker build -t failman .\ndocker run -d --name failman failman\n```\n\nThe repository default `config.yaml` is present in the image and used when no\n`CONFIG_URL` is set in the `.env` file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariadb%2Ffailman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariadb%2Ffailman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariadb%2Ffailman/lists"}