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: models-snapshot workflow never runs on this fork — gated to upstream, targets nonexistent dev branch, bundled catalog already stale · Issue #109 · developing-today-forks/opencode

CI: models-snapshot workflow never runs on this fork — gated to upstream, targets nonexistent dev branch, bundled catalog already stale #109

New issue
Copy link
New issue
Copy link
Closed
#252
Closed
CI: models-snapshot workflow never runs on this fork — gated to upstream, targets nonexistent dev branch, bundled catalog already stale#109
#252
Copy link

Description

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

Summary

The models-snapshot workflow — the only mechanism that refreshes the bundled models.dev catalog snapshot (packages/core/src/models-dev/snapshot.txt, the boot-time floor for the model catalog) — has never run on this fork. Every scheduled run is skipped, and even if it weren't, the workflow targets a branch that does not exist here. The bundled snapshot is already measurably stale.

Evidence (all on main 4e948420ce, checked 2026-10-19)

The workflow is gated to upstream and aimed at a nonexistent branch:

  • .github/workflows/models-snapshot.yml:22 — job condition: if: github.repository == 'anomalyco/opencode'. This repo is developing-today/opencode, so the job is skipped on every run.
  • .github/workflows/models-snapshot.yml:14 — it is scheduled twice daily (cron: "0 0,12 * * *"), so it produces a skipped run every 12 hours.
  • .github/workflows/models-snapshot.yml:31 — checkout uses ref: dev; .github/workflows/models-snapshot.yml:64-65 — the commit step runs git pull --rebase --autostash origin dev and git push origin HEAD:dev. There is no dev branch on this fork (GitHub API: GET /repos/developing-today/opencode/branches/dev → 404; the default branch is main), so removing the gate alone would fail at checkout.

Run history confirms it never executes:

  • gh run list --workflow models-snapshot.yml — every run is completed/skipped, including the most recent scheduled runs 39199148665 (2026-10-19T04:22Z), 39141892764 (2026-10-18), 39096346980 (2026-10-18), back through 2026-10-09.

The snapshot is the code's offline floor, and it is already behind:

  • packages/core/src/models-dev.ts (comment at the bundled snapshot, ~line 283) — the snapshot is "the boot-time floor for the catalog when no cache entry exists and fetching is disabled or unavailable", refreshed via packages/core/script/update-models-snapshot.ts (also packages/core/package.json:25).
  • Repo-wide search: .github/workflows/models-snapshot.yml is the only automated refresh path; nothing else runs the script.
  • Measured today: the bundled snapshot parses to 230 providers / 5,679,551 bytes; live https://models.opencode.ai/api.json parses to 232 providers / 5,810,832 bytes. Providers commandcode and reflection are live but missing from the bundled floor, so an offline/first-boot user on this fork never sees them.

One more blocker for the push step:

  • .github/workflows/models-snapshot.yml:40 uses ./.github/actions/setup-git-committer, which requires the OPENCODE_APP_ID / OPENCODE_APP_PRIVATE_KEY vars to mint an app token. gh variable list for this repo returns nothing — the same unconfigured fork app credentials already noted as blocking in CI: replace nix-eval and nix-hashes with a check that can actually complete #49. A fix must either configure those vars or push with a credential this fork actually has (the workflow already declares top-level permissions: contents: write, so the default GITHUB_TOKEN is a candidate — noting that commits pushed with it do not trigger further workflows).

Why it matters

The snapshot is not cosmetic: it is what the catalog falls back to when fetching is disabled or unavailable, and what a first boot decodes before any refresh. On this fork it can only drift further behind models.dev — new providers and models silently absent for offline users — while the twice-daily skipped runs make the workflow look alive in the Actions list.

Acceptance criteria

  1. The workflow actually executes on this fork on its schedule (a scheduled run completes with the refresh job run, not skipped), targeting the fork's real default branch (main): checkout ref, rebase target, and push target all name a branch that exists.
  2. The push credential is one configured for this fork (app vars configured, or the workflow switched to a credential it already has, with the tradeoff recorded in the PR).
  3. After one successful run (or a manual workflow_dispatch), packages/core/src/models-dev/snapshot.txt matches the live catalog's provider set (today: includes commandcode and reflection), and the refresh script's ≥100-provider guard still protects the commit.
  4. Deliberately-gated upstream workflows (deploy/publish/stats) are out of scope — this issue is only about the snapshot refresh, whose output is an artifact this fork's own code consumes.

Filed by the new-issue-creator job; left filed-only because the push-credential choice (configure the fork's GitHub App vars vs switch to GITHUB_TOKEN) is a maintainer decision.

Activity

  1. dezren39 commented on Oct 21, 2026

    @dezren39
    dezren39
    on Oct 21, 2026
    Author
    More actions

    Decision for the fix (following this fork's established precedents):

    Run the refresh on this fork, with the #189 credential fallback.

    • Why not keep it upstream-gated: unlike the release/publish workflows (CI: release-github-action never runs on this fork — push trigger targets nonexistent dev branch, so no github-v* tags are ever cut and publish-github-action starves #197, deliberate-only), this workflow's output is a data artifact this fork's own code consumes at boot (packages/core/src/models-dev/snapshot.txt is the offline floor). Gating it to upstream means the fork's floor can only drift further behind — measured today: bundled snapshot has 230 providers and lacks commandcode and reflection; the live catalog has 232 including both.
    • Credential choice: prefer the GitHub App token when vars.OPENCODE_APP_ID is configured, and fall back to the default GITHUB_TOKEN (the workflow already declares contents: write) when it is not — exactly the pattern merged for the identical setup-git-committer blocker in nix-hashes.yml (fix(nix): update stale node_modules hashes and fix the nix-hashes updater #189 / PR fix(nix): update stale node_modules hashes and fix the nix-hashes updater #189). This fork currently has no vars and no secrets at all (verified today), so the fallback is the path that will actually run. Tradeoff, recorded per the acceptance criteria: commits pushed with GITHUB_TOKEN do not trigger downstream workflows, which a snapshot.txt-only commit does not need.
    • Branch: checkout, rebase and push targets move from the nonexistent dev to main (verified: dev branch API 404, default branch is main).
    • The refresh script's >=100-provider guard is untouched.
  2. dezren39
    closed this as completedin #252on Oct 21, 2026
  3. dezren39 commented on Oct 21, 2026

    @dezren39
    dezren39
    on Oct 21, 2026
    Author
    More actions

    Fixed by PR #252 (squash 9248c10) and verified end-to-end after merge:

    • Dispatched models-snapshot manually on the merged main: run 39693521579 completed success (not skipped — the upstream-only gate is gone).
    • Step outcomes confirm the credential path taken on this fork: Setup git committer (app token) skipped because vars.OPENCODE_APP_ID is unset; Setup git committer (fallback token) success; Refresh snapshot and Commit changes success.
    • The run pushed commit 7287e50 (chore(core): refresh bundled models.dev snapshot) to main itself.
    • Snapshot on merged main now parses to 232 providers and includes both commandcode and reflection (pre-fix: 230, both missing). The refresh script's >=100-provider guard is untouched.

    All four acceptance criteria are now satisfied live, including criterion 3. The twice-daily schedule will exercise the same path from here on.

  4. dezren39
    added a commit that references this issue on Oct 22, 2026

    docs(roadmap): record #41 closure and #109 completion in Done (#259) (#…

    462c016
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

    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.