chore(tests): remove low-signal tests and consolidate the testing setup - #8295
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
1 issue found across 3000 files
Confidence score: 5/5
- The Vitest command documented in
.claude/rules/sim-testing.mdmay point to a missing binary and make the simulation test instructions fail; verify the relative path fromapps/simbefore relying on it.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".claude/rules/sim-testing.md">
<violation number="1" location=".claude/rules/sim-testing.md:125">
P3: `../../node_modules/.bin/vitest` run from `apps/sim` resolves one directory above the repository root (`apps/sim` is directly under the root), so it points at a path that does not exist. The hoisted binary is at the repo root: `../node_modules/.bin/vitest run <paths>`.</violation>
</file>
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
…is suite, restored client-info wire contract
|
Restored the |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
1 issue found across 3000 files
Confidence score: 4/5
.agents/skills/test-audit/SKILL.mdmay reject valid behavior-focused unit and regression tests solely because they were added after implementation, including tests that expose the intended regression; allow tests before or after code and assess them against the contract.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".agents/skills/test-audit/SKILL.md">
<violation number="1" location=".agents/skills/test-audit/SKILL.md:20">
P2: This blanket rule blocks valid behavior-focused unit and regression tests added after implementation, even when they fail for the intended regression. Allow tests before or after code and judge them by the contract they protect and whether they fail when the fix is reverted.</violation>
</file>
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Fix all with cubic | Re-trigger cubic
Summary
validateStringParam,validateRequiredFields,resubscribe,resolveSelectExportValue,getSlackV2ToolAccess, unused provider/model helpers,USAGE_PROVIDER_ICON_IDS)@sim/testingexports (unused assertions, builders, factories, mock helpers,setup/)*.postgres.test.ts→*.integration.ts, oneTEST_DATABASE_URL/TEST_REDIS_URLcontract enforced bypackages/db/testing/test-infrastructure.ts, CI discovers suites by glob instead of a hand-maintained file list, and every integration run uploads a JSON report.*.live.test.tsholds opt-in provider/sandbox suites (never in CI); 7 integration suites that already failed on a fresh DB are quarantined explicitly inapps/sim/vitest.config.tsminimumReleaseAgewindow); publish workflows run tests on Node 22 and keep a Node 20 bundle smoke@vitest-environment nodedocblocks (node is the default) and ~2,260vi.clearAllMocks()inbeforeEach(Vitest 5 clears mocks before every test)test-auditskill (authoring gate, junk patterns, retention bar, audit/campaign workflow), rewrite.claude/rules/sim-testing.mdaround test layers and naming, and gate new tests in/shipand/cleanupType of Change
Testing
bun run test(every workspace + scripts + setup): all green except 2 pre-existingbackground/knowledge-processing.test.tscases that fail only when the checkout path contains/privatepushandmigrateprovisioning: every file that ran in CI before still passes; SCIM HTTP e2e 17/17bunx turbo run type-check,bun run lint,bun run check:audits(49),docs-manifest:check, block registry,check:migrationsall passGreptile will likely refuse this PR for file count; the diff is almost entirely test deletions.
Checklist