You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remove 147 low-value provider store tests - #37597
Remove 147 low-value GitHub, hosted-review and Jira store tests, including five entire suites, to reduce maintenance and CI work.
What Changed
Audit 30 sources, remove 147 authored registrations and retain 70. Remove mock-call ledgers, private eligibility and cache-key inventories, repeated field projections, simple page-count arithmetic, narrower race variants and a single-test freshness suite that only copies a supplied search row. Also remove host-stamp field checks, refresh routing ledgers, a session fixture that implements its own guard, and capability-state checks. Delete five timing entries and three obsolete wall-clock baseline rows.
Why
Keep tests that exercise stale-result ownership, concurrent edits, real board/task consumers, optimistic rollback, queue recovery, reconnects, mixed-version servers and actual cache bounds. Some standalone alarms are intentionally lost; equivalent coverage is not claimed.
Linked Issue
Internal maintenance requested by a stablyai maintainer. The template exempts maintainers from opening needless issues; no pre-existing issue is linked.
Visual Proof
N/A — test and timing-metadata removals only.
Testing
I manually tested these changes locally
Automated test removals explained above
All 30 originals were read and every registration received a value decision. External parsing, exact retained callback/setup/scope comparisons, cleanup replay, runtime import-edge preservation, formatting and inert lint passed. No local project tests, builds, typechecks, installs or apps were run. All 12 full unit shards and applicable workflows must pass before merge; CI has not yet passed.
Review
Root reviewed the original sources and cleanup. The ProjectCell fixture was fully read and invokes the actual component; other direct-import snapshots are pins only. Publication reconciles source and owner pins against the previous verified merge. Historical execution evidence is preserved. No dependency-closure claim.
Agent skill upstream boundary
Not applicable; no upstream skill source is copied or translated.
Risk
Level: Low. Coverage decreases intentionally. Reverting this PR restores the removed tests and metadata.
Notes
No production changes across macOS, Linux, Windows, remote, mobile or folder workspaces.
The PR removes renderer-store tests across GitHub PR and project workflows, task and work-item handling, hosted reviews, and Jira and SSH session behavior. It also updates CI shard timing entries and removes three flaky-test baseline entries. The supplied summaries report no implementation behavior changes.
Merge Risk: Low · up to 0cbba
Restore the two targeted tests to protect thread rollback and Jira save ordering. The remaining merge risk is limited to regression coverage.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly and concisely describes the primary change: removing 147 low-value provider store tests.
Description check
The description is complete and follows the required structure. It explains the scope, rationale, testing status, risk, visual proof, platform impact, and rollback plan. It also explains why no linked…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description is complete and follows the required structure. It explains the scope, rationale, testing status, risk, visual proof, platform impact, and rollback plan. It also explains why no linked issue is included under the maintainer exception. CI is not yet passing, but this is accurately disclosed.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 8 files.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Retain a rejection test that asserts optimistic rollback.
The retained tests cover rejected requests and comment restoration separately. No retained test detects a regression where a rejected resolveReviewThread request returns false but leaves the optimistic comment state changed.
Suggested fix
beforeEach(() => {
vi.clearAllMocks()
resetRemoteRuntimeMocks()
mockApi.gh.addPRReviewCommentReply.mockResolvedValue({ ok: true, comment: reply })
})
+it('rolls back the comment array when the request rejects', async () => {+ const store = makeStore()+ mockApi.gh.resolveReviewThread.mockRejectedValueOnce(new Error('offline'))+ const pending = store.getState().resolveReviewThread(repoPath, 12, threadId, true, options)+ expect(store.getState().commentsCache[cacheKey]?.data?.[0].isResolved).toBe(true)+ await expect(pending).resolves.toBe(false)+ expect(store.getState().commentsCache[cacheKey]?.data).toEqual([original])+})+
it('keeps a reply posted while a failed unresolve was pending, with the thread state restored', async () => {
86-88: Trivial · Data Integrity & Integration · Quick win
Retain the combined explicit-source save-ordering regression test
The retained patchJiraIssue test checks cache isolation with one save only. Add an equivalent caller-level test that performs two explicit-source saves, changes the provider session between them, and asserts that the newer save waits for the older settlement and that the final patch remains applied.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 3111b868-a064-4a2d-9f59-e70f563ff739
Commits
Reviewing files that changed from the base of the PR and between 71147f6 and 0cbba00.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Remove 147 low-value GitHub, hosted-review and Jira store tests, including five entire suites, to reduce maintenance and CI work.
What Changed
Audit 30 sources, remove 147 authored registrations and retain 70. Remove mock-call ledgers, private eligibility and cache-key inventories, repeated field projections, simple page-count arithmetic, narrower race variants and a single-test freshness suite that only copies a supplied search row. Also remove host-stamp field checks, refresh routing ledgers, a session fixture that implements its own guard, and capability-state checks. Delete five timing entries and three obsolete wall-clock baseline rows.
Why
Keep tests that exercise stale-result ownership, concurrent edits, real board/task consumers, optimistic rollback, queue recovery, reconnects, mixed-version servers and actual cache bounds. Some standalone alarms are intentionally lost; equivalent coverage is not claimed.
Linked Issue
Internal maintenance requested by a stablyai maintainer. The template exempts maintainers from opening needless issues; no pre-existing issue is linked.
Visual Proof
N/A — test and timing-metadata removals only.
Testing
All 30 originals were read and every registration received a value decision. External parsing, exact retained callback/setup/scope comparisons, cleanup replay, runtime import-edge preservation, formatting and inert lint passed. No local project tests, builds, typechecks, installs or apps were run. All 12 full unit shards and applicable workflows must pass before merge; CI has not yet passed.
Review
Root reviewed the original sources and cleanup. The ProjectCell fixture was fully read and invokes the actual component; other direct-import snapshots are pins only. Publication reconciles source and owner pins against the previous verified merge. Historical execution evidence is preserved. No dependency-closure claim.
Agent skill upstream boundary
Risk
Level: Low. Coverage decreases intentionally. Reverting this PR restores the removed tests and metadata.
Notes
No production changes across macOS, Linux, Windows, remote, mobile or folder workspaces.
Checklist