Skip to content

Commit a293700

Browse files
committed
Merge branch 'master' into retry-inplace
2 parents 0344b1c + 7c67bb5 commit a293700

File tree

87 files changed

+1912
-412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1912
-412
lines changed

.evergreen/config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ functions:
106106
export LSAN_OPTIONS="suppressions=$LIBMONGOCRYPT_DIR/.lsan-suppressions"
107107
export VS_VERSION=${vs_version|}
108108
export VS_TARGET_ARCH=${vs_target_arch|amd64}
109-
export USE_NINJA=ON
109+
export USE_NINJA=${use_ninja|ON}
110110
env ${compile_env|} \
111111
bash "$EVG_DIR/env-run.sh" \
112112
bash "$EVG_DIR/build_all.sh"
@@ -151,7 +151,7 @@ functions:
151151
- command: "shell.exec"
152152
params:
153153
script: |-
154-
if test "$OS_NAME" != "windows"; then export USE_NINJA=ON; fi
154+
if test "$OS_NAME" != "windows"; then export USE_NINJA=${use_ninja|ON}; fi
155155
env ${compile_env|} CONFIGURE_ONLY=ON ${clang_env|CC=clang CXX=clang++} \
156156
bash libmongocrypt/.evergreen/build_all.sh
157157
./libmongocrypt/.evergreen/clang-tidy.sh
@@ -563,7 +563,7 @@ tasks:
563563
commands:
564564
- func: "fetch source"
565565
- func: "build python release"
566-
vars: { PYTHON: /opt/python/3.8/bin/python3 }
566+
vars: { PYTHON: /opt/python/3.9/bin/python3 }
567567
- func: "upload python release"
568568

569569
- name: "release-python-windows"
@@ -572,7 +572,7 @@ tasks:
572572
commands:
573573
- func: "fetch source"
574574
- func: "build python release"
575-
vars: { PYTHON: C:/python/Python38/python.exe }
575+
vars: { PYTHON: C:/python/Python39/python.exe }
576576
- func: "upload python release"
577577

578578
- name: "release-python-combine"
@@ -1624,9 +1624,12 @@ buildvariants:
16241624
run_on: macos-1100-arm64
16251625
expansions:
16261626
compile_env: MACOS_UNIVERSAL=ON CMAKE=/opt/homebrew/bin/cmake
1627+
# Disable Ninja to work around error "Bad CPU type in executable"
1628+
use_ninja: OFF
16271629
tasks:
16281630
- build-and-test-and-upload
1629-
- test-python
1631+
- name: test-python
1632+
distros: macos-14-arm64
16301633
- name: windows-vs2017-32bit
16311634
# Test Windows 32 bit builds for PHPC. PHPC builds libmongocrypt from source. See MONGOCRYPT-391.
16321635
display_name: "Windows VS 2017 32-bit compile"

.evergreen/earthly.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@
44

55
set -euo pipefail
66

7-
: "${EARTHLY_VERSION:=0.7.8}"
8-
9-
# Bring in the debian/ directory from the debian/unstable branch
10-
pushd "$(dirname "${BASH_SOURCE[0]}")/../"
11-
(git remote | grep -q upstream) || git remote add upstream https://github.com/mongodb/libmongocrypt
12-
git fetch upstream
13-
git checkout $(git rev-parse upstream/debian/unstable) -- debian
14-
popd
7+
: "${EARTHLY_VERSION:=0.8.16}"
158

169
# Calc the arch of the executable we want
1710
arch="$(uname -m)"

.evergreen/ensure-cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ _download_cmake() {
5858
url="$url_base/cmake-$CMAKE_VERSION-Linux-$arch.tar.gz"
5959
;;
6060
macos)
61-
url="$url_base/cmake-$CMAKE_VERSION-macos10.10-universal.tar.gz"
61+
url="$url_base/cmake-$CMAKE_VERSION-macos-universal.tar.gz"
6262
# We're pulling out the app bundle contents, so we need to skip more intermediate directories
6363
strip_components=3
6464
;;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
cmake_minimum_required (VERSION 3.5)
1+
cmake_minimum_required (VERSION 3.15...4.0)
22
project (app C)
33
add_executable (app app.c)
44
find_package (bson-1.0 1.11 REQUIRED)
55
message ("-- libbson found version \"${bson-1.0_VERSION}\"")
66
target_link_libraries (app PRIVATE mongo::bson_static)
77

88
find_package (mongocrypt REQUIRED)
9-
target_link_libraries (app PRIVATE mongo::mongocrypt)
9+
target_link_libraries (app PRIVATE mongo::mongocrypt)

.github/workflows/codeql-actions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ jobs:
2929
packages: read
3030
steps:
3131
- name: Checkout repository
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
3333
with:
3434
fetch-depth: 0
3535
ref: ${{ inputs.ref }}
3636
persist-credentials: false
3737

3838
# Initializes the CodeQL tools for scanning.
3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@39edc492dbe16b1465b0cafca41432d857bdb31a # v3
40+
uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3
4141
with:
4242
languages: actions
4343
build-mode: none
4444
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
4545
queries: security-extended
4646

