forked from farhoodlabs/paperclip
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:
@@ -187,7 +187,11 @@ describe("feedbackService.saveIssueVote", () => {
|
|||||||
const targetCommentId = randomUUID();
|
const targetCommentId = randomUUID();
|
||||||
const earlierCommentId = randomUUID();
|
const earlierCommentId = randomUUID();
|
||||||
const laterCommentId = 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-"));
|
const instructionsDir = fs.mkdtempSync(path.join(os.tmpdir(), "paperclip-feedback-instructions-"));
|
||||||
tempDirs.push(instructionsDir);
|
tempDirs.push(instructionsDir);
|
||||||
const instructionsPath = path.join(instructionsDir, "AGENTS.md");
|
const instructionsPath = path.join(instructionsDir, "AGENTS.md");
|
||||||
|
|||||||
Reference in New Issue
Block a user