Commit Graph

3944 Commits

Author SHA1 Message Date
Jeremy Mikola
ce2e43ea31 PHPC-1359: Prohibit startTransaction() on sharded clusters
In versions of the driver that do not support mongos pinning, we should prohibit starting a transaction on a sharded cluster (even if the server version might actually support transactions).
2019-06-03 10:30:43 -04:00
Jeremy Mikola
258f3c6075 Merge pull request #986 2019-05-31 13:56:16 -04:00
Jeremy Mikola
1f5a63073d PHPC-1387: 1.6.0-dev code fixes after merging v1.5 branch
This fixes a few things related to 04b1cc3e14
2019-05-31 13:10:16 -04:00
Jeremy Mikola
6197ee9bca Merge branch 'v1.5' 2019-05-31 12:46:42 -04:00
Jeremy Mikola
2198e55e44 Merge pull request #985 2019-05-31 12:46:29 -04:00
Jeremy Mikola
7e03567fee PHPC-1378: Omit CFLAGS/LDFLAGS in client metadata to avoid platform truncation 2019-05-31 11:32:57 -04:00
Jeremy Mikola
845edf6867 Merge branch 'v1.5' 2019-05-31 10:09:16 -04:00
Jeremy Mikola
95d2d5ce72 Merge pull request #983 2019-05-31 10:08:51 -04:00
Jeremy Mikola
04b1cc3e14 PHPC-1387: Consider error document for cursor exceptions
This allows executeQuery() to throw a CommandException, which exposes the error document.

