| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR aims to reduce repository/test-fixture size by trimming the “debug artifacts” regression-test archive to only the minimal content needed to exercise token detection, and adjusts the corresponding artifact-scanner test execution conditions.
Changes:
| File | Description |
|---|---|
| src/artifact-scanner.test.ts | Updates platform gating (and timeout handling) for the regression test that scans nested debug-artifact archives for tokens. |
Sorry, something went wrong.
| // `scanArchiveFile` does not support Windows, so we skip this test there. | ||
| if (os.platform() !== "win32") { | ||
| test("scanArtifactsForTokens finds token in debug artifacts", async (t) => { | ||
| t.timeout(15000); // 15 seconds | ||
| const messages: LoggedMessage[] = []; |
There was a problem hiding this comment.
LGTM, with one further suggestion and one question.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Quick win: minify the test debug artifacts to include only the TRAP file containing the secret. Preserve the zipped structure so the test is realistic, but remove the other files.
This reduces the size of the test debug artifacts from 1.14 MB to 22 KB on disk. The tarred checkout size decreases from 10.02 MB to 9.17 MB (-8.4%).
This does make it harder to ensure the scanner can scan artifacts in a reasonable amount of time, but the scanner isn't being changed much, and we will still do a full test in the PR checks. So the repo size saving seems worth the cost.