Merge pull request #2674 from paperclipai/fix/feedback-test-uuid-redaction

fix: use deterministic UUID in feedback-service test to avoid phone redaction
This commit is contained in:
Dotta 2026-04-03 15:21:26 -05:00 committed by GitHub
commit ed95fc1dda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -187,7 +187,11 @@ describe("feedbackService.saveIssueVote", () => {
const targetCommentId = randomUUID();
const earlierCommentId = randomUUID();
const laterCommentId = randomUUID();
const runId = randomUUID();
// Use a deterministic UUID whose hyphen-separated segments cannot be
// mistaken for a phone number by the PII redactor's phone regex.
// Random UUIDs occasionally produce digit pairs like "4880-8614" that
// cross segment boundaries and match the phone pattern.
const runId = "abcde123-face-beef-cafe-abcdef654321";
const instructionsDir = fs.mkdtempSync(path.join(os.tmpdir(), "paperclip-feedback-instructions-"));
tempDirs.push(instructionsDir);
const instructionsPath = path.join(instructionsDir, "AGENTS.md");