Skip to content
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

Merged
merged 13 commits into from
Feb 23, 2021
Merged

PHPC-1739 Move from travis-ci to GitHub Actions #1199

merged 13 commits into from
Feb 23, 2021

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Feb 12, 2021

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

@alcaeus alcaeus requested a review from jmikola February 12, 2021 08:57
@alcaeus alcaeus self-assigned this Feb 12, 2021
@alcaeus alcaeus force-pushed the phpc-1739 branch 2 times, most recently from 49bbd03 to 986cb7f Compare February 12, 2021 11:03
.evergreen/compile-unix.sh Show resolved Hide resolved
src/BSON/DBPointer.c Outdated Show resolved Hide resolved
bin/prep-release.php Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
.github/workflows/clang-format.yml Show resolved Hide resolved
.evergreen/run-tests.sh Outdated Show resolved Hide resolved
.evergreen/config.yml Show resolved Hide resolved
.evergreen/config.yml Show resolved Hide resolved
tests/utils/skipif.php Outdated Show resolved Hide resolved
.evergreen/config.yml Show resolved Hide resolved
tests/connect/standalone-x509-extract_username-002.phpt 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
Copy link
Member

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.

function skip_if_no_ssl_dir()
{
$sslDir = getenv('SSL_DIR');
$sslDir !== false or exit('skip SSL_DIR environment not set');
Copy link
Member

@jmikola jmikola Feb 23, 2021

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

Copy link
Member

@jmikola jmikola left a 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.

@alcaeus alcaeus merged commit ed31cba into v1.9 Feb 23, 2021
@alcaeus alcaeus deleted the phpc-1739 branch February 23, 2021 13:50
alcaeus added a commit that referenced this pull request Feb 23, 2021
* v1.9:
  PHPC-1739 Move from travis-ci to GitHub Actions (#1199)
  PHPC-1774 Fix truncation of PHP_VERSION constant in handshake metadata (#1202)
  PHPC-1775 Use correct size for strncpy in when initialising DBPointer (#1203)
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