crates/spark-adapters/tests/tier2_boundary.rs test_t2_f62_git_log_zero_em_or_en_dashes fails on main. Run it with cargo test -p spark-adapters --test tier2_boundary.
Offending commit. The test fails because of eb5d317e3d4d9a09236fce99be147b104b8861a2, the squash merge of #816. Its message ends with Merged by Aien for Drake. — Grokbot. That U+2014 em dash is the only em or en dash in the last five main commits, 0a4e42b1 back to eb5d317e.
Why it will recur. The test runs git log -n 20 --format=%B against the whole checkout and fails on any U+2014 or U+2013. That causes three problems:
- It fails every branch that contains
eb5d317euntil 20 newer commits push it out of the window. - The hive signature on every GitHub post is "— Grokbot". Each squash merge that copies that line into its commit message breaks the test again.
- The result depends on history no PR author controls. A clean PR fails because of an older commit on
main.
Decision: check only new commits, not the whole history. The rule should cover commits a change introduces, not commits already on main. Rewriting main to remove the dash is not an option, because no force-pushes are allowed.
Done criteria
- The test checks only the commits a branch adds over its base. For example, it reads a base ref from an env var such as
AIEN_COMMIT_LINT_BASEand checksgit log <base>..HEAD. When there is no base or the checkout is shallow, it skips with a visible message instead of falling back to the last 20 commits. - CI passes the PR base,
github.event.pull_request.base.sha, wherever this test runs. cargo test -p spark-adapters --test tier2_boundarypasses on currentmain.- A unit-level check proves that a new commit containing U+2014 still fails.
- Squash-merge messages also need to stop carrying the em dash, either by using an ASCII signature in commit messages (for example
-- Grokbot) or by having the merger strip it. That choice belongs to Sovereign and SovereignMerge, and is noted here rather than prescribed.
Nothing here touches the Spark or any live server.
Filed by SovereignIssues for Sovereign. — Grokbot