4747
- name: Perform CodeQL Analysis
48-
uses: github/codeql-action/analyze@39edc492dbe16b1465b0cafca41432d857bdb31a # v3
48+
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3
4949
with:
5050
category: "/language:actions"

.github/workflows/codeql-python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ jobs:
3131
packages: read
3232
steps:
3333
- name: Checkout repository
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
with:
3636
fetch-depth: 0
3737
ref: ${{ inputs.ref }}
3838
persist-credentials: false
39-
- uses: actions/setup-python@v5
39+
- uses: actions/setup-python@v6
4040
with:
4141
python-version: 3.x
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@39edc492dbe16b1465b0cafca41432d857bdb31a # v3
45+
uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3
4646
with:
4747
languages: python
4848
build-mode: none
@@ -61,6 +61,6 @@ jobs:
6161
pip install dist/*.whl
6262
6363
- name: Perform CodeQL Analysis
64-
uses: github/codeql-action/analyze@39edc492dbe16b1465b0cafca41432d857bdb31a # v3
64+
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3
6565
with:
6666
category: "/language:python"

.github/workflows/dist-python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ jobs:
3939

4040
steps:
4141
- name: Checkout libmongocrypt
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v5
4343
with:
4444
fetch-depth: 0
4545
ref: ${{ inputs.ref }}
4646
persist-credentials: false
4747

48-
- uses: actions/setup-python@v5
48+
- uses: actions/setup-python@v6
4949
with:
50-
python-version: 3.8
50+
python-version: "3.9"
5151
cache: 'pip'
5252
cache-dependency-path: 'bindings/python/pyproject.toml'
5353
allow-prereleases: true
@@ -70,7 +70,7 @@ jobs:
7070
name: Collect dist files
7171
steps:
7272
- name: Download all workflow run artifacts
73-
uses: actions/download-artifact@v4
73+
uses: actions/download-artifact@v5
7474
- name: Flatten directory
7575
working-directory: .
7676
run: |

.github/workflows/release-python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ jobs:
8282
id-token: write
8383
steps:
8484
- name: Download all the dists
85-
uses: actions/download-artifact@v4
85+
uses: actions/download-artifact@v5
8686
with:
8787
name: all-dist-${{ github.run_id }}
8888
path: dist/
8989
- name: Publish package distributions to TestPyPI
90-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
90+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
9191
with:
9292
repository-url: https://test.pypi.org/legacy/
9393
skip-existing: true
9494
attestations: ${{ env.DRY_RUN }}
9595
- name: Publish package distributions to PyPI
9696
if: startsWith(env.DRY_RUN, 'false')
97-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
97+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
9898

9999
post-publish:
100100
needs: [publish]

.github/workflows/test-python.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
if: github.repository_owner == 'mongodb'
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727
with:
2828
persist-credentials: false
29-
- uses: actions/setup-python@v5
29+
- uses: actions/setup-python@v6
3030
- name: "Run pre-commit"
3131
working-directory: .
3232
run: |
@@ -43,21 +43,21 @@ jobs:
4343
fail-fast: false
4444
matrix:
4545
os: [ubuntu-latest, windows-latest, macos-latest]
46-
python-version: ["3.8", "3.13"]
46+
python-version: ["3.9", "3.13", "3.14"]
4747

4848
steps:
49-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v5
5050
with:
5151
fetch-depth: 0
5252
persist-credentials: false
5353
- name: Set up Python ${{ matrix.python-version }}
54-
uses: actions/setup-python@v5
54+
uses: actions/setup-python@v6
5555
with:
5656
allow-prereleases: true
5757
python-version: ${{ matrix.python-version }}
5858
- name: Build and test dist files
5959
run: |
60-
if [ "${{ matrix.python-version }}" == "3.13" ]; then
60+
if [ "${{ matrix.python-version }}" == "3.14" ]; then
6161
export PIP_PRE=1
6262
fi
6363
export LIBMONGOCRYPT_VERSION=$(cat ./scripts/libmongocrypt-version.txt)

.github/workflows/zizmor.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,13 @@ on:
99
jobs:
1010
zizmor:
1111
name: zizmor latest via Cargo
12-
if: github.repository_owner == 'mongodb'
1312
runs-on: ubuntu-latest
1413
permissions:
1514
security-events: write
1615
steps:
1716
- name: Checkout repository
18-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1918
with:
2019
persist-credentials: false
21-
- name: Setup Rust
22-
uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 # v1
23-
- name: Get zizmor
24-
run: cargo install zizmor
2520
- name: Run zizmor
26-
run: zizmor --format sarif . > results.sarif
27-
env:
28-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
- name: Upload SARIF file
30-
uses: github/codeql-action/upload-sarif@39edc492dbe16b1465b0cafca41432d857bdb31a # v3
31-
with:
32-
sarif_file: results.sarif
33-
category: zizmor
21+
uses: zizmorcore/zizmor-action@a016d81e77496751b5c04eb1e8f00214bd396553

0 commit comments

Comments
 (0)