Skip to content

Commit d1a8086

Browse files
authored
Merge branch 'main' into NODE-7184
2 parents bb037fe + 2bd2c3a commit d1a8086

File tree

68 files changed

+905
-1368
lines changed

Some content is hidden

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

68 files changed

+905
-1368
lines changed

.evergreen/install-mongodb-client-encryption.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ pushd mongodb-client-encryption
1515
node --version
1616
npm --version
1717

18+
# https://github.com/nodejs/node-gyp#configuring-python-dependency
19+
. $DRIVERS_TOOLS/.evergreen/find-python3.sh
20+
NODE_GYP_FORCE_PYTHON=$(find_python3)
21+
export NODE_GYP_FORCE_PYTHON
22+
23+
echo "NODE_GYP_FORCE_PYTHON: $NODE_GYP_FORCE_PYTHON"
24+
1825
if [ -n "${LIBMONGOCRYPT_VERSION}" ]; then
1926
# nightly tests test with `latest` to test against the laster FLE build.
2027
npm run install:libmongocrypt -- --build --libVersion $LIBMONGOCRYPT_VERSION
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Build Documentation'
2+
description: 'Build documentation files'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Install Hugo
7+
shell: bash
8+
run: |
9+
mkdir hugo
10+
curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo
11+
echo "$(pwd)/hugo" >> $GITHUB_PATH
12+
13+
- name: Install Node and dependencies
14+
uses: mongodb-labs/drivers-github-tools/node/setup@v2
15+
16+
- name: Build Docs
17+
run: npm run build:docs -- --yes
18+
shell: bash

.github/workflows/build_and_commit_docs.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,27 @@ on:
55

66
name: Build and commit documentation
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
build-docs:
1014
# prevent subsequent commits from triggering the job multiple times
1115
concurrency:
1216
group: ci-${{ github.ref }}
1317
cancel-in-progress: true
14-
name: "Build documentation."
15-
uses: ./.github/workflows/build.yml
1618

17-
commit-docs:
18-
needs: [build-docs]
19-
permissions:
20-
contents: write
21-
pull-requests: write
22-
runs-on: ubuntu-latest
19+
runs-on: 'ubuntu-latest'
20+
2321
steps:
24-
- name: Open Pull Request
25-
uses: peter-evans/create-pull-request@v6
26-
with:
27-
title: 'docs: generate docs from latest main [skip-ci]'
28-
delete-branch: true
22+
- uses: actions/checkout@v5
23+
24+
- name: "Build documentation"
25+
uses: ./.github/actions/build_documentation
26+
27+
- name: Open Pull Request
28+
uses: peter-evans/create-pull-request@v6
29+
with:
30+
title: 'docs: generate docs from latest main [skip-ci]'
31+
delete-branch: true

.github/workflows/build_docs.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,4 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v5
18-
19-
- name: Install Hugo
20-
run: |
21-
mkdir hugo
22-
curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo
23-
echo "$(pwd)/hugo" >> $GITHUB_PATH
24-
25-
- name: Install Node and dependencies
26-
uses: mongodb-labs/drivers-github-tools/node/setup@v2
27-
28-
- name: Build Docs
29-
run: npm run build:docs -- --yes
30-
18+
- uses: ./.github/actions/build_documentation

test/integration/gridfs/gridfs.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
import { once } from 'node:events';
2+
13
import { expect } from 'chai';
2-
import { once } from 'events';
34

45
import {
56
type CommandStartedEvent,
67
type Db,
78
GridFSBucket,
89
type MongoClient,
910
ObjectId
10-
} from '../../mongodb';
11+
} from '../../../src';
1112
import { sleep } from '../../tools/utils';
1213

1314
describe('GridFS', () => {

0 commit comments

Comments
 (0)