fix(ci): repair nightly pre-commit failures - #43366
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #43366 +/- ##
=======================================
Coverage 79.16% 79.17%
=======================================
Files 2879 2879
Lines 165801 165819 +18
Branches 38325 38330 +5
=======================================
+ Hits 131264 131290 +26
+ Misses 32064 32056 -8
Partials 2473 2473
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:
|
Code Review Agent Run #949dd8Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
3daa41f to
33d9bd4
Compare
Code Review Agent Run #fbc8bdActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
rusackas
left a comment
There was a problem hiding this comment.
LGTM, thanks for chasing down all three of those. Nice touch pinning the mypy annotation to the actual ExplorableData field type instead of just widening or ignoring it.
SUMMARY
The nightly all-files pre-commit workflow fails on master for three independent deterministic reasons:
column_formatsmapping because its inferreddict[str, str]type is invariant with theExplorableDatafield'sdict[str, str | None]type.ColumnConfigControl/types.ts, leaving the scheduled formatter check dirty.superset_coreas first-party after the semantic-layer package marker was added and requires an import-group separator inlayer.py.This change explicitly annotates the mapping with the public API value type and applies the repository-pinned formatter/linter output. The branch is merged through the investigated master baseline so the Ruff classification is exercised without rewriting branch history.
The two isolated Jest failures observed on adjacent master commits were unrelated flakes and are intentionally not patched here.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Not applicable; CI-only type and formatting fixes.
TESTING INSTRUCTIONS
pre-commit run mypy --all-files— passed.superset-core/src/superset_core/semantic_layers/layer.pyandsuperset/semantic_layers/models.py— passed.pre-commit run --all-fileswas executed before push. MyPy, Oxfmt, Oxlint, custom frontend rules, stylelint, and the other relevant hooks passed. The complete local run remained non-green because the worktree lacked Docs ESLint dependencies and built TypeScript package declarations, while the host Ruff/Pylint environment exposed unrelated repository-wide baseline/tool-version findings. PR CI is the authoritative full-environment verification.ADDITIONAL INFORMATION