Skip to content

Add full warning assertions for Sample.from_frame id inference#337

Closed
neuralsorcerer wants to merge 2 commits intofacebookresearch:mainfrom
neuralsorcerer:tests
Closed

Add full warning assertions for Sample.from_frame id inference#337
neuralsorcerer wants to merge 2 commits intofacebookresearch:mainfrom
neuralsorcerer:tests

Conversation

@neuralsorcerer
Copy link
Collaborator

Added full warning assertions for Sample.from_frame id inference

Copilot AI review requested due to automatic review settings February 15, 2026 06:51
@meta-cla meta-cla bot added the cla signed label Feb 15, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR strengthens test coverage around Sample.from_frame()’s ID inference path by asserting that all expected warning logs are emitted during automatic id detection and default weight creation.

Changes:

  • Updated test_Sample_from_frame_id_column_detection to capture logs from a single Sample.from_frame(df) call and assert presence of all three expected warning messages.
  • Added a changelog entry noting expanded warning-assertion coverage for this behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/test_sample.py Captures warning logs during Sample.from_frame() ID inference and asserts all expected messages are present.
CHANGELOG.md Documents the expanded test assertions for Sample.from_frame() ID inference warnings.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@neuralsorcerer neuralsorcerer added this to the balance 0.17.0 milestone Feb 15, 2026
Copy link
Contributor

@talgalili talgalili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@meta-codesync
Copy link

meta-codesync bot commented Feb 15, 2026

@talgalili has imported this pull request. If you are a Meta employee, you can view this in D93365012.

@meta-codesync
Copy link

meta-codesync bot commented Feb 15, 2026

@talgalili merged this pull request in e2fe1ec.

@neuralsorcerer neuralsorcerer deleted the tests branch February 16, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants