Skip to content

fix: flaky PII test when Faker generates short member names#2673

Merged
mroderick merged 1 commit into
masterfrom
fix/flaky-pii-test
Jun 29, 2026
Merged

fix: flaky PII test when Faker generates short member names#2673
mroderick merged 1 commit into
masterfrom
fix/flaky-pii-test

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

CI failure in PR #2672 (https://github.com/codebar/planner/actions/runs/28191685483/job/83507647002?pr=2672).

Root cause: test checks not_to include(member.name) — Faker generated "Man" (3 chars), which is a substring of "Manager" in InvitationManager. False positive despite no actual PII leak.

Fix: use \b word boundary regex so only a standalone name triggers the check.

The test checks error logs exclude the member's name, but Faker can
generate names as short as 3 chars (e.g. Man) that happen to be
substrings of other words in the log message (InvitationManager).
Use word-boundary regex instead of substring include.

Refs: https://github.com/codebar/planner/actions/runs/28191685483
@mroderick mroderick marked this pull request as ready for review June 25, 2026 18:37
@mroderick mroderick merged commit 19472f6 into master Jun 29, 2026
18 checks passed
@mroderick mroderick deleted the fix/flaky-pii-test branch June 29, 2026 14:52
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.

2 participants