Skip to content

PYTHON-5950 Fix spec resync scripts to use main branch - #2951

Merged
aclark4life merged 1 commit into
mongodb:mainfrom
aclark4life:PYTHON-5950
Jul 22, 2026
Merged

aclark4life merged 1 commit into
mongodb:mainfrom
aclark4life:PYTHON-5950

Conversation

@aclark4life

@aclark4life aclark4life commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

PYTHON-5950

After switching the default branch from master to main the spec resync scripts still referenced master and failed to check out the repo (see PYTHON-5950).

Changes in this PR

  • In .evergreen/scripts/create-spec-pr.sh check out the new branch from origin/main and set the PR base to main.
  • In .evergreen/resync-specs.sh restore blocklisted/ignored files via git checkout main.

Test Plan

Full validation happens when the spec-resync Evergreen task next runs against main.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)? N/A — CI tooling change, no user-facing behavior.
  • Is there test coverage? N/A — CI shell scripts; see Test Plan.
  • Is any followup work tracked in a JIRA ticket? If so, add link(s). Contributor-doc / CI-trigger master references tracked in PYTHON-5952.

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?

@aclark4life
aclark4life marked this pull request as ready for review July 22, 2026 17:12
@aclark4life
aclark4life requested a review from a team as a code owner July 22, 2026 17:12
@aclark4life
aclark4life requested review from NoahStapp and Copilot July 22, 2026 17:12

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.

Pull request overview

Updates Evergreen spec resync tooling to use the repository’s default branch main instead of the legacy master, preventing checkout/PR creation failures after the default-branch rename.

Changes:

  • Update spec resync PR creation script to branch from origin/main and open PRs targeting main.
  • Update spec resync copy script to restore ignored files from main.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.evergreen/scripts/create-spec-pr.sh Switches checkout base to origin/main and PR base branch to main.
.evergreen/resync-specs.sh Restores ignored files from main instead of master during resync.

Comment on lines +68 to 69
printf "%s\n" $IGNORED_FILES | xargs git checkout main

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Out of scope?

@aclark4life
aclark4life merged commit bfe72d8 into mongodb:main Jul 22, 2026
56 of 58 checks passed
@aclark4life
aclark4life deleted the PYTHON-5950 branch July 22, 2026 17:26
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