Skip to content

fix(ci): repair scheduled pre-commit drift - #43603

Merged
hainenber merged 1 commit into
masterfrom
codex/ci-master-76151be-20260827
Aug 28, 2026
Merged

fix(ci): repair scheduled pre-commit drift#43603
hainenber merged 1 commit into
masterfrom
codex/ci-master-76151be-20260827

Conversation

@sadpandajoe

Copy link
Copy Markdown
Member

SUMMARY

Repairs the deterministic failures reported by the scheduled all-files pre-commit workflow:

  • widens the inferred column_formats value type to match ExplorableData
  • restores Ruff's first-party import grouping for superset_core.semantic_layers
  • applies the pinned Oxfmt 0.64.0 output to all three files reported by the failed job

This is an automation-owned replacement for the overlapping work in #43366. That PR correctly includes the MyPy, Ruff, and ColumnConfigControl/types.ts changes, but omits the reported Oxfmt rewrites in dashboardLayout.ts and dataMask/reducer.ts.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Not applicable; this changes type/lint/format output only.

TESTING INSTRUCTIONS

  • pre-commit run mypy --all-files
  • ruff check superset-core/src/superset_core/semantic_layers/layer.py
  • npx oxfmt --check --no-error-on-unmatched-pattern -- src/dashboard/actions/dashboardLayout.ts src/dataMask/reducer.ts src/explore/components/controls/ColumnConfigControl/types.ts from superset-frontend
  • pre-commit run --all-files was executed before push. The repair-specific hooks pass; the local full sweep also reported unrelated baseline lint findings and missing generated frontend/docs build outputs.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • 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

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.13%. Comparing base (76151be) to head (6555936).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
superset-frontend/src/dataMask/reducer.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #43603      +/-   ##
==========================================
- Coverage   79.13%   79.13%   -0.01%     
==========================================
  Files        2879     2879              
  Lines      165764   165764              
  Branches    38320    38320              
==========================================
- Hits       131178   131176       -2     
- Misses      32103    32105       +2     
  Partials     2483     2483              
Flag Coverage Δ
hive 37.95% <0.00%> (ø)
javascript 74.55% <50.00%> (ø)
mysql 57.68% <0.00%> (ø)
postgres 57.71% <0.00%> (ø)
presto 39.86% <0.00%> (ø)
python 83.72% <100.00%> (-0.01%) ⬇️
sqlite 57.40% <0.00%> (ø)
unit 73.87% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sadpandajoe
sadpandajoe marked this pull request as ready for review August 27, 2026 19:04

@bito-code-review bito-code-review Bot left a comment

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.

Code Review Agent Run #8e90d5

Actionable Suggestions - 1
  • superset-frontend/src/dashboard/actions/dashboardLayout.ts - 1
Review Details
  • Files reviewed - 5 · Commit Range: 6555936..6555936
    • superset-core/src/superset_core/semantic_layers/layer.py
    • superset-frontend/src/dashboard/actions/dashboardLayout.ts
    • superset-frontend/src/dataMask/reducer.ts
    • superset-frontend/src/explore/components/controls/ColumnConfigControl/types.ts
    • superset/semantic_layers/models.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Comment on lines 312 to 317
source &&
!(
// ensure it has moved
(destination.id === source.id && destination.index === source.index)
destination.id === source.id && destination.index === source.index
)
) {

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.

Operator Precedence Breaks Move Guard

Removing the parentheses changes operator precedence. ! binds tighter than &&, so the new expression parses as (!destination.id === source.id) && destination.index === source.index. The sub-expression !destination.id === source.id compares a boolean to a string and is always false, so moveComponent will essentially never be dispatched, breaking dashboard drag-and-drop. The existing test should move a component if the component is not new in dashboardLayout.test.ts would fail. Restore the parentheses around the inner AND.

Code suggestion
Check the AI-generated fix before applying
Suggested change
source &&
!(
// ensure it has moved
(destination.id === source.id && destination.index === source.index)
destination.id === source.id && destination.index === source.index
)
) {
source &&
!(
// ensure it has moved
(destination.id === source.id && destination.index === source.index)
)
) {

Code Review Run #8e90d5


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@hainenber
hainenber merged commit 94dd3d0 into master Aug 28, 2026
151 of 152 checks passed
@hainenber
hainenber deleted the codex/ci-master-76151be-20260827 branch August 28, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants