Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PHPORM-287 Split Atlas Search CI workflow #3245

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jan 15, 2025

Fix PHPORM-287

  • Split Atlas-search tests into a distinct workflow
  • Create PHPUnit group for tests using Atlas Search
  • Remove host:port when connecting to localhost witch mongosh

@GromNaN GromNaN force-pushed the PHPORM-287 branch 5 times, most recently from a0636f2 to 97dd373 Compare January 15, 2025 17:26
@GromNaN GromNaN marked this pull request as ready for review January 15, 2025 17:26
@GromNaN GromNaN requested a review from a team as a code owner January 15, 2025 17:26
@GromNaN GromNaN requested a review from jmikola January 15, 2025 17:26
@GromNaN GromNaN changed the title PHPORM-287 Fix Atlas Search CI issues PHPORM-287 Split Atlas Search CI workflow Jan 15, 2025

- name: "Run tests"
run: |
export MONGODB_URI="mongodb://127.0.0.1:27017/?directConnection=true"
Copy link
Member Author

Choose a reason for hiding this comment

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

Related to #3205 (comment)

sleep 1
done
until docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.createCollection('connection_test') && db.getCollection('connection_test').createSearchIndex({mappings:{dynamic: true}})"; do
until docker exec --tty mongodb $MONGOSH_BIN --eval "db.runCommand({ ping: 1 })"; do
Copy link
Member Author

Choose a reason for hiding this comment

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

Host removed, related to #3205 (comment)

fi
./vendor/bin/phpunit --coverage-clover coverage.xml
export MONGODB_URI="mongodb://127.0.0.1:27017/?replicaSet=rs"
./vendor/bin/phpunit --coverage-clover coverage.xml --exclude-group atlas-search
Copy link
Member Author

Choose a reason for hiding this comment

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

By filtering on the group, there is less tests, and I don't get crashes in GitHub Actions.

os:
- "ubuntu-latest"
mongodb:
- "Atlas"
Copy link
Member

Choose a reason for hiding this comment

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

I don't see any reference to matrix.mongodb in this file. Is this needed for something else? If not, I think we can just remove the mongodb matrix axis.

@GromNaN GromNaN merged commit 2b2c70a into mongodb:5.x Jan 16, 2025
44 checks passed
@GromNaN GromNaN deleted the PHPORM-287 branch January 16, 2025 08:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants