Skip to content

fix(ci): stop warning about supported reusable patches - #651

Merged
121watts merged 3 commits into
mainfrom
codex/dep-6538-patch-runtime
Oct 27, 2026
Merged

121watts merged 3 commits into
mainfrom
codex/dep-6538-patch-runtime

Conversation

@121watts

@121watts 121watts commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Retire the warning once reusable jobs can receive local changes.

What was happening

The CLI warned that reusable jobs would run without local changes, even when server support could apply their patch.

What happens now

Reusable calls retain their original YAML and send the patch key to the server. Ordinary jobs retain their existing patch step. A mixed-job regression covers the request and both job shapes.

Anything else

Release this after the API support in https://github.com/depot/api/pull/6303 is deployed. The local harness is in https://github.com/depot/api/pull/6304, and the documentation companion is https://github.com/depot/app/pull/4373.


Note

Low Risk
Small behavior change to CLI warnings and patch-step injection for reusable jobs; ordinary jobs unchanged and covered by a new integration test.

Overview
Removes the stderr warning that told users reusable workflow jobs would run without local patches, now that the CI API can apply workspace patches to those jobs via WorkspacePatchCacheKey.

In injectPatchStep, jobs that only have uses (no steps) are treated as supported reusable calls and skip both patch injection and any message; the existing “has no steps” warning remains for other stepless jobs. Adds TestRun_reusableJobKeepsPatchKeyWithoutWarning, an end-to-end test that runs mixed build + reusable jobs, asserts no reusable warning, patch upload, matching cache key on the run request, unchanged reusable YAML, and patch steps on the ordinary job.

Reviewed by Cursor Bugbot for commit 6d7bbd8. Bugbot is set up for automated code reviews on this repo. Configure here.

@linear-code

linear-code Bot commented Oct 27, 2026

Copy link
Copy Markdown

DEP-6538

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a4a4964. Configure here.

Comment thread pkg/cmd/ci/run_test.go
@121watts
121watts marked this pull request as ready for review October 27, 2026 12:07

@cursor cursor 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.

Risk: low. Approved. Cursor Bugbot’s check was skipped and its only finding is an unresolved low-severity test-quality note that does not need human review. No reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@121watts

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-10-27T12:32:36.534857Z 6d7bbd8 Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 6d7bbd842f

ℹ️ 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".

@121watts
121watts merged commit 396567e into main Oct 27, 2026
12 checks passed
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