You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sadpandajoe (via GitHub)" <gi...@apache.org> on 2026/10/20 05:59:13 UTC

[PR] test(mcp): refresh native tool inventory for PNG chart previews [superset]

sadpandajoe opened a new pull request, #45511:
URL: https://github.com/apache/superset/pull/45511

   ### SUMMARY
   `tests/unit_tests/mcp_service/test_native_tool_surface.py::test_native_inventory_report_matches_registered_tools` has been failing on master since #44558 ("feat(mcp): add caller-scoped PNG chart previews", 1e18d01d7), which turns the required `unit-tests-required` check red.
   
   Root cause: #44558 added a `PNGPreview` variant to `ChartPreviewContent` and a `png` format to `GetChartPreviewRequest` in `superset/mcp_service/chart/schemas.py`. The output schemas of `generate_chart`, `update_chart` and `get_chart_preview` each grew by 496 bytes, which exceeds the inventory's headroom of 2% or 200 bytes. The PR did not regenerate `tests/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 touched `chart/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`. Only `generate_chart`, `update_chart`, `get_chart_preview` and the catalog totals change. No other tool's entry changes, and no code or test logic changes.
   
   ### TESTING INSTRUCTIONS
   1. Check out this branch and install the backend dev requirements.
   2. Run `pytest tests/unit_tests/mcp_service/test_native_tool_surface.py`. Every test passes, including `test_native_inventory_report_matches_registered_tools`, which fails on current master.
   3. Optionally, run `SUPERSET_MCP_UPDATE_TOOL_INVENTORY=1 pytest tests/unit_tests/mcp_service/test_native_tool_surface.py::test_native_inventory_report_matches_registered_tools` and confirm `git diff` is empty. The committed inventory is exactly what the generator produces.
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [x] Has associated issue: Fixes #45510
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] test(mcp): refresh native tool inventory for PNG chart previews [superset]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #45511:
URL: https://github.com/apache/superset/pull/45511#issuecomment-6284795943

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/45511?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 64.92%. Comparing base ([`1e18d01`](https://app.codecov.io/gh/apache/superset/commit/1e18d01d76d6736dd3c22770f3840b8378776fd7?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`b88192c`](https://app.codecov.io/gh/apache/superset/commit/b88192cf89b09d6f7ab05e87bb55b5bf6ac7d78f?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #45511      +/-   ##
   ==========================================
   - Coverage   65.15%   64.92%   -0.23%     
   ==========================================
     Files        3053     3053              
     Lines      200638   200638              
     Branches    46820    46820              
   ==========================================
   - Hits       130717   130256     -461     
   - Misses      66981    67438     +457     
   - Partials     2940     2944       +4     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/45511/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [hive](https://app.codecov.io/gh/apache/superset/pull/45511/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `34.91% <ø> (ø)` | |
   | [mysql](https://app.codecov.io/gh/apache/superset/pull/45511/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [postgres](https://app.codecov.io/gh/apache/superset/pull/45511/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [presto](https://app.codecov.io/gh/apache/superset/pull/45511/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `36.66% <ø> (ø)` | |
   | [python](https://app.codecov.io/gh/apache/superset/pull/45511/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.75% <ø> (-0.41%)` | :arrow_down: |
   | [sqlite](https://app.codecov.io/gh/apache/superset/pull/45511/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.64% <ø> (ø)` | |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/45511?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] test(mcp): refresh native tool inventory for PNG chart previews [superset]

Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #45511:
URL: https://github.com/apache/superset/pull/45511#issuecomment-6284596315

   ## CodeAnt PR Risk: Low Risk
   
   - The PR appears safe to merge; the visible changes update tool-inventory size metrics and show no functional code changes.
   
   **Assessed commit:** `b88192cf89b0`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] test(mcp): refresh native tool inventory for PNG chart previews [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas merged PR #45511:
URL: https://github.com/apache/superset/pull/45511


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org