Skip to content

Commit

Permalink
Merge v1.x into v2.x (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
mongodb-php-bot authored Oct 17, 2024
2 parents 450fd1c + 9afa132 commit 3305732
Show file tree
Hide file tree
Showing 12 changed files with 99 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .evergreen/config/build-task-groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ task_groups:

- name: "build-php-libmongoc"
# Keep this in sync with the actual number of libmongoc builds (typically 3) defined in _template-build-libmongoc.yml
max_hosts: 4
max_hosts: 2
setup_task: *build_setup
setup_task_can_fail_task: true
setup_task_timeout_secs: 1800
Expand Down
20 changes: 11 additions & 9 deletions .evergreen/config/generated/build/build-libmongoc.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 30 additions & 30 deletions .evergreen/config/generated/test-variant/libmongoc.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions .evergreen/config/generated/test-variant/php-full.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions .evergreen/config/templates/build/build-libmongoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- func: "compile driver"
vars:
PHP_VERSION: "%phpVersion%"
LIBMONGOC_VERSION: "1.28.0"
LIBMONGOC_VERSION: "1.28.1"
- func: "upload build"

- name: "build-php-%phpVersion%-libmongoc-next-stable"
Expand All @@ -22,11 +22,13 @@
LIBMONGOC_VERSION: "r1.28"
- func: "upload build"

- name: "build-php-%phpVersion%-libmongoc-latest"
tags: ["build-libmongoc", "php%phpVersion%"]
commands:
- func: "compile driver"
vars:
PHP_VERSION: "%phpVersion%"
LIBMONGOC_VERSION: "master"
- func: "upload build"
# TODO: this currently fails as libmongoc master needs changes to build directories
# We can re-enable this after switching to 1.29-dev
# - name: "build-php-%phpVersion%-libmongoc-latest"
# tags: ["build-libmongoc", "php%phpVersion%"]
# commands:
# - func: "compile driver"
# vars:
# PHP_VERSION: "%phpVersion%"
# LIBMONGOC_VERSION: "master"
# - func: "upload build"
60 changes: 30 additions & 30 deletions .evergreen/config/templates/test-variant/libmongoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,33 @@
execution_tasks:
- ".ocsp .7.0"

- name: test-debian12-php-%phpVersion%-libmongoc-latest
tags: ["test", "libmongoc", "debian", "x64", "php%phpVersion%"]
display_name: "Test: Debian 12, PHP %phpVersion%, libmongoc latest"
run_on: debian12-small
expansions:
FETCH_BUILD_VARIANT: "build-debian12"
FETCH_BUILD_TASK: "build-php-%phpVersion%-libmongoc-latest"
depends_on:
- variant: "build-debian12"
name: "build-php-%phpVersion%-libmongoc-latest"
tasks:
- ".standalone .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
- ".replicaset .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
- ".sharded .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
- ".loadbalanced .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
- "test-atlas-connectivity"
- ".ocsp !.4.4 !.5.0 !.6.0"
display_tasks:
- name: "test-ocsp-latest"
execution_tasks:
- ".ocsp .latest"
- name: "test-ocsp-rapid"
execution_tasks:
- ".ocsp .rapid"
- name: "test-ocsp-8.0"
execution_tasks:
- ".ocsp .8.0"
- name: "test-ocsp-7.0"
execution_tasks:
- ".ocsp .7.0"
# - name: test-debian12-php-%phpVersion%-libmongoc-latest
# tags: ["test", "libmongoc", "debian", "x64", "php%phpVersion%"]
# display_name: "Test: Debian 12, PHP %phpVersion%, libmongoc latest"
# run_on: debian12-small
# expansions:
# FETCH_BUILD_VARIANT: "build-debian12"
# FETCH_BUILD_TASK: "build-php-%phpVersion%-libmongoc-latest"
# depends_on:
# - variant: "build-debian12"
# name: "build-php-%phpVersion%-libmongoc-latest"
# tasks:
# - ".standalone .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
# - ".replicaset .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
# - ".sharded .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
# - ".loadbalanced .local !.4.0 !.4.2 !.4.4 !.5.0 !.6.0"
# - "test-atlas-connectivity"
# - ".ocsp !.4.4 !.5.0 !.6.0"
# display_tasks:
# - name: "test-ocsp-latest"
# execution_tasks:
# - ".ocsp .latest"
# - name: "test-ocsp-rapid"
# execution_tasks:
# - ".ocsp .rapid"
# - name: "test-ocsp-8.0"
# execution_tasks:
# - ".ocsp .8.0"
# - name: "test-ocsp-7.0"
# execution_tasks:
# - ".ocsp .7.0"
1 change: 0 additions & 1 deletion .evergreen/config/templates/test-variant/php-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
- ".standalone .local !.5.0 !.6.0 !.7.0 !.8.0 !.rapid !.latest"
- ".replicaset .local !.5.0 !.6.0 !.7.0 !.8.0 !.rapid !.latest"
- ".sharded .local !.5.0 !.6.0 !.7.0 !.8.0 !.rapid !.latest"
- ".loadbalanced .local !.5.0 !.6.0 !.7.0 !.8.0 !.rapid !.latest"
- ".ocsp !.5.0 !.6.0 !.7.0 !.8.0 !.rapid !.latest"
display_tasks:
- name: "test-ocsp-4.4"
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/windows/prepare-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ runs:
steps:
- name: Setup PHP SDK
id: setup-php
uses: php/setup-php-sdk@v0.9
uses: php/setup-php-sdk@v0.10
with:
version: ${{ inputs.version }}
arch: ${{ inputs.arch }}
ts: ${{ inputs.ts }}
deps: openssl
cache: true

- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
Expand Down
8 changes: 4 additions & 4 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -236,26 +236,26 @@ if test "$PHP_MONGODB" != "no"; then
PHP_MONGODB_MONGOCRYPT_VERSION_STRING="None"

if test "$PHP_MONGODB_SYSTEM_LIBS" != "no"; then
PKG_CHECK_MODULES([PHP_MONGODB_BSON], [libbson-1.0 >= 1.28.0], [
PKG_CHECK_MODULES([PHP_MONGODB_BSON], [libbson-1.0 >= 1.28.1], [
PHP_MONGODB_BSON_VERSION=`$PKG_CONFIG libbson-1.0 --modversion`
PHP_MONGODB_BSON_VERSION_STRING="System ($PHP_MONGODB_BSON_VERSION)"
PHP_MONGODB_CFLAGS="$PHP_MONGODB_CFLAGS $PHP_MONGODB_BSON_CFLAGS"
PHP_EVAL_LIBLINE($PHP_MONGODB_BSON_LIBS, MONGODB_SHARED_LIBADD)
AC_DEFINE(HAVE_SYSTEM_LIBBSON, 1, [Use system libbson])
],[
AC_MSG_ERROR([Could not find system library for libbson >= 1.28.0])
AC_MSG_ERROR([Could not find system library for libbson >= 1.28.1])
])

PKG_CHECK_MODULES([PHP_MONGODB_MONGOC], [libmongoc-1.0 >= 1.28.0], [
PKG_CHECK_MODULES([PHP_MONGODB_MONGOC], [libmongoc-1.0 >= 1.28.1], [
PHP_MONGODB_BSON_VERSION=`$PKG_CONFIG libbson-1.0 --modversion`
PHP_MONGODB_BSON_VERSION_STRING="System ($PHP_MONGODB_BSON_VERSION)"
PHP_MONGODB_CFLAGS="$PHP_MONGODB_CFLAGS $PHP_MONGODB_MONGOC_CFLAGS"
PHP_EVAL_LIBLINE($PHP_MONGODB_MONGOC_LIBS, MONGODB_SHARED_LIBADD)
AC_DEFINE(HAVE_SYSTEM_LIBMONGOC, 1, [Use system libmongoc])
],[
AC_MSG_ERROR(Could not find system library for libmongoc >= 1.28.0)
AC_MSG_ERROR(Could not find system library for libmongoc >= 1.28.1)
])

if test "$PHP_MONGODB_CLIENT_SIDE_ENCRYPTION" != "no"; then
Expand Down
16 changes: 8 additions & 8 deletions sbom.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@
"version": "1.11.0"
},
{
"bom-ref": "pkg:github/mongodb/[email protected].0",
"bom-ref": "pkg:github/mongodb/[email protected].1",
"externalReferences": [
{
"type": "distribution",
"url": "https://github.com/mongodb/mongo-c-driver/archive/refs/tags/1.28.0.tar.gz"
"url": "https://github.com/mongodb/mongo-c-driver/archive/refs/tags/1.28.1.tar.gz"
},
{
"type": "website",
"url": "https://github.com/mongodb/mongo-c-driver/tree/1.28.0"
"url": "https://github.com/mongodb/mongo-c-driver/tree/1.28.1"
}
],
"group": "mongodb",
"name": "mongo-c-driver",
"purl": "pkg:github/mongodb/[email protected].0",
"purl": "pkg:github/mongodb/[email protected].1",
"type": "library",
"version": "1.28.0"
"version": "1.28.1"
}
],
"dependencies": [
{
"ref": "pkg:github/mongodb/[email protected]"
},
{
"ref": "pkg:github/mongodb/[email protected].0"
"ref": "pkg:github/mongodb/[email protected].1"
}
],
"metadata": {
"timestamp": "2024-09-20T07:58:30.627473+00:00",
"timestamp": "2024-10-16T08:27:04.343416+00:00",
"tools": [
{
"externalReferences": [
Expand Down Expand Up @@ -90,7 +90,7 @@
]
},
"serialNumber": "urn:uuid:acb30d08-ee47-4ff0-b301-d66ef1f54082",
"version": 4,
"version": 5,
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.5"
Expand Down
2 changes: 1 addition & 1 deletion src/LIBMONGOC_VERSION_CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.28.0
1.28.1

0 comments on commit 3305732

Please sign in to comment.