Skip to content

Fix flag compilation and evaluation edge cases - #18

Merged
msmans merged 1 commit into
mainfrom
improve-tests
Dec 5, 2026
Merged

msmans merged 1 commit into
mainfrom
improve-tests

Conversation

@msmans

@msmans msmans commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Configurations with shared named filters or no flags section can fail compilation, and ordered comparisons between incompatible flag types can raise TypeError during evaluation. Handle these cases as valid shared references, empty flag sets, and non-matching comparisons respectively.

Add regression tests for each case and update the threat model to reflect the ordered-comparison guard.

Validation:

  • 38 tests passed with 100% reported coverage.
  • Ruff passed.
  • Built the wheel and verified the comparison and empty-configuration cases in an isolated installation.

The source change updates FeaFea's compatibility checksum; existing compiled configurations must be recompiled.

Allow configs without flags and shared filter references. Return false
for ordered flag comparisons with incompatible types.
@msmans msmans self-assigned this Dec 5, 2026
@roboms roboms Bot added the bug Something isn't working label Dec 5, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T12:34:40.614076Z b5e655a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

📊 Test Coverage Report

✅ Coverage Status: PASSED 🎉

Current Coverage: 100.00% (Required: 100%)

📋 Detailed Coverage Report

Name                     Stmts   Miss Branch BrPart    Cover   Missing
----------------------------------------------------------------------
src/feafea/__init__.py     566      0    258      0  100.00%
----------------------------------------------------------------------
TOTAL                      566      0    258      0  100.00%

@msmans
msmans merged commit 9e91d09 into main Dec 5, 2026
2 checks passed
@msmans
msmans deleted the improve-tests branch December 5, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant