Skip to content

wip#2988

Closed
comandeo-mongo wants to merge 1 commit intomongodb:masterfrom
comandeo-mongo:fix-gh-actions
Closed

wip#2988
comandeo-mongo wants to merge 1 commit intomongodb:masterfrom
comandeo-mongo:fix-gh-actions

Conversation

@comandeo-mongo
Copy link
Contributor

No description provided.

@comandeo-mongo comandeo-mongo marked this pull request as ready for review February 27, 2026 11:31
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner February 27, 2026 11:31
@comandeo-mongo comandeo-mongo marked this pull request as draft February 27, 2026 11:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the GitHub Actions workflow for running driver tests. The changes attempt to modernize the MongoDB setup step and add Python support, but contain several critical bugs that will prevent the workflow from executing successfully.

Changes:

  • Added Python 3.13 setup step to support Python-dependent tests (e.g., OCSP tests)
  • Changed MongoDB setup step to use a local action instead of the remote mongodb-labs action
  • Renamed the MongoDB setup step ID from "start-mongodb" to "setup-mongodb"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


- name: "Set up MongoDB"
id: setup-mongodb
uses: ./tests/drivers-evergreen-tools
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

The path to the drivers-evergreen-tools action is incorrect. According to .gitmodules, the submodule is located at ".mod/drivers-evergreen-tools", not "tests/drivers-evergreen-tools". The correct path should be "./mod/drivers-evergreen-tools" (note: without the leading dot in the submodule path).

Suggested change
uses: ./tests/drivers-evergreen-tools
uses: ./mod/drivers-evergreen-tools

Copilot uses AI. Check for mistakes.
- name: prepare test suite
run: bundle exec rake spec:prepare
env:
MONGODB_URI: ${{ steps.start-mongodb.outputs.cluster-uri }}
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

The step ID was changed from "start-mongodb" to "setup-mongodb" on line 33, but this step reference still uses the old ID "start-mongodb". This needs to be updated to "setup-mongodb" to match the new step ID.

Copilot uses AI. Check for mistakes.
run: ruby -Ilib -I.evergreen/lib -rbundler/setup -rserver_setup -e ServerSetup.new.setup_tags
if: ${{ matrix.topology == 'replica_set' }}
env:
MONGODB_URI: ${{ steps.start-mongodb.outputs.cluster-uri }}
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

The step ID was changed from "start-mongodb" to "setup-mongodb" on line 33, but this step reference still uses the old ID "start-mongodb". This needs to be updated to "setup-mongodb" to match the new step ID.

Copilot uses AI. Check for mistakes.
run: bundle exec rake spec:wait_for_sessions
if: ${{ matrix.topology == 'sharded_cluster' && matrix.mongodb == '3.6' }}
env:
MONGODB_URI: ${{ steps.start-mongodb.outputs.cluster-uri }}
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

The step ID was changed from "start-mongodb" to "setup-mongodb" on line 33, but this step reference still uses the old ID "start-mongodb". This needs to be updated to "setup-mongodb" to match the new step ID.

Copilot uses AI. Check for mistakes.
Comment on lines +29 to +30
with:
python-version: '3.13'
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

The indentation of the "with" keyword is incorrect. In GitHub Actions YAML, the "with" keyword should be aligned with "uses" (both at the same indentation level, not nested further).

Suggested change
with:
python-version: '3.13'
with:
python-version: '3.13'

Copilot uses AI. Check for mistakes.
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.

2 participants