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:
commit
ed95fc1dda
1 changed files with 5 additions and 1 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue