Skip to content

Wait for keyboard actions before switching tabs in smoke tests - #7

Merged
Crokily merged 1 commit into
mainfrom
Colin/test-action-completion
Sep 14, 2026
Merged

Crokily merged 1 commit into
mainfrom
Colin/test-action-completion

Conversation

@Crokily

@Crokily Crokily commented Sep 14, 2026

Copy link
Copy Markdown
Owner

The post-merge Ubuntu/Herdr 0.7.5 smoke test could return to the source tab while the preceding keyboard action was still running. Its final focus request then selected Git again, causing the source-view assertion to time out.

Wait for the newly triggered open-tab action log to report success before changing tabs. Failed actions still fail the test, and the actual client rendering assertions remain in place. Plugin runtime behavior is unchanged.

Validation: local real-client smoke tests passed with Herdr 0.7.5 and 0.9.0. The validation record and changelog describe the race. Follow-up to #6.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-14T01:36:13.166514Z 2fdc784 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Crokily
Crokily merged commit 05468bd into main Sep 14, 2026
10 checks passed
@Crokily
Crokily deleted the Colin/test-action-completion branch September 14, 2026 01:33

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

Copy link
Copy Markdown

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: 2fdc784394

ℹ️ 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 tests/herdr-smoke-test.py
# Rendering can precede the launcher's final tab.focus RPC.
# Wait for that action to finish before the test changes tabs,
# or its late focus can undo our next source-tab selection.
wait_for(completed_action, 'keybinding action completion')

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 Allow the action's full timeout before failing

When an open-tab action takes between 8 and 10 seconds on a slow CI runner, this wait reports a failure even though the action is still within launcher.py's TOTAL_TIMEOUT = 10.0 and may complete successfully. Since this synchronization was added specifically to handle delayed action completion, use a timeout longer than the launcher's full deadline (plus log propagation margin) rather than the shared eight-second wait_for limit.

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