Skip to content

test: Fix tests for polars v2.0.0rc1 - #399

Merged
Oliver Borchert (borchero) merged 2 commits into
mainfrom
in-memory
Sep 3, 2026
Merged

test: Fix tests for polars v2.0.0rc1#399
Oliver Borchert (borchero) merged 2 commits into
mainfrom
in-memory

Conversation

@borchero

Copy link
Copy Markdown
Member

Motivation

Nightly CI fails as polars v2 makes the streaming engine the default. Interestingly, we don't need to change a lot for this (arguably massive) change 👀

@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c6b6386) to head (d5bb90a).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #399   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           46        46           
  Lines         2590      2590           
=========================================
  Hits          2590      2590           

☔ 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.

Copilot AI 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.

🟢 Approval recommended

The change is narrowly scoped to tests, aligns with the stated CI failure cause, and the only feedback is a minor clarity nit in a new comment.

Pull request overview

Adjusts schema validation tests to remain stable under Polars v2’s default streaming engine behavior, by forcing in-memory collection where deterministic example-count assertions are required.

Changes:

  • Extend the _validate_and_collect test helper to allow selecting a LazyFrame.collect engine.
  • Force engine="in-memory" for the primary key example-count assertion test to avoid streaming “fail fast” behavior affecting row counts.
File summaries
File Description
tests/schema/test_validate.py Adds an engine override for LazyFrame.collect in tests and applies it to stabilize a streaming-sensitive assertion.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/schema/test_validate.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@borchero
Oliver Borchert (borchero) merged commit 2b03dad into main Sep 3, 2026
32 checks passed
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.

3 participants