Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update 4.x branch for v4.7.1 release #4149

Merged
merged 45 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
101339c
chore(deps-dev): bump mysql2 from 3.10.0 to 3.10.1 (#4095)
dependabot[bot] Jun 17, 2024
984e64c
chore(deps-dev): bump ws from 7.5.9 to 7.5.10 (#4094)
dependabot[bot] Jun 17, 2024
2766ae7
chore(deps-dev): bump undici from 6.18.2 to 6.19.0 (#4093)
dependabot[bot] Jun 17, 2024
1ba8d8e
chore(deps-dev): bump prettier from 3.3.1 to 3.3.2 (#4092)
dependabot[bot] Jun 17, 2024
eddcd0a
chore(deps-dev): bump @hapi/hapi from 21.3.9 to 21.3.10 (#4090)
dependabot[bot] Jun 17, 2024
46c45eb
chore(deps-dev): bump fastify from 4.27.0 to 4.28.0 (#4089)
dependabot[bot] Jun 17, 2024
9819424
test: fix 'localhost' ipv4 vs. ipv6 test failures in GH actions TAV t…
trentm Jun 17, 2024
46bdb36
chore: improve update-4x-branch.sh script instructions for the docs-u…
trentm Jun 17, 2024
5e89d82
Use keyless authentication in release (#4109)
reakaleek Jun 27, 2024
7b1da58
chore(deps): bump the github-actions group across 1 directory with 2 …
dependabot[bot] Jun 27, 2024
d935efc
chore(deps): bump import-in-the-middle from 1.8.0 to 1.8.1 (#4103)
dependabot[bot] Jun 27, 2024
6eeddf0
chore(deps-dev): bump tedious from 18.2.0 to 18.2.1 (#4104)
dependabot[bot] Jun 27, 2024
0996af8
chore(deps-dev): bump undici from 6.19.0 to 6.19.2 (#4100)
dependabot[bot] Jun 27, 2024
e572483
chore(deps-dev): bump the eslint group with 2 updates (#4088)
dependabot[bot] Jun 27, 2024
22d1c98
chore(deps): bump docker/build-push-action in the github-actions grou…
dependabot[bot] Jul 1, 2024
4406bde
chore(deps-dev): bump eslint from 9.5.0 to 9.6.0 in the eslint group …
dependabot[bot] Jul 1, 2024
1d1baff
chore(deps-dev): bump mongodb from 6.7.0 to 6.8.0 (#4116)
dependabot[bot] Jul 1, 2024
fb73ca7
chore(deps-dev): bump fastify from 4.28.0 to 4.28.1 (#4117)
dependabot[bot] Jul 1, 2024
7e1f7b9
chore(deps-dev): bump azure-functions-core-tools (#4114)
dependabot[bot] Jul 2, 2024
c8adcae
test: update Node.js versions with which we test the esclient (#4110)
trentm Jul 2, 2024
0e02cf2
chore(deps): update otel deps (#4111)
trentm Jul 2, 2024
6702d2b
chore(deps-dev): bump @elastic/elasticsearch from 8.13.1 to 8.14.0 (#…
dependabot[bot] Jul 3, 2024
7852c96
chore(deps-dev): bump typescript from 5.4.5 to 5.5.2 (#4102)
dependabot[bot] Jul 3, 2024
670e782
chore(deps-dev): bump typescript from 5.5.2 to 5.5.3 (#4128)
dependabot[bot] Jul 8, 2024
6392400
chore(deps-dev): bump mysql2 from 3.10.1 to 3.10.2 (#4127)
dependabot[bot] Jul 8, 2024
41bd307
chore(deps-dev): bump redis from 4.6.14 to 4.6.15 (#4126)
dependabot[bot] Jul 8, 2024
2556f2e
chore(deps-dev): bump tedious from 18.2.1 to 18.2.3 (#4125)
dependabot[bot] Jul 8, 2024
6c5d1e9
chore(deps): bump docker/build-push-action in the github-actions grou…
dependabot[bot] Jul 8, 2024
1e7d078
chore(deps-dev): bump tape from 5.7.5 to 5.8.1 (#4091)
dependabot[bot] Jul 8, 2024
0edf02d
chore: remove nyc package (#4120)
david-luna Jul 9, 2024
8af0f3c
updatecli: use shared policy (#4121)
v1v Jul 9, 2024
ecfe471
chore(deps-dev): bump eslint from 9.6.0 to 9.7.0 in the eslint group …
dependabot[bot] Jul 15, 2024
691d393
chore(deps-dev): bump prettier from 3.3.2 to 3.3.3 (#4134)
dependabot[bot] Jul 15, 2024
687a0ad
chore(deps-dev): bump tedious from 18.2.3 to 18.2.4 (#4132)
dependabot[bot] Jul 15, 2024
709af36
chore(deps): bump actions/attest-build-provenance (#4130)
dependabot[bot] Jul 16, 2024
dfd0e5a
[Automation] Update JSON server schema specs (#4122)
obltmachine Jul 16, 2024
e946e2c
chore(deps): bump import-in-the-middle from 1.8.1 to 1.9.0 (#4133)
dependabot[bot] Jul 17, 2024
ab90c6b
chore(deps): pin lru-cache ver, *downgrade* rimraf and glob to ensure…
trentm Jul 17, 2024
1cc9d2e
fix: add missing methods to noop-transaction (#4098)
lytc Jul 23, 2024
9e1c24b
chore(deps): bump import-in-the-middle from 1.9.0 to 1.9.1 (#4142)
dependabot[bot] Jul 23, 2024
455a401
chore(deps-dev): bump mysql2 from 3.10.2 to 3.10.3 (#4141)
dependabot[bot] Jul 23, 2024
040d4dc
chore(deps): bump docker/build-push-action (#4144)
dependabot[bot] Jul 23, 2024
ab6f3a0
chore(deps-dev): bump eslint-plugin-prettier in the eslint group (#4145)
dependabot[bot] Jul 23, 2024
1a326b9
ci: lock on older mssql/server Docker image to avoid healthcheck brea…
trentm Jul 24, 2024
d6cbccc
release 4.7.1 (#4146)
trentm Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .ci/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ services:
retries: 30

mssql:
image: mcr.microsoft.com/mssql/server
# Cumulative update 14 (CU14), released 2024-07-23, breaks the healthcheck.
# See https://github.com/elastic/apm-agent-nodejs/issues/4147
image: mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04
platform: linux/amd64
environment:
- ACCEPT_EULA=Y
Expand Down
8 changes: 1 addition & 7 deletions .ci/scripts/docker-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,8 @@ node --version
npm --version
npm_ci

# Attempt to provide junit-formatted test results, for Jenkins' "Test Results"
# and other features like flaky-test reporting.
if [[ -n ${TAV} ]]; then
npm run test:tav
# Currently the TAV tests do not support TAP or junit-formatted output.
else
rm -rf ./test_output
mkdir ./test_output
nyc node test/test.js -o ./test_output
ls test_output/*.tap | while read f; do cat $f | ./node_modules/.bin/tap-junit > $f.junit.xml; done
node test/test.js
fi
83 changes: 0 additions & 83 deletions .ci/updatecli/updatecli.d/update-json-specs.yml

This file was deleted.

85 changes: 0 additions & 85 deletions .ci/updatecli/updatecli.d/update-specs.yml

This file was deleted.

1 change: 1 addition & 0 deletions .ci/updatecli/values.d/apm-data-spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apm_schema_specs_path: test/integration/api-schema/apm-server-schema
1 change: 1 addition & 0 deletions .ci/updatecli/values.d/apm-json-specs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apm_json_specs_path: test/fixtures/json-specs
7 changes: 7 additions & 0 deletions .ci/updatecli/values.d/scm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
scm:
enabled: true
owner: elastic
repository: apm-agent-nodejs
branch: main

signedcommit: true
12 changes: 0 additions & 12 deletions .ci/updatecli/values.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ updates:
update-types: ["version-update:semver-patch"]
- dependency-name: "@types/*"
update-types: ["version-update:semver-patch"]
# Packages whose major versions have dropped support for Node.js versions
# that this package needs.
- dependency-name: "glob" # glob@10 min is 14.20, we need >=14.17; glob@11 dropped 14, 16, 18
update-types: ["version-update:semver-major"]
- dependency-name: "lru-cache" # later [email protected] toyed with dropping 14.x, we pin to a specific early 10.x; lru-cache@11 dropped 14, 16, 18
- dependency-name: "rimraf" # rimraf@5 min is 14.20, we need >=14.17; rimraf@6 dropped 14, 16, 18
update-types: ["version-update:semver-major"]
groups:
aws-sdk:
dependency-type: "development"
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
runs-on: ubuntu-latest
env:
DOCKER_IMAGE_NAME: docker.elastic.co/observability/apm-agent-nodejs
# TODO: use keyless
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -47,7 +44,7 @@ jobs:
- run: make -C .ci dist

- name: Attest Lambda layer zip
uses: actions/attest-build-provenance@49df96e17e918a15956db358890b08e61c704919 # v1.2.0
uses: actions/attest-build-provenance@5e9cb68e95676991667494a6a4e59b8a2f13e1d0 # v1.3.3
with:
subject-path: "${{ github.workspace }}/build/aws/elastic-apm-node-lambda-layer-*.zip"

Expand All @@ -66,7 +63,7 @@ jobs:

- name: Build and Push Docker Image
id: docker-push
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12 # v6.4.1
with:
context: .
platforms: linux/amd64,linux/arm64
Expand All @@ -78,7 +75,7 @@ jobs:
AGENT_DIR=/build/dist/nodejs

- name: Attest Docker image
uses: actions/attest-build-provenance@49df96e17e918a15956db358890b08e61c704919 # v1.2.0
uses: actions/attest-build-provenance@5e9cb68e95676991667494a6a4e59b8a2f13e1d0 # v1.3.3
with:
subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
subject-digest: ${{ steps.docker-push.outputs.digest }}
Expand All @@ -100,7 +97,7 @@ jobs:

- name: Build and Push Docker Image (wolfi)
id: docker-push-wolfi
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12 # v6.4.1
with:
context: .
platforms: linux/amd64,linux/arm64
Expand All @@ -112,12 +109,16 @@ jobs:
AGENT_DIR=/build/dist/nodejs

- name: Attest Docker image (wolfi)
uses: actions/attest-build-provenance@49df96e17e918a15956db358890b08e61c704919 # v1.2.0
uses: actions/attest-build-provenance@5e9cb68e95676991667494a6a4e59b8a2f13e1d0 # v1.3.3
with:
subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
subject-digest: ${{ steps.docker-push-wolfi.outputs.digest }}
push-to-registry: true

- uses: elastic/oblt-actions/aws/[email protected]
with:
aws-account-id: "267093732750"

- name: Publish AWS lambda (only for tag release)
if: startsWith(github.ref, 'refs/tags')
run: make -C .ci publish-in-all-aws-regions create-arn-file
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,6 @@ jobs:
- run: npm ls --all || true
- name: npm test
run: npm test
- uses: inception-health/otel-upload-test-artifact-action@v1
if: always()
continue-on-error: true
with:
jobName: "test-vers (${{ matrix.node }})"
stepName: "npm test"
path: "test_output/*.junit.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}

test-windows:
runs-on: windows-latest
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/updatecli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,29 @@ permissions:
contents: read

jobs:
bump:
compose:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v4

- uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: --experimental compose diff
env:
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}

- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: "--experimental apply --config .ci/updatecli/updatecli.d --values .ci/updatecli/values.yml"
command: --experimental compose apply
env:
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}

Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
/test-suite-output.tap

# Folders to ignore
/.nyc_output
/test_output
/build
node_modules
/test/benchmarks/.tmp
Expand Down
6 changes: 5 additions & 1 deletion .tav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,19 @@ elasticsearch:
# "8.2.0" because they are stuck with stack version numbers. However,
# semver (and TAV) consider "-patch.N" to be a *prereleases*. This
# leads to some tortured "versions:" ranges below.
# - Version 8.11.0 dropped node v14 and v16 support.
'@elastic/elasticsearch':
- versions: '>=7.0.0 <7.7.0 || >7.7.0 <7.12.0'
commands: node test/instrumentation/modules/@elastic/elasticsearch.test.js
- versions: '>=7.12.0 <8.2'
node: '>=12.0.0'
commands: node test/instrumentation/modules/@elastic/elasticsearch.test.js
- versions: '>=8.2.0-patch.1 <8.2.0 || >8.2.0'
- versions: '>=8.2.0-patch.1 <8.2.0 || >8.2.0 <8.11.0'
node: '>=14.0.0'
commands: node test/instrumentation/modules/@elastic/elasticsearch.test.js
- versions: '>=8.11.0'
node: '>=18.0.0'
commands: node test/instrumentation/modules/@elastic/elasticsearch.test.js

handlebars:
versions:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ Notes:

See the <<upgrade-to-v4>> guide.


[[release-notes-4.7.1]]
==== 4.7.1 - 2024/07/24

[float]
===== Bug fixes

- Update import-in-the-middle internally-used library to v1.9.1. This can
fix usage with ESM code (see <<esm>>) in some cases, e.g. usage with
https://github.com/elastic/apm-agent-nodejs/issues/4143[Nuxt 3].


[[release-notes-4.7.0]]
==== 4.7.0 - 2024/06/13

Expand Down
Loading