-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPC-1739 Move from travis-ci to GitHub Actions #1199
Conversation
49bbd03
to
986cb7f
Compare
.evergreen/orchestration/configs/replica_sets/replicaset-old.json
Outdated
Show resolved
Hide resolved
This drops the legacy VM environment and remnants of the travis-ci config
This did not have the expected effect of preventing diff output for tests that expect failures, so it can be reverted.
Since mongo-orchestration will always bring its own certificates, we need to set the correct SSL certificate directory for our tests. This is skipped on GitHub Actions as we don't test SSL builds there (yet). If SSL_DIR was not set, tests requiring SSL will be skipped.
CONTRIBUTING.md
Outdated
|
||
``` | ||
make test-bootstrap | ||
MONGO_ORCHESTRATION_URI=http://some-host:1234/v1 make test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: either use example.com (what it's intended for) for localhost. In practice, I can't imagine MO would run somewhere other than localhost. This is generally just needed if the the port is changed. I think localhost:1234
would be fine.
tests/utils/skipif.php
Outdated
function skip_if_no_ssl_dir() | ||
{ | ||
$sslDir = getenv('SSL_DIR'); | ||
$sslDir !== false or exit('skip SSL_DIR environment not set'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "environment variable" or omit "environment" entirely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two nits, but LGTM.
PHPC-1739
This PR drops travis-ci.yml and adds GitHub Actions workflows for tests and clang-format. Tests currently only run on PHP 7.4 and 8.0, with the rest being tested on Evergreen.
Due to this change, we also had to remove custom mo configs, as the GitHub action leverages drivers-evergreen-tools. Tests are now stable both on GitHub Actions and Evergreen, with only selected config files needing overriding. Due to this, this PR includes cleanup scheduled in PHPC-1242, but I can extract this to a separate PR if necessary.
Since this PR targets v1.9 which isn't tested by Evergreen, here's a patch build running ALL tasks and variants: https://spruce.mongodb.com/version/6026605bc9ec4448427d4f1f/tasks