Skip to content

Problem push in process-3 #31

Description

@dianlight

There are errors in action whern running on another sync repost:

https://github.com/dianlight/srat/actions/runs/30986998480/job/92244004913

...
Done. The go-github v90 migration is complete on `renovate/major-90-backend` (commit `dc698b2a`):
  
  - **Imports**: All 11 non-vendor source files updated `v89` → `v90` (incl. the goverter-generated converter).
  - **go.mod/go.sum/vendor**: `go mod tidy` + `go mod vendor` synced go.sum (v90 hashes) and swapped the vendor tree; `go mod verify` passes.
  - **Patches**: Re-applied `hd-idle-check-power-mode` + `gorm-generics` and regenerated Darwin stubs after re-vendoring (goenums.patch is commented out in the task and was skipped).
  - **Verification**: `go build ./...` clean, `gofmt` clean, full `go test ./...` suite passes. No call-site changes were needed — this repo only uses Gists, releases, and client-setup APIs, which weren't affected by v90's breaking renames.
  
  Reply posted to the review thread on `backend/src/go.mod:30`.
  
  [08:04:56.052] INFO (#16704): tracking {
    hash: "e8c4d2caef2e6e76acb3f21c1d7e29f0797f1370",
    cwd: "/home/runner/work/srat/srat",
    git: "/home/runner/.local/share/opencode/snapshot/b8cab8da09f72eaeef8e46904c6d2bb008d25ec9/f3b7934283a37f2d74d79e9507979f0bd80980f9",
  }
  [08:04:56.087] INFO (#16704): loop {
    "session.id": "ses_02f124b9bffejRo3O6roBG0Q8A",
    step: 55,
  }
  [08:04:56.123] INFO (#16704): exiting loop {
    "session.id": "ses_02f124b9bffejRo3O6roBG0Q8A",
  }
  Checking if branch is dirty...
  Sending message to opencode...
  [08:04:56.371] INFO (#43414): loop {
    "session.id": "ses_02f124b9bffejRo3O6roBG0Q8A",
    step: 0,
  }
  [08:04:56.940] INFO (#43414): tracking {
    hash: "e8c4d2caef2e6e76acb3f21c1d7e29f0797f1370",
    cwd: "/home/runner/work/srat/srat",
    git: "/home/runner/.local/share/opencode/snapshot/b8cab8da09f72eaeef8e46904c6d2bb008d25ec9/f3b7934283a37f2d74d79e9507979f0bd80980f9",
  }
  [08:04:57.574] INFO (#43414): process {
    "session.id": "ses_02f124b9bffejRo3O6roBG0Q8A",
    messageID: "msg_fd0f441d9001o98QCmsoPv8lpU",
  }
  [08:04:57.574] INFO (#43414): stream {
    providerID: "opencode",
    modelID: "deepseek-v4-flash-free",
    "session.id": "ses_02f124b9bffejRo3O6roBG0Q8A",
    small: "false",
    agent: "build",
    mode: "primary",
  }
  [08:04:57.577] INFO (#43414): llm runtime selected {
    "llm.runtime": "ai-sdk",
    "llm.provider": "opencode",
    "llm.model": "deepseek-v4-flash-free",
  }
  go-github v90 migration complete.
  
  [08:05:01.451] INFO (#43414): tracking {
    hash: "e8c4d2caef2e6e76acb3f21c1d7e29f0797f1370",
    cwd: "/home/runner/work/srat/srat",
    git: "/home/runner/.local/share/opencode/snapshot/b8cab8da09f72eaeef8e46904c6d2bb008d25ec9/f3b7934283a37f2d74d79e9507979f0bd80980f9",
  }
  [08:05:01.492] INFO (#43414): loop {
    "session.id": "ses_02f124b9bffejRo3O6roBG0Q8A",
    step: 1,
  }
  [08:05:01.532] INFO (#43414): exiting loop {
    "session.id": "ses_02f124b9bffejRo3O6roBG0Q8A",
  }
  Pushing to local branch...
  Command failed with code 128: git push
  fatal: could not read Username for '/': No such device or address
  Creating comment...
  Removing reaction...
  Error: fatal: could not read Username for '/': No such device or address
  
  Error: Process completed with exit code 1.

Activity

  1. dianlight commented on Aug 5, 2026

    @dianlight
    OwnerAuthor

    /ocf

  2. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    ❌ Opencode review failed — View run details

    Possible causes: timeout, temporary service issue, or insufficient credits.

    Reply with /oc retry or /ocf retry to re-run this operation.

  3. dianlight commented on Aug 5, 2026

    @dianlight
    OwnerAuthor

    /oc

  4. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    ❌ Opencode review failed — View run details

    Possible causes: timeout, temporary service issue, or insufficient credits.

    Reply with /oc retry or /ocf retry to re-run this operation.

  5. dianlight commented on Aug 6, 2026

    @dianlight
    OwnerAuthor

    Fixed by commit dc3d369 (:bug: fic process-3), merged to main.

    Root cause: with use_github_token: true the OpenCode CLI skips its own git credential configuration, so the git push it performs at the end of a run relies entirely on the credentials persisted by actions/checkout. The process-3 job checked out with persist-credentials: false, leaving no git credentials on the runner → the non-interactive git push failed with fatal: could not read Username for 'https://github.com'. Pushing also requires contents: write on the token, which process-3 only granted as read.

    Fix (.github/workflows/opencode-pr-comment.yml):

    • process-3: persist checkout credentials (removed persist-credentials: false), added a Configure git identity step, and granted contents: write.
    • process-6: granted contents: write for its push path (same root cause).

    The change propagates to the downstream repos (srat, smartmontools-sdk, hasos_more_modules, hassio-addons) via the workflow sync on their next run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions