Skip to content

Restore the format, Windows lint and memo limit checks - #2

Open
solakpetri wants to merge 3 commits into
replicraft:mainfrom
solakpetri:fix/restore-ci-gates
Open

solakpetri wants to merge 3 commits into
replicraft:mainfrom
solakpetri:fix/restore-ci-gates

Conversation

@solakpetri

@solakpetri solakpetri commented Dec 3, 2026 •

Copy link
Copy Markdown

What changed

CI has been failing on main on every platform. This fixes the three causes, one commit each:

  1. Format: crates/engines/tablecraft-ace/src/queries/creation/tests.rs declares mod initialization; before mod indexed_template;. scripts/check_rust_format.py stops the job at that diff.

  2. Windows lint: clippy -D warnings rejects two desktop test files:

    • query_action/tests/delete_design.rs imports Desktop and Harness but never uses them on any platform.
    • query_action/tests/schema.rs uses PendingOperation and NodeT only in its #[cfg(unix)] guarded-reopen test, so they are unused on Windows. They are now gated like the existing std::time import.

    Both Windows jobs stopped at "Lint minimal headless workspace", so the later Windows-only tablecraft-io filesystem tests never ran in CI.

  3. Stale test: decoded_text_encoded_storage_native_budget_and_cancellation_are_separate in tablecraft-ace/tests/calculated_memos.rs failed on all six targets (left: None, right: Some(StructureLimit)). Since 9a42eb9 (fix(ace): derive long-value read bounds from native storage), ordinary reads accept every length the descriptor can represent. A 1 MiB + 1 decoded Memo and a 2 MiB + 2 encoded value therefore no longer exceed the defaults. The test now requests those lower ceilings explicitly, as that commit did in tests/long_value_source.rs. It still checks the decoded-text, encoded-storage, budget and cancellation refusals separately.

No production code changes.

How it was verified

Windows 11 Home 10.0.26300 x64, Rust 1.99.0 (x86_64-pc-windows-msvc):

  • scripts/check_rust_format.py and scripts/check_rust_layout.py: pass.
  • cargo clippy --release --workspace --all-targets --no-default-features -- -D warnings: clean. This is the step both Windows jobs fail on today.
  • cargo test --release -p tablecraft-desktop query_action: compiles on Windows now, but many save workflows still fail there. They stop in journal setup (IncompleteSetup) because of the Windows rename bug fixed in Rename Windows staging files through NtSetInformationFile #3. With that branch merged locally on top of this one, 66 of 67 pass.
  • cargo test --release -p tablecraft-ace --test calculated_memos: 8 passed, both with --no-default-features and with --all-features.

Still failing after this PR

multi_column::mixed_original_frame_set_no_yes_ack_reopens_without_losing_parked_sql (added in b1142ac) panics while building its fixture, before any TableCraft code under test runs:

slice index starts at 68980 but ends at 19901
  at crates/engineering/tablecraft-testkit/src/fixtures/access/saved_queries/creation/memo.rs:142
  via multi_column_updates::source -> replacement::definition::after -> memo::query_storage

The input is synthetic and the failure looks platform independent. It is outside the scope of this PR and not fixed here, so the desktop test step will probably still fail on it.

Not run

  • The full workspace test suite.
  • Linux and macOS: the formatting and memo test fixes are platform independent, but I haven't run them there.

delete_design never used Desktop or Harness, and schema only uses
PendingOperation and NodeT in its unix-only guarded reopen test, so
clippy -D warnings rejected both files on Windows.
Ordinary reads now accept every length the native descriptor can
represent, so the default no longer rejects a 1 MiB + 1 decoded Memo or
a 2 MiB + 2 encoded value. Request those lower ceilings explicitly to
keep the decoded-text and encoded-storage refusals separate.
@solakpetri solakpetri changed the title test: restore the format, Windows lint and memo limit checks Restore the format, Windows lint and memo limit checks Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant