gsxdsm
|
478f226a54
|
test: green full-suite CI after main drift (#2229)
## Summary
Restores green **Full Suite (non-blocking)** runs on `main`. Recent main
merges left i18n key parity, schema baseline bookkeeping (0011→0012),
heartbeat tool inventory (FN-8058 `fn_task_logs_read`), and merger
whitespace-classification mocks (execFile `git diff -p -w :2: :3:`) out
of date, so all four test shards failed.
## Root causes observed on main
- **Shard 4 / `@fusion/i18n`**: missing `skipConfirmationDialogs*` +
`reviewBudgetExhausted` in non-en locales; orphan
`awaitingApprovalPlanReviewReplanCap`
- **Shard 3 / `@fusion/core`**: `SCHEMA_BASELINE_VERSION` advanced to
`0012` while tests still equated it with
`OWNER_PROJECT_ID_SPLIT_VERSION` (`0011`) and omitted `0012` from
applied-migration lists
- **Shards 1–2 / `@fusion/engine`**: tool count/snapshot drift for
`fn_task_logs_read`; merger tests still mocked `git diff-tree` for
trivial classification after the execFile `:2:`/`:3:` cutover; mock
provider `updateTask` arity drift
## Changes
- Locale catalogs: add missing keys, drop orphan key
- Schema applier tests: immutable 0011 identity + baseline 0012 lists
- Heartbeat + gating snapshots: include `fn_task_logs_read`
- Merger unit mocks: recognize `git diff -p -w :2:path :3:path`
- Mock provider: accept optional third `updateTask` arg
## Test plan
- [x] `pnpm --filter @fusion/i18n exec vitest run` — 23/23
- [x] `pnpm --filter @fusion/core exec vitest run
src/__tests__/postgres/schema-applier.test.ts` (immutable + automation
upgrade) — pass
- [x] `pnpm --filter @fusion/core exec vitest run` project-identity +
satellite-fusiondir — pass
- [x] Engine suites from failed CI shards (file-scoped,
hermes/openclaw/paperclip/grok, reliability post-finalize/mission,
heartbeat, gating, merger recovery/prompt, mock-provider, etc.) — pass
- [ ] Full Suite workflow green on merge to main
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Improved project data isolation across backend operations.
- Added safer optional toast handling when UI components render outside
the full application shell.
- Added support for reading task logs during agent heartbeat sessions.
- **Bug Fixes**
- Prevented runtime probes from hanging and avoided scanning large
binary files.
- Improved path handling for workspaces with missing descendants.
- Corrected task retry state resets and GitHub import/issue-close
behavior.
- **Style**
- Improved chat, terminal, and settings spacing.
- Added clearer accessibility labeling for the auto-merge control.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
2026-07-16 16:01:29 -07:00 |
|
gsxdsm
|
c484964b82
|
FN-8102: fix CLI package-lane test scaffolding
Restore CLI tests to the current PostgreSQL harness and structured tool-error contracts.
- Inject cached stores and project-context mocks for isolated extension and command tests
- Assert structured MCP error responses for delete and lineage rejection cases
- Update workflow, retry, and project mocks for current harness and core APIs
Files changed:
.../extension-experiment-finalize.test.ts | 21 ++++++++++--
.../src/__tests__/extension-workflow-tools.test.ts | 15 ++++++--
.../__tests__/task-command-gitlab-import.test.ts | 20 +++++++++++
.../task-delete-allow-resurrection.test.ts | 20 ++++++-----
.../cli/src/__tests__/task-lineage-unlink.test.ts | 40 +++++++++++++++-------
packages/cli/src/__tests__/task-retry.test.ts | 16 +++++++--
.../cli/src/commands/__tests__/project.test.ts | 4 +++
.../cli/src/commands/__tests__/task.test.ts | 6 ++++
8 files changed, 114 insertions(+), 28 deletions(-)
Fusion-Task-Id: FN-8102
Fusion-Task-Lineage: 20723ce0-77bb-4d37-9395-4191769ee752
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
|
2026-07-16 08:58:13 -07:00 |
|
gsxdsm
|
c49a933fb0
|
FN-7428: add GitLab tracking coverage and reconciliation support
Add GitLab tracking persistence, analytics, and reconciliation coverage across core, dashboard, and CLI paths.
- Store GitLab tracking and closed-at metadata when importing issues and merge requests from CLI, extension tools, and dashboard routes.
- Add GitLab source-issue analytics, Command Center GitLab signal surfaces, CSV export fields, and a closed-at backfill route.
- Cover GitLab tracking storage, reconciliation, CLI imports, dashboard import UI, route behavior, and Command Center signals with focused tests.
Files changed:
.changeset/fn-7428-gitlab-import-tracking.md | 7 +
.../__tests__/extension-gitlab-tracking.test.ts | 140 ++++++++++++
.../__tests__/task-command-gitlab-import.test.ts | 18 +-
packages/cli/src/commands/task.ts | 1 +
packages/cli/src/extension.ts | 2 +-
.../src/__tests__/gitlab-issue-analytics.test.ts | 243 +++++++++++++++++++++
.../__tests__/gitlab-source-issue-storage.test.ts | 128 +++++++++++
.../store-gitlab-tracking-reconcile.test.ts | 125 +++++++++++
packages/core/src/gitlab-issue-analytics.ts | 227 +++++++++++++++++++
packages/core/src/index.ts | 8 +
packages/core/src/store.ts | 21 +-
.../__tests__/GitHubImportModal.test.tsx | 46 ++++
.../components/__tests__/gitlabTracking.test.tsx | 43 ++++
.../components/command-center/CommandCenter.tsx | 5 +
.../components/command-center/areas/GitlabArea.tsx | 126 +++++++++++
.../areas/__tests__/areas.gitlab-signals.test.tsx | 83 +++++++
.../gitlab-source-issue-reconciler.test.ts | 187 ++++++++++++++++
.../register-command-center-routes.test.ts | 52 +++++
.../__tests__/register-git-gitlab.backfill.test.ts | 116 ++++++++++
.../dashboard/src/__tests__/routes-gitlab.test.ts | 59 +++--
packages/dashboard/src/command-center-csv.ts | 21 ++
.../src/gitlab-source-issue-reconciler.ts | 104 +++++++++
packages/dashboard/src/gitlab.ts | 16 +-
.../src/routes/register-command-center-routes.ts | 25 +++
packages/dashboard/src/routes/register-gitlab.ts | 29 +++
25 files changed, 1800 insertions(+), 32 deletions(-)
Fusion-Task-Id: FN-7428
Fusion-Task-Lineage: 7b0ebb5c-c6e7-42a9-a339-b2dd1d4e263a
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
|
2026-07-02 12:34:35 -07:00 |
|
gsxdsm
|
865dec235b
|
FN-7424: add GitLab task imports
Adds GitLab-backed task import flows across the CLI, extension, API, and dashboard.
- Add GitLab client normalization, provenance, duplicate detection, and import routes for project issues, group issues, and merge requests.
- Extend the dashboard import modal with a GitLab provider, resource tabs, previews, imported-state detection, and import actions.
- Add CLI and extension task import commands plus usage event/gating classifications and operator documentation.
- Cover GitLab fetch/import behavior with dashboard, CLI, and gating tests.
Files changed:
.changeset/fn-7424-gitlab-imports.md | 7 +
docs/cli-reference.md | 11 +-
docs/gitlab-parity-inventory.md | 10 +-
docs/task-management.md | 6 +-
packages/cli/skill/fusion/SKILL.md | 2 +-
.../cli/skill/fusion/references/extension-tools.md | 60 ++++
.../skill/fusion/references/fusion-capabilities.md | 6 +
packages/cli/src/__tests__/extension.test.ts | 6 +
.../__tests__/task-command-gitlab-import.test.ts | 97 ++++++
packages/cli/src/bin.ts | 25 +-
packages/cli/src/commands/task.ts | 58 ++++
packages/cli/src/extension.ts | 106 +++++++
packages/core/src/__tests__/usage-events.test.ts | 2 +
packages/core/src/types.ts | 7 +
packages/core/src/usage-events.ts | 3 +
packages/dashboard/app/api/legacy.ts | 52 ++++
.../dashboard/app/components/GitHubImportModal.css | 41 +++
.../dashboard/app/components/GitHubImportModal.tsx | 143 ++++++++-
.../__tests__/GitHubImportModal.test.tsx | 33 ++
packages/dashboard/src/__tests__/gitlab.test.ts | 56 ++++
.../dashboard/src/__tests__/routes-gitlab.test.ts | 99 ++++++
packages/dashboard/src/gitlab.ts | 334 +++++++++++++++++++++
packages/dashboard/src/index.ts | 15 +
packages/dashboard/src/routes.ts | 2 +
packages/dashboard/src/routes/register-gitlab.ts | 192 ++++++++++++
.../engine/src/__tests__/agent-action-gate.test.ts | 4 +
.../gating-classifications-provisioning.test.ts | 13 +-
.../src/__tests__/gating-classifications.test.ts | 6 +
packages/engine/src/gating-classifications.ts | 9 +
29 files changed, 1388 insertions(+), 17 deletions(-)
Fusion-Task-Id: FN-7424
Fusion-Task-Lineage: 8012425c-21d5-4b20-adb7-07d2e5aa1cef
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
|
2026-07-02 11:38:34 -07:00 |
|