Skip to content

[ci] Restore PR-only formula gate, document why - #2

Merged
drycode merged 1 commit into
mainfrom
dy/formula-changes-via-pr
Jul 23, 2026
Merged

[ci] Restore PR-only formula gate, document why#2
drycode merged 1 commit into
mainfrom
dy/formula-changes-via-pr

Conversation

@drycode

@drycode drycode commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Reverts the premise of bdba9eb.

brew test-bot selects which formulae to build by diffing HEAD against origin/main. On a push to main those are the same commit, so the diff is empty and --only-formulae reports green having tested (none). Observed on two consecutive pushes — including ed3ad14, which did change Formula/tailctl.rb.

So running it on push cannot work, and the tap-new template's if: github.event_name == 'pull_request' guard was right. Restored, with a comment explaining why it isn't an oversight.

Added to the README: formula changes land via PR, plus the manual bump checklist (livecheck → update url/sha256 → install --build-from-sourcetestaudit --strict --online).

This PR is its own test. It doesn't touch a formula, so testing_formulae should again be (none) — the first PR that changes tailctl.rb is what will finally exercise the gate end to end.

Reverts the previous commit's premise. test-bot selects formulae by
diffing HEAD against origin/main, so on a push to main the diff is empty
and --only-formulae reports green having tested (none) — verified on two
consecutive pushes, including one that changed tailctl.rb.

Running it on push therefore cannot work. The gate has to be a PR, so
document that formula changes land by PR and record the bump checklist.

Solves: a formula gate that silently tested nothing
Tests: this PR is itself the check — it should build and test tailctl
@drycode
drycode merged commit d6c45e9 into main Jul 23, 2026
3 checks passed
@drycode
drycode deleted the dy/formula-changes-via-pr branch July 23, 2026 16:38
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.

1 participant