diff --git a/.changeset/test-and-use-node-26.md b/.changeset/test-and-use-node-26.md new file mode 100644 index 000000000..84b08f556 --- /dev/null +++ b/.changeset/test-and-use-node-26.md @@ -0,0 +1,5 @@ +--- +"braintrust": patch +--- + +misc: Test and use node 26 diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index bc797f238..21b67c99e 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -88,7 +88,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-2025-vs2026] - node-version: [20, 22, 24] + node-version: [20, 22, 24, 26] env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.node-version == 20 && 'true' || '' }} steps: @@ -364,7 +364,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [20, 22, 24] + node-version: [20, 22, 24, 26] env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.node-version == 20 && 'true' || '' }} steps: @@ -392,7 +392,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [20, 22, 24] + node-version: [20, 22, 24, 26] env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.node-version == 20 && 'true' || '' }} steps: @@ -420,7 +420,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [20, 22, 24] + node-version: [20, 22, 24, 26] test-dir: [otel-v1, otel-v2] env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.node-version == 20 && 'true' || '' }} diff --git a/.tool-versions b/.tool-versions index 11fbea60c..acea374cc 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,4 +1,4 @@ -nodejs 24.15.0 +nodejs 26.8.2 npm 11.12.1 pnpm 10.33.0 deno 2.7.6 diff --git a/integrations/otel-js/Dockerfile.test b/integrations/otel-js/Dockerfile.test index c0d4d81ba..84c76f791 100644 --- a/integrations/otel-js/Dockerfile.test +++ b/integrations/otel-js/Dockerfile.test @@ -19,9 +19,8 @@ RUN if [ -z "$NODE_VERSION" ] || [ "$NODE_VERSION" = "REQUIRED" ]; then echo "Er RUN if [ -z "$TEST_DIR" ]; then echo "Error: TEST_DIR build arg is required (e.g., --build-arg TEST_DIR=otel-v1)" && exit 1; fi RUN if [ "$TEST_DIR" != "otel-v1" ] && [ "$TEST_DIR" != "otel-v2" ]; then echo "Error: TEST_DIR must be either 'otel-v1' or 'otel-v2', got: '$TEST_DIR'" && exit 1; fi -# Enable pnpm -RUN corepack enable -RUN corepack prepare pnpm@10 --activate +# Install pnpm (Corepack is not included in Node.js 26 images) +RUN npm install --global pnpm@10 # Install build dependencies RUN apt-get update && apt-get upgrade -y && apt-get install -y \