Skip to content

test fixes - #9299

Merged
akshaydeo merged 1 commit into
mainfrom
dev
Oct 29, 2026
Merged

akshaydeo merged 1 commit into
mainfrom
dev

Conversation

@akshaydeo

Copy link
Copy Markdown
Contributor

No description provided.

@akshaydeo
akshaydeo requested a review from a team as a code owner October 29, 2026 17:12
@akshaydeo
akshaydeo merged commit 903f178 into main Oct 29, 2026
5 of 15 checks passed
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR reaches Warp topic answers and CI test and package setup.

Fix the topic answer size check before merging; the test gap is a separate non-blocking improvement.

Findings

  1. P1 Shortened answers still get discarded ▶
  2. P2 Wrong user counts pass ▶

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  B[Build gateway] --> A[API integration tests]
  B --> W[Warp tests]
  A --> R[Release gates]
  W --> R
Loading

Reviews (1) · Last reviewed commit: "test fixes" · Reviewed by Greptile

Comment thread framework/warp/topics.go
Comment on lines +1030 to +1031
out["trimmed"] = fmt.Sprintf("%d of the smallest rows did not fit in one answer and were left out; returned counts what is here. "+
"Answer from these, and say more exist; narrow the window or filters to see the rest.", dropped)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Shortened answers still get discarded

fitTopicResult checks the size before adding trimmed. If removing a row leaves the answer just under 16,384 bytes, the notice pushes it over again. boundToolResult then discards the entire answer, so Warp still retries the lookup this change aims to avoid.

Update returned and include the notice before the final size check. Add a test that lands near the byte limit.

Knowledge Base Used: Warp agent workflows

Comment on lines +380 to +385
expect: {
toolsAll: ["list_topics"],
toolsOnly: ["describe_filter_space", "list_topics", "query_usage_by"],
maxToolCalls: 3,
answerAll: [FEATURE_LINK],
answerNone: ["\\b\\d+ (different |distinct |unique )?people\\b"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Wrong user counts pass

The relaxed topics-people case accepts a user count from query_usage_by, but never checks for dimension: "user" and a nonempty topic_ids filter. A deployment-wide ranking can pass while the answer presents it as the largest topic's user count.

Check those arguments whenever this case calls query_usage_by, while keeping the decline-only answer valid. Add negative tests for missing or wrong arguments and regenerate the collection.

@coderabbitai
coderabbitai Bot requested a review from kohlivrinda October 29, 2026 17:19

This branch is waiting to be deployed

1 waiting deployment
pr-testing — dc28f701 Waiting Oct 29, 2026 by akshaydeo via dependency-review #41124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant