Repository navigation
Restore dependency review and MCP settings checks - #1879
Merged
Merged
Conversation
The unit gate rejects operator limits declared as module constants. Put the reply budget, source line cap and query word cap in the settings catalog and retain their defaults. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Record the three catalog defaults so the settings gate detects future changes to them. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The feature inventory requires a test for the setting. A search with two matching words checks that lowering the limit keeps only the longer match. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The source limit controls the full body. A single place and cursor pages can exceed the reply's token target. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
GitHub returns the static dependency diff alongside a missing-head warning. Verify that Maven and Rust snapshot inputs are unchanged before acting on that diff. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The Rust dependency workflow runs the snapshot tests before resolving Cargo dependencies. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Include the checkout root when checking input paths for the Rust workflow’s Python commands. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related: #1877
Related: #1871
Related: #1843
Changelog category
Changelog entry
CI verifies Maven and Rust build inputs when GitHub lacks a head dependency snapshot. MCP search reply limits are configurable.
Why
The unit suite rejects three MCP reply limits stored as constants. The dependency review also rejects pull requests when GitHub provides the static dependency diff alongside a missing-head-snapshot warning. Each fix is blocked by the check the other fix restores.
Scope and risk
This combines the MCP limit changes from the settings PR with the dependency review changes from the code quality PR. The dependency check still blocks high and critical advisories. When the head snapshot is absent, it also requires a complete comparison that proves the Maven and Rust snapshot inputs are unchanged.
Compatibility, rollout and rollback
Tests
python -m pytest -q tests/unit/test_tunable_constants.py tests/unit/test_dependency_review_workflow.py tests/unit/test_code_search_places.py tests/unit/test_settings_defaults.pymake format-check lint typecheckAI assistance in the code
Checklist
Note
Medium Risk
Dependency review logic is more permissive when snapshots are missing but relies on compare-diff heuristics; misclassification could allow or block PRs incorrectly. Settings changes are low-risk defaults with existing behavior preserved.
Overview
Dependency review no longer fails solely because GitHub reports no dependency graph snapshot for the PR head. When that specific warning is present, the workflow still evaluates advisories, then uses the Compare API to confirm Maven/Rust snapshot inputs (POMs, Cargo files, related workflows/scripts, etc.) are unchanged—allowing an
snapshot_inputs: unchangedpass. Other incomplete snapshot warnings still fail, and modified build inputs while the head snapshot is missing still fail.MCP
code.searchplaces move three hardcoded limits into settings: token budget (default 600), max lines for the leading place’s full body (30), and max query words for matching lines (32).code_leanreads these from config; schema, docs, example YAML, and defaults snapshot are updated accordingly.Reviewed by Cursor Bugbot for commit a1de5b2. Bugbot is set up for automated code reviews on this repo. Configure here.