Skip to content

test(integration): correct the stale workflow-file count and misplaced section header - #1255

Merged
max-sixty merged 1 commit into
mainfrom
fix/test-integration-stale-docs
Sep 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/test-integration-stale-docs

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Three inaccuracies in test_integration.py found by the nightly survey. No behavior change; the suite passes before and after.

  • test_init_creates_correct_files_with_valid_yaml's docstring says "7 workflow files". The assertion directly below it has listed 8 since tend-mention-relay.yaml was added.
  • The same docstring says it checks the top-level keys "name, on, jobs", but the loop only asserted name and jobs. Rather than trim the claim, assert on — a generated file that lost its trigger block is worth catching, and the loop already has the parsed document in hand.
  • test_init_bot_name_in_workflow_content sits at the end of the file, so its # Bot name flows into workflow content header stands over the --with-install-test tests instead. Moved the test back under its own header; the diff is a pure relocation.

…ame section

The end-to-end docstring still said 7 workflow files; the assertion below it
has listed 8 since tend-mention-relay was added. It also claimed to check the
top-level `on` key, which the body never asserted — add it.

test_init_bot_name_in_workflow_content had drifted to the end of the file,
leaving its section header sitting over the install-test tests. Move it back
under its own header.
@max-sixty
max-sixty merged commit 0148745 into main Sep 16, 2026
11 checks passed
@max-sixty
max-sixty deleted the fix/test-integration-stale-docs branch September 16, 2026 06:55
max-sixty pushed a commit to max-sixty/leaf that referenced this pull request Sep 17, 2026
Regenerates the tend workflows from 0.2.8 to 0.2.9 and moves the
`max-sixty/tend/claude`
action pin with them.

The change adopters will notice is the forced-colour fix in the
preflight readers
(max-sixty/tend#1254). `tend-mention` and `tend-notifications` each
embed a small Python
`gh` wrapper whose `--json` output is parsed before the agent boots.
`gh` colourizes a
piped JSON response when the job environment forces colour, and those
ANSI codes landed
inside the body the wrapper hands to `json.loads`, failing the preflight
and stranding the
trigger. Both wrappers now run `gh` with `NO_COLOR=1` and
`CLICOLOR_FORCE=0`; the second is
what actually defeats it, since `gh` ranks a forced value above
`NO_COLOR`.

The bundled skills carry one behaviour change with it: the bot now
reviews its own change
before the push that opens or fixes a PR (max-sixty/tend#1259), so a PR
it opens should
arrive having had a pass over its own diff.

`tend-mention-relay` gains comment-only text recording why the relay job
carries no
`TEND_ENABLED` check — it boots no agent, and a paused repo stops at
`tend-mention`'s
`verify` regardless. No behaviour change there.

Support: <max-sixty/tend@0.2.8...0.2.9>

<details><summary>Upstream commits in this range</summary>

The remaining entries are tend-internal and produce no adopter-visible
effect: the
references-index rule and its scoping (max-sixty/tend#1253), an
integration-test count
correction (max-sixty/tend#1255), and release mechanics
(max-sixty/tend#1251, max-sixty/tend#1260).

</details>

Co-authored-by: leaf-agent <[email protected]>
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.

2 participants