Skip to content

Performance Tests: Ignore the locally generated artifacts directory - #81024

Merged
Mamaduka merged 1 commit into
trunkfrom
update/gitignore-perf-artifacts
Jul 31, 2026
Merged

Performance Tests: Ignore the locally generated artifacts directory#81024
Mamaduka merged 1 commit into
trunkfrom
update/gitignore-perf-artifacts

Conversation

@Mamaduka

Copy link
Copy Markdown
Member

What?

PR adds /test/performance/artifacts to .gitignore.

Why?

wp-scripts' Playwright config defaults WP_ARTIFACTS_PATH to path.join( process.cwd(), 'artifacts' ), and npm run test:performance runs in the @wordpress/performance-tests workspace — so every local perf run writes results JSON, traces, test-results/, and a cached admin storage state into test/performance/artifacts/. .gitignore already covers /artifacts and /test/e2e/artifacts, but not this one, so the directory shows up as untracked after each run.

CI is unaffected: the performance workflow sets WP_ARTIFACTS_PATH to $GITHUB_WORKSPACE/artifacts, which the existing /artifacts rule already covers.

Testing Instructions

  • Run npm run test:performance -- post-editor.spec.js
  • Run git status, the test/performance/artifacts/ should no longer appear.

@Mamaduka Mamaduka self-assigned this Jul 31, 2026
@Mamaduka Mamaduka added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Jul 31, 2026
@Mamaduka
Mamaduka requested a review from manzoorwanijk July 31, 2026 13:04
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka
Mamaduka enabled auto-merge (squash) July 31, 2026 13:07
@Mamaduka
Mamaduka merged commit eb8dc83 into trunk Jul 31, 2026
48 of 49 checks passed
@Mamaduka
Mamaduka deleted the update/gitignore-perf-artifacts branch July 31, 2026 13:40
@github-actions github-actions Bot added this to the Gutenberg 23.8 milestone Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants