Skip to content

fix(ci): build the engine package before the self-host Postgres integration test#5122

Merged
JSONbored merged 1 commit into
mainfrom
fix/selfhost-ci-engine-build-order
Jul 11, 2026
Merged

fix(ci): build the engine package before the self-host Postgres integration test#5122
JSONbored merged 1 commit into
mainfrom
fix/selfhost-ci-engine-build-order

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Scope

  • The PR title follows type(scope): short summary Conventional Commit format.
  • This PR is focused and does not mix unrelated backend, UI, MCP, docs, dependency, and deploy changes.
  • This follows CONTRIBUTING.md and does not reintroduce GitHub Pages, VitePress, site/, or CNAME.
  • Maintainer/own-branch PR — no linked issue; this is a CI-only fix for a regression discovered this session, landed directly.

Validation

  • npm run actionlint — clean.
  • Reproduced the exact CI failure locally: removed packages/gittensory-engine/dist, ran npx vitest run test/integration/selfhost-pg.test.ts, got the identical Failed to resolve entry for package "@jsonbored/gittensory-engine" error at src/review/fix-handoff-render.ts:14:1 / src/mcp/local-write-tools.ts:8:1.
  • Rebuilt via npm run build --workspace @jsonbored/gittensory-engine (the exact command now added to the workflow), re-ran the test: resolves cleanly, 6 tests skip (no PG_TEST_URL locally — expected, matches the test file's own documented local-run instructions).

Safety

  • No secrets, wallet details, hotkeys, coldkeys, user PATs, private keys, raw trust scores, private rankings, or private maintainer evidence are exposed.
  • Public GitHub text stays sanitized, low-noise, and does not imply compensation guarantees or optimization tactics.
  • Auth, cookie, CORS, GitHub App, Cloudflare, or session changes include negative-path tests. (N/A — CI workflow change only.)
  • API/OpenAPI/MCP behavior is updated and tested where needed. (N/A.)
  • No UI change — UI Evidence section not applicable.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs.

…ration test

The Postgres integration test's import graph now reaches
@jsonbored/gittensory-engine transitively (#5117 moved local-write
action specs there; src/mcp/local-write-tools.ts re-exports them from
the engine package). That package's dist/ is gitignored and only
exists after an explicit build step, which this workflow never had --
same #ci-engine-build-order class of bug ci.yml's "Build engine
package" step already exists to prevent, just missed here.

Reproduced locally (removed dist/, confirmed the exact "Failed to
resolve entry for package" error; rebuilt, confirmed it resolves
cleanly) before landing the fix.
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.32%. Comparing base (46d63b9) to head (0417791).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5122   +/-   ##
=======================================
  Coverage   94.32%   94.32%           
=======================================
  Files         471      471           
  Lines       39821    39821           
  Branches    14533    14533           
=======================================
  Hits        37560    37560           
  Misses       1583     1583           
  Partials      678      678           
Flag Coverage Δ
shard-1 46.34% <ø> (ø)
shard-2 34.66% <ø> (ø)
shard-3 32.09% <ø> (ø)
shard-4 32.01% <ø> (ø)
shard-5 33.58% <ø> (ø)
shard-6 44.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gittensory-orb gittensory-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 11, 2026
@gittensory-orb

Copy link
Copy Markdown

Important

🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪

🔍 Gittensory is reviewing…

AI analysis is in progress. This comment will update when the review is complete.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed · 🟪 Reviewing

@JSONbored JSONbored merged commit 40a7c66 into main Jul 11, 2026
19 checks passed
@JSONbored JSONbored deleted the fix/selfhost-ci-engine-build-order branch July 11, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant