Skip to content

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

Open
mroderick wants to merge 1 commit into
masterfrom
fix/flaky-pii-test
Open

fix: flaky PII test when Faker generates short member names#2673
mroderick wants to merge 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
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