Skip to content

fix(eval): accept dispatched Free Tests runs - #3510

Closed
shahinsamiur wants to merge 1 commit into
garrytan:mainfrom
shahinsamiur:main
Closed

shahinsamiur wants to merge 1 commit into
garrytan:mainfrom
shahinsamiur:main

Conversation

@shahinsamiur

Copy link
Copy Markdown

Title

Fix readiness for workflow_dispatch Free Tests runs (#3508)

Description

Closes #3508

Problem

Readiness took into account only Free Tests runs triggered by pull_request. If a branch has a CHANGELOG-only conflict with the base branch, then GitHub might not create a pull-request merge ref and Free Tests have to be triggered manually by workflow_dispatch.

While the dispatched workflow could pass on the correct head SHA, readiness did not take into account that run and eventually timed out with Free Tests has not started on this head yet. As a result, verify --screen could mark the screen run as NOT-RUN.

Solution

  • Take into account Free Tests runs triggered by either pull_request or workflow_dispatch, if the head SHA is correct.
  • Maintain the existing behavior that takes into account the newest run that matches the criteria.
  • Make sure that the newer failed dispatched run would block readiness, even if there was a success before.
  • Add regression tests for dispatched-only successful runs and newer failed dispatched runs.

Testing

  • bun test test/eval-readiness.test.ts — 13 passed, 0 failed
  • git diff --check — passed.
  • bun test — not fully passing; test/section-capture-native-tools.test.ts encountered Cannot find module '@anthropic-ai/claude-agent-sdk' in its child test process.

The full-suite failure appears unrelated to this change, but its cause has not been confirmed.

@trunk-io

trunk-io Bot commented Oct 27, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@shahinsamiur

Copy link
Copy Markdown
Author

/trunk merge

@trunk-io

trunk-io Bot commented Oct 27, 2026

Copy link
Copy Markdown

An error occurred while submitting your PR to the queue: Only users that are a part of this repo's Trunk organization or have write permissions to the repo can submit a PR to the queue

@capy-ai

capy-ai Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Thank you for this fix. Main now counts dispatched Free Tests runs for readiness (FREE_TESTS_EVENTS in scripts/eval-readiness.ts), which landed in #3514 (v1.91.278.0), so I'm closing this as superseded. If something here is still missing on current main, please reply and we'll reopen.

@capy-ai capy-ai Bot closed this Oct 31, 2026
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.

eval-readiness: screens never start on CHANGELOG-conflicted heads (only pull_request Free Tests runs count)

1 participant