Skip to content

Tests: Run slow scanArtifactsForTokens test in CI only by default#3874

Open
henrymercer wants to merge 1 commit intomainfrom
henrymercer/slow-tests-ci-only
Open

Tests: Run slow scanArtifactsForTokens test in CI only by default#3874
henrymercer wants to merge 1 commit intomainfrom
henrymercer/slow-tests-ci-only

Conversation

@henrymercer
Copy link
Copy Markdown
Contributor

The "scanArtifactsForTokens finds token in debug artifacts" test takes 4.7 seconds to complete on my machine. Run it in CI only by default.

Here's proof that it actually runs.

@henrymercer henrymercer requested a review from a team as a code owner May 6, 2026 17:47
Copilot AI review requested due to automatic review settings May 6, 2026 17:47
@github-actions github-actions Bot added the size/XS Should be very easy to review label May 6, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the artifact-scanner test suite to avoid running an expensive zip-extraction/token-scan test during typical local runs, while still exercising it in CI to preserve coverage of the regression scenario.

Changes:

  • Adds an environment-gated condition so the slow “scanArtifactsForTokens finds token in debug artifacts” test runs by default only in CI.
  • Introduces a local opt-in mechanism via RUN_SLOW_TESTS=1.
  • Documents the rationale for the gating inline in the test file.
Show a summary per file
File Description
src/artifact-scanner.test.ts Gates the slow artifact-scanning regression test to CI by default with a local opt-in environment variable.

Copilot's findings

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Should be very easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants