You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "Totoro-qaq (via GitHub)" <gi...@apache.org> on 2026/09/06 05:29:12 UTC
[PR] test(desktop): cover composer mention catalog context guard [maka]
Totoro-qaq opened a new pull request, #4894:
URL: https://github.com/apache/maka/pull/4894
## Summary
Fixes #4892
Add three regression tests for `ComposerMentionsProvider` using the existing `node:test` + `linkedom` setup:
- Observe the first committed context value after switching sessions, before passive effects can hide stale Skills or an unavailable verdict.
- Cover switches from both populated and empty catalogs.
- Keep settled Skills visible during a same-context refresh until its response resolves.
Production code, dependencies, compiler configuration, and test locations are unchanged.
## Verification
- `npm --workspace @maka/desktop run build:main` — passed.
- New suite: `node --test --test-concurrency=4 dist/main/__tests__/composer-mentions.test.js` from `apps/desktop` — 3 passed; also passed in 20 consecutive fresh processes.
- Existing `agent-graph-panel` and `composer-directories` suites — 23 passed.
- Mutation checks, each rebuilt from source:
- Invert the context comparison — all 3 tests fail.
- Remove the render guard — both session-switch tests fail.
- Clear Skills during same-context refresh — the refresh test fails.
- Restore production code and rebuild — all 3 tests pass.
- `npm run lint`, `npm run format:check`, `npm run build`, and `npm run typecheck` — passed.
- `npx knip --workspace apps/desktop` and `npx knip --workspace packages/ui` — passed.
- Desktop architecture checks — passed, including 101 checker tests.
Not run: full-repository `npm test`, Storybook browser smoke, or Electron GUI E2E.
## AI use
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope:
- OpenAI Codex: test implementation and local verification.
- DeepSeek Harness (`deepseek-v4-pro`, reasoning effort `max`): independent read-only review and focused test execution.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [ ] Yes — described under Summary above
- [x] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] test(desktop): cover composer mention catalog context guard [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #4894:
URL: https://github.com/apache/maka/pull/4894
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] test(desktop): cover composer mention catalog context guard [maka]
Posted by "Totoro-qaq (via GitHub)" <gi...@apache.org>.
Totoro-qaq commented on PR #4894:
URL: https://github.com/apache/maka/pull/4894#issuecomment-5557285163
@Astro-Han CI is currently blocked at `check:e2e-budget`:
`session-workbar.spec.ts: budget records 5 test(s), the file has 6`
The same mismatch is present on current `main`. This PR only adds a `node:test` file and does not change the Electron E2E tier or its budget.
Could you take a look at the budget mismatch? I've kept that unrelated change out of this PR.
TYSM!
[Failed check](https://github.com/apache/maka/actions/runs/34014099193/job/101434805871)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] test(desktop): cover composer mention catalog context guard [maka]
Posted by "Totoro-qaq (via GitHub)" <gi...@apache.org>.
Totoro-qaq commented on PR #4894:
URL: https://github.com/apache/maka/pull/4894#issuecomment-5557782648
@Astro-Han Thanks for fixing the main-branch blockers in #4895! I've rebased onto `main`, and CI now passes at `da01731`.
The patch is unchanged: one test file covering #4892, with no production changes. Could you take a look when you have a chance?
tysm!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org