Skip to content

fix: update hallucination_detection test fixture for upstream NA enum addition #915

Description

@ajbozarth

Problem

test_canned_input[hallucination_detection] is failing in CI because the upstream YAML config at ibm-granite/granitelib-rag-r1.0 was updated to add "NA" as a valid enum value for the faithfulness (f) field in HallucinationOutputEntry, but the local fixture hasn't been updated to match.

Failing test: test/formatters/granite/test_intrinsics_formatters.py::test_canned_input[hallucination_detection]

Diff (from CI):

"enum": [
  "faithful",
  "partial",
- "unfaithful"
+ "unfaithful",
+ "NA"
]

Fix

Update the fixture file test/formatters/granite/testdata/test_canned_input/hallucination_detection.json to add "NA" to the f field's enum. This is the same kind of fix done in #897 for other upstream YAML changes.

Impact

This failure is unrelated to the content of whichever PR triggers CI — it will fail on any branch until the fixture is updated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions