Repository navigation
Commit b503ae5
committed
Match the app's log redaction rules / 与 app 的日志清理规则保持一致
Port every rule of InferenceX-app's log-redaction.ts (#1760) to infx.results.redact with the
standard library only, so the bare result-tooling interpreter keeps working. Variable-length
lookbehinds become fixed-width alternations or bounded checks, classes match what JavaScript's
u and iu flags match, and the bounded repeats and line window mirror the app's.
Copy log-redaction.vectors.json byte for byte. Files are redacted in blocks of lines with the
same result as the whole text, including a JSON key on an earlier line and the app's email
hint. Redact profile traces before they are uploaded or pushed, and redact CollectiveX and
OperatorX shard output before upload.
将 InferenceX-app 的 log-redaction.ts(#1760)中的全部规则移植到 infx.results.redact,只使用标准库,
使无依赖的结果处理解释器继续可用。变长后行断言改写为定宽分支或有界检查,字符类与 JavaScript 的 u、iu 标志一致,
有界重复与行窗口也与 app 相同。逐字节复制 log-redaction.vectors.json。文件按行块清理,结果与整段文本相同,
包括上一行的 JSON 键和 app 的邮箱提示。profile trace 在上传和推送前清理,CollectiveX 与 OperatorX 的分片输出在上传前清理。1 parent 29b5944 commit b503ae5
7 files changed
Lines changed: 906 additions & 136 deletions
File tree
- .github/workflows
- inferencex-e2e/infx
- results
- tests/results
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
380 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
380 | 396 | | |
381 | 397 | | |
382 | 398 | | |
| |||
401 | 417 | | |
402 | 418 | | |
403 | 419 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | 420 | | |
414 | 421 | | |
415 | 422 | | |
| |||
0 commit comments