Skip to content

PHPC-1159: Test on specific server versions in Travis CI #804

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

Merged
merged 2 commits into from
Apr 17, 2018

Conversation

kvwalker
Copy link
Contributor

@kvwalker kvwalker requested review from jmikola and derickr April 13, 2018 18:55
global:
- TEST_PHP_ARGS="-q -s output.txt -g XFAIL,FAIL,BORK,WARN,LEAK,SKIP -x --show-diff"
- REPORT_EXIT_STATUS=1
- php: 7.0
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for doing this with PHP 7.0, and not 7.2 for example?

Copy link
Member

Choose a reason for hiding this comment

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

No reason in particular. The test for PHPLIB just happened to use PHP 7.0 to test older server versions.


before_install:
- pip install "mongo-orchestration>=0.6.7,<1.0" --user `whoami`
Copy link
Contributor

Choose a reason for hiding this comment

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

This produced a warning in the Travis run: https://travis-ci.org/mongodb/mongo-php-driver/jobs/366254607#L553 — is that going to be a problem in the near future?

Copy link
Member

Choose a reason for hiding this comment

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

I expect this is due to older version of Python on the Travis images. Perhaps @ShaneHarvey can chime in here.

Copy link
Member

Choose a reason for hiding this comment

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

Per @behackett, we don't need to worry about this warning. A legitimate concern would be if the version of OpenSSL on these old CI environments causes connectivity issues due to not supporting TLS v1.2, but that's a completely different class of error.

global:
- TEST_PHP_ARGS="-q -s output.txt -g XFAIL,FAIL,BORK,WARN,LEAK,SKIP -x --show-diff"
- REPORT_EXIT_STATUS=1
- php: 7.0
Copy link
Member

Choose a reason for hiding this comment

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

No reason in particular. The test for PHPLIB just happened to use PHP 7.0 to test older server versions.


before_install:
- pip install "mongo-orchestration>=0.6.7,<1.0" --user `whoami`
Copy link
Member

Choose a reason for hiding this comment

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

I expect this is due to older version of Python on the Travis images. Perhaps @ShaneHarvey can chime in here.

@@ -34,12 +34,12 @@ $startTime = microtime(true);
echo "Awaiting results...\n";
$it->next();
printf("Waited for %.6f seconds\n", microtime(true) - $startTime);

// Sometimes the cursor will wait for 0.09999 seconds and sometimes it will wait for 0.1000.
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean 0.0099 and 0.01, which is 9.9ms and 10ms respectively? As-is, this comment doesn't agree with the pattern below, as you're always expecting 0.0 and that would conflict with a possible 0.1000.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's definitely what I meant, thanks!

@jmikola
Copy link
Member

jmikola commented Apr 16, 2018

This may need another rebase due to recent changes in tests/manager/manager-invalidnamespace.phpt. I believe I split up the SKIPIF functions each to their own line.

Beyond that, I'm LGTM but we can wait until @derickr acknowledges the comments above.

Copy link
Contributor

@derickr derickr left a comment

Choose a reason for hiding this comment

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

LGTM

@kvwalker kvwalker merged commit 22aef1c into mongodb:v1.4 Apr 17, 2018
kvwalker added a commit that referenced this pull request Apr 17, 2018
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