Skip to content

fix: replace broken INVOCATION_ID with artifact_suffix input - #34

Closed
tend-agent wants to merge 1 commit into
mainfrom
hourly/review-23494122035
Closed

tend-agent wants to merge 1 commit into
mainfrom
hourly/review-23494122035

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Summary

INVOCATION_ID is not a GitHub Actions environment variable — it's a systemd
concept. The suffix added in #13 was always empty, so both matrix jobs in
review-reviewers still upload artifacts named claude-session-logs, causing a
409 Conflict on the second job. Every hourly run has failed since #13 merged (5+
consecutive failures on 2026-03-24 alone).

This PR:

  • Removes the broken Compute artifact name step and INVOCATION_ID logic
  • Adds an artifact_suffix input to action.yaml (defaults to empty for
    non-matrix workflows)
  • When set, the artifact name becomes claude-session-logs-<suffix>

Remaining workflow change (needs workflow scope)

The review-reviewers.yaml workflow also needs updating to pass the suffix.
This change couldn't be pushed because the bot token lacks the workflow scope.
Apply manually:

--- a/.github/workflows/review-reviewers.yaml
+++ b/.github/workflows/review-reviewers.yaml
@@ -35,6 +35,12 @@ jobs:
           fetch-tags: true
           token: ${{ secrets.BOT_TOKEN }}
 
+      - name: Compute artifact suffix
+        id: suffix
+        shell: bash
+        run: echo "value=${REPO//\//-}" >> "$GITHUB_OUTPUT"
+        env:
+          REPO: ${{ matrix.repo }}
+
       - uses: max-sixty/tend@v1
         with:
           github_token: ${{ secrets.BOT_TOKEN }}
           claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
           bot_name: continuous-bot
+          artifact_suffix: ${{ steps.suffix.outputs.value }}
           prompt: /tend:tend-review-reviewers ${{ matrix.repo }}

This produces artifact names like claude-session-logs-max-sixty-worktrunk and
claude-session-logs-max-sixty-tend, avoiding the collision.

Evidence

Run ID Time (UTC) Conclusion
23491281568 13:13 failure (artifact collision)
23488329082 12:00 failure (artifact collision)
23486322266 11:07 failure (artifact collision)
23483936695 10:07 failure (artifact collision)
23481521089 09:07 failure (artifact collision)

All failures show the same upload-artifact 409 error on the max-sixty/worktrunk
matrix job.

Gate assessment

🤖 Generated with Claude Code

INVOCATION_ID is not a GitHub Actions environment variable, so the
suffix added in #13 was always empty. Matrix jobs still collide on
every review-reviewers run (5+ consecutive failures today).

Add an explicit `artifact_suffix` action input. When provided, the
artifact name becomes `claude-session-logs-<suffix>`. The old
Compute artifact name step and INVOCATION_ID logic are removed.

The review-reviewers workflow also needs updating to pass the suffix
(see PR description for the required change) — that change requires
a token with `workflow` scope.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty max-sixty closed this Mar 25, 2026
@max-sixty
max-sixty deleted the hourly/review-23494122035 branch March 25, 2026 23:57
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.

3 participants