Repository navigation
Bound the fi message and say what each run changed - #24
Merged
chris-peterson merged 1 commit intoOct 25, 2026
Merged
Conversation
Under CI, each rebuild embedded the whole previous fi message after "Was originally: ---" and appended a new signature, so every message carried every earlier one. After a few weeks of rebuilds the subject was a long chain of builds and the body a stack of identical signatures. The Ruby gem this was ported from quoted only the last commit a person made: it split the previous message on its first "---", dropping the old robot preamble. It needed that quote because its CI commits had no signature of their own, and its reader scanned the whole message for 'origin/...' names. The port read the previous message whole, so the quote nested on every rebuild. Every fi message is now an optional CI pipeline line, a line naming the branches the run added and removed (left out when neither), and the signature (MERGE-13, STORAGE-05). Its size depends only on the operation. The change line names branches bare, so a reader that scans the whole message for 'origin/...' can't take a removed branch as still in fi; quoting the previous signature would have left exactly that stale list behind. One builder, buildSignature, writes the signature in either format. parseBranchList still reads only the final paragraph, so an existing bloated fi parses correctly and returns to the short form on its next re-merge. The signature format is unchanged; the switch to terse stays with #3.
chris-peterson
force-pushed
the
keep-the-ci-commit-message-from-growing-on-fi
branch
from
October 25, 2026 19:34
e7cb0a0 to
915a1b5
Compare
chris-peterson
marked this pull request as ready for review
October 25, 2026 19:42
chris-peterson
deleted the
keep-the-ci-commit-message-from-growing-on-fi
branch
October 25, 2026 21:58
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.
Context
git-fi keeps
fi's branch list in theficommit message. Under CI, each rebuild quoted the whole previous message after "Was originally: ---", so the message grew by one rebuild every time. Two CI rebuilds into a real repo'sfi(branch names and build numbers anonymized):Every
fimessage is now at most three paragraphs: the CI build line (CI only), a line naming what the run added and removed (left out when neither), and the signature, which stays last and is the only partparseBranchListreads. Nothing carries over from the previous message, so a message no longer says howfigot here, only what this run did. Existing bloatedficommits still parse and shrink on their next rebuild. The signature format is unchanged; switching to terse stays with #3.What each catalyst writes, from this branch's build against a throwaway repo:
git fi -a feature-dgit fi -r feature-bgit fi -f feature-a feature-egit fi -g, nothing to prunegit fi -gin CI, afterfeature-clanded onmainReview guide
Core
src/merge.tsthe change line. Names are bare so a reader that scans the whole message for'origin/…'(the Ruby gem's did) can't read a removed branch backsrc/merge.tsthe prior list comes fromorigin/fias fetched, so--remove,--force, and pruning all show up as removalsSPEC.mdnewSTORAGE-05;MERGE-13now covers only the build lineTests
test/fi-message.test.tsdrives the built binary: six CI rebuilds at constant size, a 50-rebuild bloated message, removal, and the message written outside CISkim
src/git.tscomment onlydocs/ci-integration.mdanddocs/merge-process.mdexamplesValidation
fi:git fi -gwith this branch's build, run locally on an internal service repo. Observed: the message went from two stacked CI preambles and three copies of the signature to the signature alone