GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Minify test debug artifacts by henrymercer · Pull Request #3901 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented May 14, 2026

Copy link
Copy Markdown
Contributor

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer added 2 commits May 14, 2026 14:47
@henrymercer
Reduce size of test debug artifacts
2e20236
@henrymercer
Remove now unnecessary test skipping
4795ef8
Copilot AI review requested due to automatic review settings May 14, 2026 13:50
@henrymercer
henrymercer requested a review from a team as a code owner May 14, 2026 13:50
@github-actions github-actions Bot added the size/XS Should be very easy to review label May 14, 2026
Copilot started reviewing on behalf of henrymercer May 14, 2026 13:50
View session
Copilot AI reviewed May 14, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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:

  • Removes the CI/RUN_SLOW_TESTS gating for the “debug artifacts” token-scan regression test (it now runs on all non-Windows platforms).
  • Removes the explicit per-test timeout for that regression test.
  • (Per PR description) Minifies the debug-artifacts fixture while keeping the nested archive structure realistic.
Show a summary per file
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.

Copilot's findings

  • Files reviewed: 1/2 changed files
  • Comments generated: 1

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/artifact-scanner.test.ts
Comment on lines +144 to 147
// `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[] = [];
mbg
mbg approved these changes May 14, 2026
View reviewed changes

@mbg mbg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with one further suggestion and one question.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/artifact-scanner.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/artifact-scanner.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer
henrymercer enabled auto-merge May 14, 2026 14:07
@henrymercer
henrymercer added this pull request to the merge queue May 14, 2026
Merged via the queue into main with commit 3368848 May 14, 2026
229 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer
henrymercer deleted the henrymercer/minify-test-debug-artifacts branch May 14, 2026 14:33
This was referenced May 15, 2026
Merge main into releases/v4 #3905
Merged
Merge releases/v4 into releases/v3 #3907
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mbg mbg mbg approved these changes
Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size/XS Should be very easy to review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@henrymercer @mbg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.