Skip to content

PYTHON-6196 Automated spec sync job should succeed instead of failing when there are no changes to commit - #3156

Merged
NoahStapp merged 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6196
Oct 27, 2026
Merged

NoahStapp merged 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6196

Conversation

@NoahStapp

Copy link
Copy Markdown
Contributor

PYTHON-6196

Changes in this PR

Make the automated spec sync Evergreen job succeed with a log message instead of failing when there are no changes to commit to a PR.

Test Plan

N/A.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

@NoahStapp
NoahStapp requested a review from a team as a code owner October 27, 2026 19:50
@NoahStapp
NoahStapp requested review from blink1073 and a balanced review from Copilot October 27, 2026 19:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were reported for the spec-sync automation update.

No open issues 🎉

What changed in this PR

Updates the Evergreen spec-sync automation to exit successfully when there are no changes to commit, rather than failing during commit creation.

Changes:

  • Checks for staged and unstaged changes before committing.
  • Logs the no-change outcome, prints the supplied file, and skips PR creation.
File Description
.evergreen/​scripts/​create-spec-pr.sh Adds an early successful exit when there are no changes to commit.

Review effort: Balanced

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NoahStapp
NoahStapp merged commit d6fc1bd into mongodb:main Oct 27, 2026
44 of 46 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.

3 participants