Normalize collapsed-whitespace fields in context reference mismatch checks - #1665
Draft
jordanpadams with Copilot wants to merge 4 commits into
Draft
Normalize collapsed-whitespace fields in context reference mismatch checks#1665jordanpadams with Copilot wants to merge 4 commits into
jordanpadams with Copilot wants to merge 4 commits into
Conversation
Co-authored-by: jordanpadams <33492486+jordanpadams@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix context reference check for whitespace collapsing
Normalize collapsed-whitespace fields in context reference mismatch checks
Aug 25, 2026
jordanpadams
requested changes
Aug 25, 2026
| | issueNumber | subtest | datasrc | args | expectation | | ||
| | 956 | 1 | "github956" | "--skip-context-validation -t {datasrc}/" | | | ||
| | 1458 | 1 | "github1458" | " -t {datasrc}/" | "summary:productValidation:passed=2,summary:productValidation:total=2,summary:totalWarnings=7,messageTypes:warning.integrity.pds4_version_mismatch=1,messageTypes:warning.label.context_ref_mismatch=5,messageTypes:warning.label.schematron=1" | | ||
| | 1265 | 1 | "github1265" | " -t {datasrc}/" | "summary:productValidation:passed=2,summary:productValidation:total=2,summary:totalWarnings=7,messageTypes:warning.integrity.pds4_version_mismatch=1,messageTypes:warning.label.context_ref_mismatch=5,messageTypes:warning.label.schematron=1" | |
Contributor
Author
There was a problem hiding this comment.
Moved 1265-1 from 4.1.x.feature to 4.2.x.feature in commit 71dea38.
Co-authored-by: jordanpadams <33492486+jordanpadams@users.noreply.github.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Observing_System_Component/namevalues containing line breaks or repeated spaces were being compared verbatim against registered context names, causing falsecontext_ref_mismatchwarnings. ForUTF8_Short_String_Collapsedfields, comparison should treat whitespace-equivalent values as equal.Validation logic: collapse whitespace before compare
ContextProductReferenceValidationRuleto normalize both label-side and registered context values fornameandtypeprior to case-insensitive matching.Regression coverage for multiline / multi-space names
4.1.xscenario (1265-1) using a fixture variant whereObserving_System_Component/nameincludes embedded newline and repeated spaces.