GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci(flake-inputs-update): failure excerpt truncates the tail from the head (head -c 5000 after tail -n 80) — the actual error never reaches the tracking issue · Issue #917 · developing-today/code

ci(flake-inputs-update): failure excerpt truncates the tail from the head (head -c 5000 after tail -n 80) — the actual error never reaches the tracking issue #917

New issue
Copy link
New issue
Copy link
Closed
#918
Closed
ci(flake-inputs-update): failure excerpt truncates the tail from the head (head -c 5000 after tail -n 80) — the actual error never reaches the tracking issue#917
#918
Copy link
Assignees
dezren39
Labels
area/ciCI/CD pipelines, workflows, and build automation (area)effort/xsTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:done

Description

@dezren39
dezren39
opened on Oct 25, 2026
Issue body actions

Problem

The flake-inputs-update workflow's failure-issue excerpt truncates the tail of the log from the head, so on any realistically long failure the excerpt contains none of the actual error.

.github/workflows/flake-inputs-update.yml:169 (on main c4b29e12):

grep -v "copying path" "${ERROR_LOG}" | tail -n 80 | sed 's/~~~/---/g' | head -c 5000 > "$RUNNER_TEMP/excerpt.txt" || true

tail -n 80 correctly selects the last 80 lines — where the error lives — but head -c 5000 then keeps only the first 5000 bytes of that selection. When the last 80 lines exceed 5000 bytes (normal for nix build output, ~100+ bytes/line), the excerpt ends mid-line partway through the tail and the final error line never reaches the tracking issue. The issue comment at :166-167 says the excerpt is meant to be the "last lines of the failing step's log … capped" — the cap is applied at the wrong end.

Verified this run (synthetic probe, exact pipeline from :169)

Synthetic log: 100 copying path noise lines, then 80 build lines of ~109 chars each, then a final error: builder for … failed with exit code 1 line (18,632 bytes total).

  • Excerpt produced: exactly 5000 bytes, ending mid-line inside "building step output line 042".
  • grep -c "error: builder" excerpt.txt → 0 — the actual error is absent from what would be posted to the failure issue.

Why it matters

This workflow's tracking issue is the primary diagnostic surface for failed automated openchamber/opencode input updates (the same mechanism #913 covers for the issue-lookup cap). A failure excerpt that reliably omits the error forces every diagnosis back to the raw run log and makes the maintained issue history misleading.

Precedent

The identical pattern in developing-today/openchamber's opencode-update workflow was filed as openchamber #450 and fixed by PR #451 (merged): cap the excerpt from the tail end instead of the head.

Acceptance criteria

  • The excerpt pipeline keeps the last ≤5000 bytes of the filtered tail (e.g. … | tail -c 5000), so the excerpt always ends with the log's final line when the log is longer than the cap.
  • Logs whose filtered tail is ≤5000 bytes produce a byte-identical excerpt to today (no behavior change for short failures).
  • The excerpt still strips copying path lines and still neutralizes ~~~ fences (sed 's/~~~/---/g' or equivalent) before the byte cap, or the ordering is documented if changed.
  • Workflow YAML still parses and the failure-issue step is otherwise unchanged.

Suggested fix

One-word change at :169: head -c 5000 → tail -c 5000.

Filed by new-issue-creator (standalone run, 2026-10-25). Single-repo: grep -rn "head -c" .github/workflows/ across developing-today/opencode, developing-today/openchamber and dezren39/nix returns no other instance; openchamber's instance is already fixed (#450/#451).

Activity

  1. developing-today commented on Oct 25, 2026

    @developing-today
    developing-todayBot
    on Oct 25, 2026 – with developing.today
    Contributor
    More actions

    CODE-154

  2. github-actions
    assigned
    dezren39
    on Oct 25, 2026
  3. developing-today
    added
    status:in-review
    on Oct 25, 2026
  4. dezren39
    added
    kind/ciCI/CD pipelines, workflows, and build automation
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    effort/xsTrivial: expected under 30 minutes of work
    area/ciCI/CD pipelines, workflows, and build automation (area)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 26, 2026
  5. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    Intake review

    Still live, fix already in flight: PR #918 (cap the excerpt from the tail) is OPEN with Fixes #917; the one-word fix (head -c 5000 → tail -c 5000 at flake-inputs-update.yml:169) is verified by the synthetic ablation in the issue body. This issue closes when #918 merges — no duplicate work should start.

    Related: #913 (the other defect in the same workflow's failure-issue machinery, found in PR #907), openchamber #451 (the identical excerpt bug, already fixed there — the precedent).

    Notes / risks: none beyond CI on #918; the excerpt is the primary diagnostic surface for this workflow, so until #918 lands, failure comments on the tracking issue will keep omitting the actual error.

    Suggested approach: shepherd PR #918 to green and merge; nothing else needed here.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-10-25 19:19 CDT
    • Found via: monitor reconciliation
    • Task: intake enrichment (§5 pass) for this issue
    • Expectation: labels + this review; no code change by the monitor
    • Links: PR ci(flake-inputs-update): cap failure excerpt from the tail, not the head #918, ci(flake-inputs-update): failure-issue lookup caps at the 100 newest open issues — this repo already has 143 open, so the one tracking issue will be missed, duplicated, and never closed #913
  6. dezren39
    closed this as completedin #918on Oct 26, 2026
  7. developing-today
    added
    status:done
    and removed
    status:in-review
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

area/ciCI/CD pipelines, workflows, and build automation (area)effort/xsTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.