Skip to content

refactor: simplify test processes run#753

Open
xepozz wants to merge 5 commits into
masterfrom
improve-test-runner
Open

refactor: simplify test processes run#753
xepozz wants to merge 5 commits into
masterfrom
improve-test-runner

Conversation

@xepozz
Copy link
Copy Markdown
Collaborator

@xepozz xepozz commented May 22, 2026

What was changed

  • sorted slow/fast tests
  • deleted temporal test server downloader, it's done by dload / composer get:binary
  • run temporal headless in ci
  • simplified symfony process handles
  • unblocked skipped tests

Why?

  • clean tech debt

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@xepozz xepozz requested review from a team, roxblnfk and wolfy-j as code owners May 22, 2026 16:25
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22e176e16e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +173 to +175
$output = $process->getOutput();
if (!\str_contains($output, 'RoadRunner server started')) {
return false;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove log-text gate from RoadRunner readiness check

The new readiness callback now returns early unless getOutput() contains RoadRunner server started, so environments that intentionally silence logs (e.g. tests/Functional/.rr.silent.yaml sets logs.mode: none) can never be marked ready even when workers are actually up. In that case startRoadRunner() will time out and exit, which regresses functional test startup compared to the previous worker-probing-only logic.

Useful? React with 👍 / 👎.

* @param array<string, mixed> $envs
*/
public function startRoadRunner(?array $rrCommand = null, int $commandTimeout = 10, array $envs = [], string $configFile = '.rr.yaml'): void
public function startRoadRunner(array $rrCommand, int $commandTimeout = 10, array $envs = [], string $configFile = '.rr.yaml'): void
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep startRoadRunner backward-compatible with default command

Changing startRoadRunner to require a non-optional $rrCommand removes the previous default ([$this->systemInfo->rrExecutable, 'serve']) and introduces a runtime BC break for existing consumers of the public Temporal\Testing\Environment API that called startRoadRunner() with no arguments. Given this class is autoloaded as part of the library, this should remain optional or be shimmed to avoid unexpected ArgumentCountError in downstream test harnesses.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant