From de8ac371bc028f4a5583c5cbbffcc03001a58c82 Mon Sep 17 00:00:00 2001 From: Ben Birt Date: Sun, 29 Nov 2026 22:03:18 +0000 Subject: [PATCH] Require test on every Bazel repository A Jsonnet default gives every Bazel repository build: bazel and the required check test, the job that runs the shared bazel-ci action. benbirt.io and eavesbard (build) and github-infra (lint) switch to it; rules_tofu keeps its own checks. Co-Authored-By: Claude Opus 5.5 --- repos.jsonnet | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/repos.jsonnet b/repos.jsonnet index c77a78e..f946ae2 100644 --- a/repos.jsonnet +++ b/repos.jsonnet @@ -9,36 +9,32 @@ local fork = 'Fork kept for upstream pull requests.'; +// Defaults for Bazel repositories. Most run the shared bazel-ci action in a +// `test` job; entries with their own CI override `required_checks`. +local bazel = { build: 'bazel', required_checks: ['test'] }; + { managed: { - 'bazel-style': { + 'bazel-style': bazel { description: "Shared formatting and lint configuration for benbirt's Bazel repositories", - build: 'bazel', - required_checks: ['test'], dependabot: ['npm', 'pip', 'github-actions'], }, - 'benbirt.io': { + 'benbirt.io': bazel { description: 'Source of benbirt.io, my personal site', - build: 'bazel', - required_checks: ['build'], dependabot: ['npm', 'opentofu', 'github-actions'], pages: { target: '//site:public', domain: 'benbirt.io' }, tofu: ['//infra:infra'], }, - eavesbard: { - build: 'bazel', - required_checks: ['build'], + eavesbard: bazel { dependabot: ['npm', 'opentofu', 'github-actions'], pages: { target: '//src:site', domain: 'eavesbard.com' }, tofu: ['//dns:dns', '//posthog:posthog'], }, - 'flip7-scorecard': { + 'flip7-scorecard': bazel { description: 'A scorecard for the card game Flip 7, with With a Vengeance negative scores', - build: 'bazel', - required_checks: ['test'], dependabot: ['github-actions'], pages: { target: '//:public', domain: 'flip7.benbirt.io' }, }, @@ -56,7 +52,7 @@ local fork = 'Fork kept for upstream pull requests.'; direct_pushes: true, }, - 'github-infra': { + 'github-infra': bazel { // The Settings workflow does not plan Dependabot pull requests so // ADMIN_TOKEN never reaches them; an auto-merged provider update would // apply without a plan. Stays manual until issue #21 gives them a @@ -64,8 +60,6 @@ local fork = 'Fork kept for upstream pull requests.'; // wait for a person. auto_merge: false, description: 'Shared configuration for the benbirt GitHub account: the repository list, managed repository settings and reusable GitHub Actions workflows.', - build: 'bazel', - required_checks: ['lint'], dependabot: ['github-actions', 'pip', 'opentofu'], tofu: ['//github:github'], }, @@ -77,16 +71,14 @@ local fork = 'Fork kept for upstream pull requests.'; dependabot: ['github-actions'], }, - posthog: { + posthog: bazel { description: 'Common utilities for managing PostHog resources', - build: 'bazel', - required_checks: ['test'], dependabot: ['npm', 'opentofu', 'github-actions'], }, - rules_tofu: { + rules_tofu: bazel { description: 'Bazel rules for OpenTofu and Terraform configs', - build: 'bazel', + // Keeps its own CI: bazel-ci does not cover its OS/Bazel matrix or lint. required_checks: [ 'lint', 'build-and-test (ubuntu-latest, pinned)', @@ -117,10 +109,8 @@ local fork = 'Fork kept for upstream pull requests.'; dependabot: ['github-actions', 'gomod'], }, - 'tlog-viewer': { + 'tlog-viewer': bazel { description: 'A static viewer for transparency logs that verifies what it shows, in the browser. Currently covers the PAIC tlog-tiles logs.', - build: 'bazel', - required_checks: ['test'], dependabot: ['npm', 'gomod', 'opentofu', 'github-actions'], pages: { target: '//:site', domain: 'tlog.benbirt.io' }, tofu: ['//posthog:posthog'],