In 1.6+, it will also ensure that error labels are set on any RuntimeException thrown during cursor iteration, which is relevant for transactions.
2019-05-30 13:58:29 -04:00
Jeremy Mikola
092d82dd95 Relocate "_t" in function name 2019-05-30 12:30:04 -04:00
Jeremy Mikola
29fafa49e6 Revise embed code for Coveralls badge 2019-05-30 11:12:48 -04:00
Jeremy Mikola
c74977ba50 Merge pull request #977 2019-05-15 15:49:24 -04:00
Jeremy Mikola
cad8292e35 PHPC-1373: Accessible WriteResult for executeBulkWrite socket error
executeBulkWrite() will now throw a BulkWriteException on top of any previous exception to ensure that a WriteResult can be attached. InvalidArgumentException is excluded, since that is only thrown before mongoc_bulk_operation_execute does IO (e.g. batch is empty).
2019-05-15 14:27:16 -04:00
Jeremy Mikola
abbabaf360 Remove unreachable code (per Coveralls)
This condition was never reached. Apart from code coverage, it's clear that an exception would not be thrown before this point since only libmongoc functions are called.
2019-05-14 14:21:27 -04:00
Jeremy Mikola
f8dee7d629 Merge pull request #979 from jmikola/tools-cleanup
Make use of use statements
2019-05-14 14:19:41 -04:00
Jeremy Mikola
b5193bef3d Make use of use statements 2019-05-14 12:49:24 -04:00
Jeremy Mikola
e655a135d4 Remove reference to ubuntu1604-arm64 in exclude_spec 2019-05-06 14:55:09 -04:00
Jeremy Mikola
4d4736e667 Merge pull request #976 from jmikola/disable-arm64-evg
Temporarily disable ARM64 hosts in Evergreen
2019-05-06 14:48:38 -04:00
Jeremy Mikola
4e8514daa7 Temporarily disable ARM64 hosts in Evergreen
ARM64 hosts currently do not have the PHP toolchain installed. This can be reverted once the toolchain is restored (see: PHPC-1372).
2019-05-06 14:45:23 -04:00
Jeremy Mikola
8cd0ce790f Merge pull request #975 2019-05-03 16:33:56 -04:00
Jeremy Mikola
1905d9d92d PHPC-1370: Relax assertion for unknown modifier error
Allow an optional suffix since MongoDB 4.1.x uses a more verbose error message.
2019-05-03 15:53:55 -04:00
Jeremy Mikola
9eb01c3cd5 Merge pull request #974 2019-05-03 14:01:43 -04:00
Jeremy Mikola
2104d6dff3 PHPC-1345: Revise fragile session ID assertion 2019-05-03 14:01:37 -04:00
Jeremy Mikola
46f66e9374 Merge pull request #973 2019-05-03 13:25:16 -04:00
Jeremy Mikola
ff57d46c85 PHPC-1364: Remove XFAIL for issue fixed in libmongoc 1.14 2019-05-03 12:44:27 -04:00
Jeremy Mikola
bde56bc3d0 Merge pull request #972 2019-05-02 12:18:28 -04:00
Jeremy Mikola
d145409286 PHPC-1364: Upgrade libmongoc to 1.14.0
Per src/libmongoc/doc/installing.rst, the VERSION_CURRENT and VERSION_RELEASED files must now be generated. This requires Python and the GitPython pip module to run src/libmongoc/build/calc_release_version.py. A new libmongoc-version-current Makefile target has been added.
2019-05-01 13:42:38 -04:00
Jeremy Mikola
d0cc6bd9b0 Merge pull request #965 2019-02-28 18:15:20 -05:00
Jeremy Mikola
7af437854a Revise test title 2019-02-28 18:15:09 -05:00
Jeremy Mikola
a831cc7a28 PHPC-1307: Exception interface extends Throwable 2019-02-28 18:15:09 -05:00
Jeremy Mikola
46e4d876f3 Merge pull request #964 2019-02-28 18:11:54 -05:00
Jeremy Mikola
b8b8b4496a PHPC-1301: Use bool for php_phongo_cursor_t.got_iterator 2019-02-28 15:32:28 -05:00
Jeremy Mikola
4a8a55ae5a Merge pull request #960 2019-02-28 15:30:39 -05:00
Jeremy Mikola
aa84f14587 PHPC-1341: Remove XFAIL for w:0 retryable write test 2019-02-28 14:53:26 -05:00
Jeremy Mikola
1432286478 Merge pull request #963 2019-02-28 13:50:24 -05:00
Jeremy Mikola
ecea12649a Refer to libmongoc error code in wire version test 2019-02-28 12:57:26 -05:00
Jeremy Mikola
666f2d061e PHPC-1180: Enable weak cert validation for Evergreen SSL envs 2019-02-28 12:56:14 -05:00
Jeremy Mikola
498707d7c5 Revert "PHPC-1180: Do not require weak cert validation for STANDALONE_SSL"
This reverts commit a0665971a8.
2019-02-28 12:55:06 -05:00
Jeremy Mikola
bb7b80ea4a PHPC-1180: Fix comparison operator in run-tests.sh 2019-02-27 21:02:27 -05:00
Jeremy Mikola
007f82b87c Merge pull request #962 2019-02-27 20:04:50 -05:00
Jeremy Mikola
a0665971a8 PHPC-1180: Do not require weak cert validation for STANDALONE_SSL
Per my original comment in the ticket, this URI option could conflict with older SSL-specific tests that relied on peer verification using PEM files. We'll still need to investigate those tests later, but it turns out this option wasn't needed for other tests to connect to an SSL server as previously assumed.
2019-02-27 20:02:25 -05:00
Jeremy Mikola
8dabad6016 Use sslAllowConnectionsWithoutCertificates for STANDALONE_SSL
This option was introduced in 3.0 and supersedes sslWeakCertificateValidation.
2019-02-27 20:02:19 -05:00
Jeremy Mikola
7add0373ee Remove sslAllowInvalidHostnames from STANDALONE_SSL params
sslWeakCertificateValidation is more permissive, so this may be redundant. MO's own configurations don't specify this for SSL environments.
2019-02-27 20:02:19 -05:00
Jeremy Mikola
9299dd95d6 PHPC-1180: Copy client.pem to MONGO_ORCHESTRATION_HOME/lib
This will allow Mongo Orchestration to connect to a server/cluster using SSL.
2019-02-27 20:02:19 -05:00
Jeremy Mikola
841fa20d1e Remove unused variables in mo.sh script
These were originally added in 10gen/mongo-orchestration@4f71d2913a, but it's not clear what they were used for since server configs specify their own paths and Mongo Orchestration relies on MONGO_ORCHESTRATION_HOME.
2019-02-26 18:48:29 -05:00
Jeremy Mikola
29a88768f7 Remove MO_PATH definition
This was originally added in 0e8cf55649 but should have been removed in 3678fa5236.
2019-02-26 18:46:43 -05:00
Jeremy Mikola
dcd472b055 Fix pip install command
The --user option does not solicit a value, so this was previously attempting to install a package sharing a name with the current user.
2019-02-26 18:44:52 -05:00
Jeremy Mikola
da98ee3d93 Merge pull request #959 from jmikola/evg-macos
Remove macOS from Evergreen matrix (pending PHPC-869)
2019-02-26 09:33:30 -05:00
Jeremy Mikola
28226bb234 Remove macOS from Evergreen matrix (pending PHPC-869) 2019-02-26 09:32:43 -05:00
Jeremy Mikola
265e64778f Merge pull request #958 2019-02-25 17:03:21 -05:00