豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

tests: reduce background task timing flakiness#37

Merged
dkundel-openai merged 1 commit intoopenai:mainfrom
VOIDXAI:voidxai/issue-33-runtime-test-flakiness
Mar 31, 2026
Merged

tests: reduce background task timing flakiness#37
dkundel-openai merged 1 commit intoopenai:mainfrom
VOIDXAI:voidxai/issue-33-runtime-test-flakiness

Conversation

@VOIDXAI
Copy link
Copy Markdown
Contributor

@VOIDXAI VOIDXAI commented Mar 31, 2026

Summary

  • relax the background-task status wait window in runtime.test.mjs
  • allow a longer window for the brokered cancellation test to observe an in-flight task
  • widen the fake interruptible task window so cancel assertions race against a real running task, not normal completion

Why

Closes #33.

The background-task runtime tests are too timing-sensitive on slower machines. Normal startup variance can leave a job in running long enough to fail assertions even when the implementation is correct.

Validation

  • manually reproduced the background task completion flow and verified the job reaches completed
  • manually reproduced the brokered cancellation flow and verified turnInterrupted: true plus the recorded interrupt in the fake Codex state

@VOIDXAI VOIDXAI requested a review from a team March 31, 2026 03:38
@dkundel-openai dkundel-openai merged commit 8e403f9 into openai:main Mar 31, 2026
trunkszi pushed a commit to trunkszi/codex-plugin-cc that referenced this pull request Apr 5, 2026
Co-authored-by: VOIDXAI <VOIDXAI@users.noreply.github.com>
trunkszi pushed a commit to trunkszi/codex-plugin-cc that referenced this pull request Apr 5, 2026
Co-authored-by: VOIDXAI <VOIDXAI@users.noreply.github.com>
trunkszi added a commit to trunkszi/codex-plugin-cc that referenced this pull request Apr 16, 2026
Merges 13 new upstream commits (one was a squashed-duplicate of fork openai#37):
- bc8fa66 avoid embedding large adversarial review diffs
- d216a5f scope default cancel selection to current Claude session
- 40d213d scope implicit resume-last selection to current Claude session
- 4bd783b gracefully handle unsupported thread/name/set on older Codex CLI
- dd335cb inherit process.env in app-server spawn when no explicit env is provided
- 62c351a use app-server auth status for Codex readiness
- f17e7f8 respect SHELL on Windows for Git Bash
- 594fd1e fix working-tree review crash on untracked directories
- c24afe8 honor --cwd when reporting session runtime
- 8e9a38c correct invalid 'xhigh' reasoning effort in README
- b115623 declare model in codex-rescue agent frontmatter
- 6a5c2ba quote \$ARGUMENTS in cancel/result/status commands
- 11a720b bump codex plugin version to 1.0.3

Conflict resolved in .claude-plugin/marketplace.json: keep fork-side
description & version (1.2.0) that cover auggie + gemini plugins; accept
upstream's per-plugin codex version bump to 1.0.3.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

Background task runtime tests are too timing-sensitive on slower machines

2 participants