Skip to content

Strip duplicate and stale Not-found notes in ExtractXliff#144

Merged
imnasnainaec merged 6 commits into
masterfrom
fix/113-not-found-notes
Jun 15, 2026
Merged

Strip duplicate and stale Not-found notes in ExtractXliff#144
imnasnainaec merged 6 commits into
masterfrom
fix/113-not-found-notes

Conversation

@imnasnainaec

@imnasnainaec imnasnainaec commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #113

Each run of ExtractXliff.exe --base-xliff appended a fresh "Not found in static scan..." note without removing the previous one, causing notes to accumulate indefinitely.

  • Before adding a "Not found" note, any existing notes with that prefix are now stripped so at most one such note exists per string per run.
  • When a string IS found in a subsequent extraction, any "Not found" notes from previous runs are no longer copied forward to the output.

This change is Reviewable

Devin review: https://app.devin.ai/review/sillsdev/l10nsharp/pull/144

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Test Results

    7 files  ±0  104 suites  ±0   20s ⏱️ -3s
168 tests +2  163 ✔️ +2    5 💤 ±0  0 ±0 
638 runs  +8  623 ✔️ +8  15 💤 ±0  0 ±0 

Results for commit 67d2826. ± Comparison against base commit 7c4190e.

♻️ This comment has been updated with latest results.

@imnasnainaec imnasnainaec self-assigned this Jun 5, 2026
imnasnainaec and others added 4 commits June 8, 2026 09:20
)

Running ExtractXliff multiple times accumulated one "Not found" note per
run. Now the note is replaced (old one stripped before adding a new one)
rather than appended. Additionally, "Not found" notes are no longer
copied forward when a string is found in the current extraction.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imnasnainaec imnasnainaec force-pushed the fix/113-not-found-notes branch from 809a5b3 to eb35b99 Compare June 8, 2026 13:20
On master the copy-old-notes loop prepends "[OLD NOTE] " to any note
not already prefixed, so the "Not found" note from a prior merge
survives as "[OLD NOTE] Not found...". StartsWith("Not found") missed
it; Contains("Not found") catches it regardless of prefix.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imnasnainaec imnasnainaec marked this pull request as ready for review June 8, 2026 13:48
@imnasnainaec imnasnainaec requested a review from papeh June 8, 2026 13:48

@andrew-polk andrew-polk 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.

@andrew-polk reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on papeh).

@imnasnainaec imnasnainaec merged commit ff32554 into master Jun 15, 2026
4 of 5 checks passed
@imnasnainaec imnasnainaec deleted the fix/113-not-found-notes branch June 15, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate "Not found" notes from ExtractXliff

2 participants