Skip to content

Make the run time report work again - #399

Draft
schlessera wants to merge 1 commit into
mainfrom
perf/measure-run-times
Draft

schlessera wants to merge 1 commit into
mainfrom
perf/measure-run-times

Conversation

@schlessera

Copy link
Copy Markdown
Member

Addresses the first two steps of #384.

With WP_CLI_TEST_LOG_RUN_TIMES set, the report printed at the end of a run was invisible with the default progress formatter, and its per-scenario part was always empty ("Top 20 (of 0) scenario run times"). The scenario part of RUN_DIR names was missing for the same reason.

Now the report shows up in every run and lists the slowest scenarios, which is the data needed to compare the other changes in #394 and to balance parallel runs later.

A new scenario checks that run directories are named after their scenario again.

Scenario nodes no longer expose their feature file, so per-scenario run times
and the scenario part of run directory names were empty. Take the file from
the feature instead.

The report is written from an after-suite hook, whose output Behat only
prints for failed scenarios. Write it to the output stream directly so it
shows up with the default progress formatter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added bug Something isn't working scope:testing Related to testing labels Oct 30, 2026
@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Context/FeatureContext.php 0.00% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

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

Labels

bug Something isn't working scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant