Skip to content

feat: test retry ui#764

Open
sonic16x wants to merge 1 commit into
masterfrom
add-test-retry-ui
Open

feat: test retry ui#764
sonic16x wants to merge 1 commit into
masterfrom
add-test-retry-ui

Conversation

@sonic16x
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

✅ Component tests succeed

Report

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

✅ E2E tests succeed

Report

@sonic16x sonic16x force-pushed the add-test-retry-ui branch 3 times, most recently from e495cce to 3efd9c9 Compare April 21, 2026 17:29
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 21, 2026

Open in StackBlitz

npm i https://pkg.pr.new/html-reporter@764

commit: 0323b05

@sonic16x sonic16x force-pushed the add-test-retry-ui branch 4 times, most recently from 2caeb8d to 0d8068b Compare April 22, 2026 08:10
@sonic16x sonic16x requested a review from shadowusr April 22, 2026 08:11
@sonic16x sonic16x force-pushed the add-test-retry-ui branch 7 times, most recently from 59db308 to cd1c4c4 Compare April 23, 2026 08:08
@sonic16x sonic16x force-pushed the add-test-retry-ui branch from cd1c4c4 to 0323b05 Compare April 23, 2026 08:23
@shadowusr
Copy link
Copy Markdown
Member

@codex review

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: 0323b05899

ℹ️ 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 thread lib/gui/server.ts
Comment on lines +167 to +168
for (let i = 0; i < repeatCount; i++) {
await app.run(tests, {retry: repeatCount === 1});
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 Restore non-blocking response for /run

The /run handler now awaits every app.run call before returning 200, which turns this endpoint into a long-lived request for the full test duration (and for all repeats). In environments with request timeouts (browser/network/proxy), this can cause the request to be aborted or retried while tests are still executing, leading to duplicate runs or flaky UI behavior; the previous contract in this handler was explicitly fire-and-forget.

Useful? React with 👍 / 👎.

const repeatCount = useSelector((state) => state.repeatCount);

const changeRepeatCount = (newValue: number): void => {
if (newValue >= MIN_REPEATER_COUNT && newValue < MAX_REPEATER_COUNT) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Permit the declared maximum repeat count

The guard uses newValue < MAX_REPEATER_COUNT, so MAX_REPEATER_COUNT itself (99) is unreachable from both typing and the increment button. This is an off-by-one bug: users can only set up to 98 even though the constant declares 99 as the limit.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

@shadowusr shadowusr left a comment

Choose a reason for hiding this comment

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

Loooks good to me other than that issue with retry button re-enabling between retries.

Comment thread lib/gui/server.ts
// do not wait for completion so that response does not hang and browser does not restart it by timeout
app.run(req.body);
for (let i = 0; i < repeatCount; i++) {
await app.run(tests, {retry: repeatCount === 1});
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What does passing retry change?

Also, the comments in code above and codex's are valid IMO. I've tried running slower tests on a large project and the request takes minutes to complete. I'm afraid it will timeout if I tried to run more tests.

⚠️ Another important issue I've noticed is that the retry button becomes active again after one retry is finished and we are waiting for a session, which is quite misleading, especially when getting a new session takes a while.

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.

2 participants