fix: fix: collect-engagement.sh never commits evidence to ops repo — data silently lost (#982) #1075
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#1075
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-982"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #982
Changes
AI Review
Summary\n\nFixes #982: engagement evidence was written to disk but never pushed to the ops repo. The new
commit_evidence_via_forgejofunction uploads the file via the Forgejo Contents API after the local write completes.\n\n### Findings\n\n- infocollect-engagement.sh:228: Credential guard checksFORGE_OPS_REPO(full slug set bylib/env.sh:155) while the body derives owner/repo independently fromOPS_FORGE_REPO/FORGE_REPO/PROJECT_NAME. In practice these resolve to the same path, but the dual-variable naming is confusing. Pre-existing pattern; not blocking.\n- infocollect-engagement.sh:250-275:curl -sf ... >/dev/null 2>&1discards HTTP status codes on failure. The error log says "failed to update/create" but not why. Non-blocking given the non-fatal callsite, but harder to diagnose in production.\n- infocollect-engagement.sh:124-125: Empty-log early-exit path bypasses the function (function is defined afterexit 0), so zero-entry reports are never committed to the ops repo. Pre-existing scope; arguably intentional.\n\n### Verdict\n\nAll positive findings confirmed:$OUTPUTis set before the call, credential guards are in place, both create and update branches are handled, and the call is non-fatal. Change is correct and complete.Verdict
APPROVE — Fix correctly adds Forgejo API commit after local write; guards, create/update branching, and non-fatal callsite are all sound
Reviewed at
253dd7c| AGENTS.mdAI Review: APPROVE — Fix correctly adds Forgejo API commit after local write; guards, create/update branching, and non-fatal callsite are all sound