Activity feed: gate titles and UTC label
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 2s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: sonnet
Assistant-Process: 295952@bnt-lap001
Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
This commit is contained in:
tegwick 2026-09-29 15:52:56 +02:00
parent b75d159ddd
commit a6ee6a0a6e
4 changed files with 27 additions and 4 deletions

View file

@ -41,6 +41,16 @@ def test_latest_activities_are_newest_first_across_packs_and_cover_the_main_even
assert len(activity.latest([v1, v2], 3)) == 3
def test_gate_events_use_the_gate_title(tmp_path):
(v2,) = repo_with(tmp_path, "two2")
q = run2.create(v2, "cy", {"logdir": "/tmp/rtut-act-z"})
for sid in ("read-the-sign", "light-lamp", "read-the-sky"):
run2.start(q, sid); run2.verify(q, sid, confirm=True, manual_ok=True); run2.complete(q, sid)
run2.gate_check(q, "lamp-check", 0, manual_ok=True); run2.gate_check(q, "lamp-check", 1)
text = " | ".join(e["text"] for e in activity.latest([v2], 30))
assert "gate “The lamp burns steadily” passed" in text and "lamp-check" not in text
def test_overrides_and_changed_values_are_visible_in_the_feed(tmp_path):
(v2,) = repo_with(tmp_path, "two2")
q = run2.create(v2, "cy", {"logdir": "/tmp/rtut-act-y"})

View file

@ -146,7 +146,7 @@ def test_main_page_lists_latest_activities_newest_first_with_links(srv):
feed = body.split("Latest activities")[1].split("<h2>Runbooks</h2>")[0]
assert "<b>erin</b> started a run (manual mode)" in feed and "finished step “Light the lamp”" in feed
assert feed.index("Light the lamp") < feed.index("Read the poem over the door") < feed.index("started a run") # newest first
assert f"<a href='{base}'>open</a>" in feed
assert f"<a href='{base}'>open</a>" in feed and "(times in UTC)" in body
# ---- (d) changing values that steps already used --------------------------------------------------------------------------