Fix Evergreen safe_outputs patch application by pre-checking out target PR branch - #94
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/018a5ae0-20da-4497-87b7-3f1b2941c9c9 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions workflow safe_outputs
Fix Evergreen safe_outputs patch application by pre-checking out target PR branch
Apr 10, 2026
mrjf
marked this pull request as ready for review
April 10, 2026 18:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
safe_outputsjob in Evergreen was failing whenpush_to_pull_request_branchattempted to apply an empty patch (git am), caused by generating patch content from the wrong baseline. This updates Evergreen so agent work starts on the selected PR branch directly.Root cause alignment in workflow pre-flight
.github/workflows/evergreen.mdto switch to the selectedhead_branchbefore agent execution.Agent prompt contract update
Compiled workflow update
.github/workflows/evergreen.lock.ymlfrom the updated source workflow definition.