Repository navigation
test(mcp): refresh native tool inventory for PNG chart previews - #45511
Merged
rusackas merged 1 commit intoOct 20, 2026
Merged
Conversation
#44558 added the PNGPreview variant to ChartPreviewContent and the png format to get_chart_preview, growing the generate_chart, update_chart and get_chart_preview schemas by 496 bytes each. Its PR CI ran on a base that predated the native tool inventory check, so the recorded inventory was never regenerated and test_native_inventory_report_matches_registered_tools fails on master. Regenerate it with SUPERSET_MCP_UPDATE_TOOL_INVENTORY=1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
CodeAnt PR Risk: Low Risk
Assessed commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #45511 +/- ##
===========================================
+ Coverage 65.15% 83.64% +18.49%
===========================================
Files 3053 3053
Lines 200638 200638
Branches 46820 46820
===========================================
+ Hits 130717 167827 +37110
+ Misses 66981 29566 -37415
- Partials 2940 3245 +305
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rebenitez1802
added a commit
that referenced
this pull request
Oct 20, 2026
Master's PNG chart previews (#44558) grew the chart tool definitions without refreshing the native tool inventory, which fails the unit suite once merged here. Apply the generate_chart, get_chart_preview and update_chart entries from #45511 unchanged and recompute the catalog totals to include this branch's get_dashboard_info growth. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 of 9 tasks
rusackas
deleted the
ultraset-native-tool-inventory-growth-test-failure
branch
October 20, 2026 18:27
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.
SUMMARY
tests/unit_tests/mcp_service/test_native_tool_surface.py::test_native_inventory_report_matches_registered_toolshas been failing on master since #44558 ("feat(mcp): add caller-scoped PNG chart previews", 1e18d01), which turns the requiredunit-tests-requiredcheck red.Root cause: #44558 added a
PNGPreviewvariant toChartPreviewContentand apngformat toGetChartPreviewRequestinsuperset/mcp_service/chart/schemas.py. The output schemas ofgenerate_chart,update_chartandget_chart_previeweach grew by 496 bytes, which exceeds the inventory's headroom of 2% or 200 bytes. The PR did not regeneratetests/unit_tests/mcp_service/native_tool_inventory.json. Its CI could not catch that: the last CI run on the PR (head 1478574) used base cb8ff28 from 2026-10-09, which came before the native tool inventory and its test were added (#45081 / #45084, 2026-10-10). So the PR was green on a stale base and merged without being checked against the inventory. The earlier master commit #44657 also touchedchart/schemas.py, but regenerating the inventory at its head gives a file identical to the recorded one, so all of the growth comes from #44558.The growth is intended: it is the new PNG preview variant. As the test's docstring describes for intentional changes, this PR regenerates the recorded inventory with
SUPERSET_MCP_UPDATE_TOOL_INVENTORY=1. Onlygenerate_chart,update_chart,get_chart_previewand the catalog totals change. No other tool's entry changes, and no code or test logic changes.TESTING INSTRUCTIONS
pytest tests/unit_tests/mcp_service/test_native_tool_surface.py. Every test passes, includingtest_native_inventory_report_matches_registered_tools, which fails on current master.SUPERSET_MCP_UPDATE_TOOL_INVENTORY=1 pytest tests/unit_tests/mcp_service/test_native_tool_surface.py::test_native_inventory_report_matches_registered_toolsand confirmgit diffis empty. The committed inventory is exactly what the generator produces.ADDITIONAL INFORMATION
🤖 Generated with Claude Code