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

update 4.x from main for v4.5.1 docs build #3967

Merged
merged 44 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
6bafa00
chore(deps-dev): bump follow-redirects from 1.15.4 to 1.15.6 (#3912)
dependabot[bot] Mar 17, 2024
b57a65b
chore(deps-dev): bump mongodb from 6.4.0 to 6.5.0 (#3916)
dependabot[bot] Mar 18, 2024
2bf80e9
chore(deps-dev): bump @hapi/hapi from 21.3.3 to 21.3.6 (#3913)
dependabot[bot] Mar 18, 2024
453f345
chore(deps): bump require-in-the-middle from 7.2.0 to 7.2.1 (#3914)
dependabot[bot] Mar 18, 2024
54e5bb0
chore(deps-dev): bump undici from 6.7.1 to 6.9.0 (#3915)
dependabot[bot] Mar 18, 2024
dfc221b
chore(deps-dev): bump koa from 2.15.0 to 2.15.1 (#3917)
dependabot[bot] Mar 18, 2024
f0b6a09
chore(deps-dev): bump azure-functions-core-tools (#3918)
dependabot[bot] Mar 18, 2024
41c8dcf
ci: fix/refactor labeler workflow (#3921)
trentm Mar 19, 2024
990442a
fix(mongodb): resolve collection name for `getMore` command (#3919)
david-luna Mar 19, 2024
ca0e5b6
ci: fix 'test-nightly' job in 'edge' CI workflow (#3924)
trentm Mar 19, 2024
0ff46e4
fix: handle invalid chars in host header (#3923)
david-luna Mar 20, 2024
539c315
fix(ci): fix labeler.yml syntax (#3925)
trentm Mar 21, 2024
a7c9201
test(tedious): stop testing some older tedious versions with Node.js …
trentm Mar 22, 2024
d7d0e42
chore(deps-dev): bump the babel group with 1 update (#3929)
dependabot[bot] Mar 25, 2024
f746bd8
chore(deps-dev): bump the apollo group with 1 update (#3930)
dependabot[bot] Mar 25, 2024
7ee4acf
chore(deps-dev): bump typescript from 5.4.2 to 5.4.3 (#3931)
dependabot[bot] Mar 25, 2024
c8faa2e
chore(deps-dev): bump @hapi/hapi from 21.3.6 to 21.3.7 (#3932)
dependabot[bot] Mar 25, 2024
7ffffe4
chore(deps-dev): bump undici from 6.9.0 to 6.10.1 (#3934)
dependabot[bot] Mar 25, 2024
4c89dc8
chore(deps-dev): bump koa from 2.15.1 to 2.15.2 (#3935)
dependabot[bot] Mar 25, 2024
b49c460
chore(deps-dev): bump express from 4.18.3 to 4.19.1 (#3933)
dependabot[bot] Mar 25, 2024
42eef29
test: add healthcheck for zookeeper test service so 'npm test' works …
trentm Mar 25, 2024
b84e303
test: fix 'npm test' on Apple silicon Macs (#3939)
trentm Mar 25, 2024
adb9528
chore: add contributors to package.json (#3936)
david-luna Mar 26, 2024
d92184b
chore(deps): bump require-in-the-middle from 7.2.1 to 7.3.0 (#3943)
dependabot[bot] Apr 1, 2024
e6d7a27
chore(deps-dev): bump express from 4.19.1 to 4.19.2 (#3940)
dependabot[bot] Apr 1, 2024
af7e9d4
chore(deps-dev): bump the eslint group with 1 update (#3941)
dependabot[bot] Apr 1, 2024
f1d1828
chore(deps-dev): bump undici from 6.10.1 to 6.10.2 (#3942)
dependabot[bot] Apr 1, 2024
05a4f3d
chore(deps-dev): bump @types/node from 20.11.0 to 20.12.2 (#3944)
dependabot[bot] Apr 1, 2024
0ebe9da
chore(deps-dev): bump azure-functions-core-tools (#3945)
dependabot[bot] Apr 1, 2024
22890df
chore(deps-dev): bump @elastic/elasticsearch from 8.12.2 to 8.13.0 (#…
dependabot[bot] Apr 1, 2024
4fb65ad
chore(deps-dev): bump pg from 8.11.3 to 8.11.4 (#3947)
dependabot[bot] Apr 1, 2024
65ed23d
chore(deps-dev): bump undici from 6.10.2 to 6.11.1 (#3948)
dependabot[bot] Apr 4, 2024
1bbf5b2
test: drop testing of @elastic/elasticsearch-canary; update undici de…
trentm Apr 4, 2024
c1389aa
doc: update release process to use a PR for updating the docs-build b…
trentm Apr 5, 2024
04b2040
chore(deps): bump @opentelemetry/core from 1.22.0 to 1.23.0 (#3955)
dependabot[bot] Apr 8, 2024
07ee195
chore(deps-dev): bump @hapi/hapi from 21.3.7 to 21.3.8 (#3959)
dependabot[bot] Apr 8, 2024
39dec4d
chore(deps-dev): bump typescript from 5.4.3 to 5.4.4 (#3958)
dependabot[bot] Apr 8, 2024
7d0ad25
chore(deps): bump @opentelemetry/sdk-metrics in /test/opentelemetry-m…
dependabot[bot] Apr 8, 2024
f782572
chore(deps-dev): bump pg from 8.11.4 to 8.11.5 (#3957)
dependabot[bot] Apr 8, 2024
9e6e5af
chore: update otel deps (#3962)
trentm Apr 8, 2024
c0ed986
fix(undici): copy with undici@6.11.0 bug that removed req.addHeader (…
trentm Apr 9, 2024
335ab65
chore(deps-dev): bump eslint from 8.42.0 to 9.0.0; update to new esli…
dependabot[bot] Apr 10, 2024
526486f
fix(undici): avoid possible duplicate 'traceparent' header on instrum…
trentm Apr 11, 2024
3f25358
release 4.5.1 (#3966)
trentm Apr 11, 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
2 changes: 2 additions & 0 deletions .ci/docker/docker-compose-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ volumes:
driver: local
nodekafkadata:
driver: local
nodezookeeperdata:
driver: local
6 changes: 6 additions & 0 deletions .ci/docker/docker-compose-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ services:
extends:
file: docker-compose.yml
service: kafka
zookeeper:
extends:
file: docker-compose.yml
service: zookeeper
node_tests:
extends:
file: docker-compose-node-edge-test.yml
Expand Down Expand Up @@ -84,3 +88,5 @@ volumes:
driver: local
nodekafkadata:
driver: local
nodezookeeperdata:
driver: local
6 changes: 2 additions & 4 deletions .ci/docker/docker-compose-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ services:
file: docker-compose-node-test.yml
service: node_tests
depends_on:
- kafka
# TODO: uncomment this if health_check is necessary
# kafka:
# condition: service_healthy
kafka:
condition: service_healthy

volumes:
nodekafkadata:
Expand Down
20 changes: 13 additions & 7 deletions .ci/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:

mssql:
image: mcr.microsoft.com/mssql/server
platform: linux/amd64
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Very(!)Secure
Expand Down Expand Up @@ -149,6 +150,13 @@ services:
- nodezookeeperdata:/bitnami
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
healthcheck:
# Using 'srvr' instead of the more common 'ruok' because this bitnami
# image does not have 'ruok' on the '4lw.commands.whitelist' in zoo.cfg.
test: ["CMD-SHELL", "echo srvr | nc -w 2 localhost 2181"]
interval: 5s
timeout: 5s
retries: 5

kafka:
# https://hub.docker.com/r/bitnami/kafka/tags
Expand All @@ -168,14 +176,12 @@ services:
- KAFKA_CFG_DELETE_TOPIC_ENABLE=true
depends_on:
- zookeeper
# TODO: maybe not necessary but figure out how to do this
healthcheck:
# use netcat to check tcp connection available
# test: nc -z localhost 9093 || exit -1
# start_period: 15s
# interval: 5s
# timeout: 10s
# retries: 5
# Kafka healthcheck ideas from https://github.com/wurstmeister/kafka-docker/issues/167
test: kafka-cluster.sh cluster-id --bootstrap-server localhost:9092 || exit 1
interval: 30s
timeout: 10s
retries: 5

volumes:
nodepgdata:
Expand Down
111 changes: 0 additions & 111 deletions .eslintrc.json

This file was deleted.

34 changes: 14 additions & 20 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,30 @@ on:
pull_request_target:
types: [opened]

# 'issues: write' for https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue
# '*: write' permissions for https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue
permissions:
contents: read
issues: write
pull-requests: write

jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Add agent-nodejs label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: agent-nodejs

- name: Check team membership for user
uses: elastic/get-user-teams-membership@1.1.0
id: checkUserMember
- id: is_elastic_member
uses: elastic/apm-pipeline-library/.github/actions/is-member-elastic-org@current
with:
username: ${{ github.actor }}
team: 'apm'
usernamesToExclude: |
apmmachine
dependabot
dependabot[bot]
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
token: ${{ secrets.APM_TECH_USER_TOKEN }}

- name: Add community and triage labels
if: steps.checkUserMember.outputs.isTeamMember != 'true' && steps.checkUserMember.outputs.isExcluded != 'true'
uses: actions-ecosystem/action-add-labels@v1
if: contains(steps.is_elastic_member.outputs.result, 'false') && github.actor != 'dependabot[bot]'
uses: actions/github-script@v7
with:
labels: |
community
triage
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["community", "triage"]
})
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- run: npm ci
- run: npm run lint

Expand Down
28 changes: 16 additions & 12 deletions .tav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,24 +318,28 @@ pug:
- node test/instrumentation/modules/hapi/set-framework.test.js

tedious:
# latest majors subset of '>=1.9.0 <4.0.0 || >4.0.1 <11'
- versions: '1.9.0 || 1.15.0 || 2.7.1 || 3.0.1 || 4.2.0 || 5.0.3 || 6.7.1 || 7.0.0 || 8.3.1 || 9.2.3 || 10.0.0'
- versions:
include: '>=1 <11'
mode: latest-majors
node: '>=6'
commands: node test/instrumentation/modules/tedious.test.js
- versions: '11.0.0 || 11.8.0' # first and last subset of '11.x'
- versions:
include: '>=11 <12'
mode: latest-majors
node: '>=10.17.0'
commands: node test/instrumentation/modules/tedious.test.js
# first and last majors subset of '12.x || 13.x || 14.x'
- versions: '12.0.0 || 12.3.0 || 13.0.0 || 13.2.0 || 14.0.0 || 14.7.0 || >14.7.0 <15'
node: '>=12.3.0'
commands: node test/instrumentation/modules/tedious.test.js
- versions: '15.0.0 || 15.1.3 || >15.1.3 <16' # first and last majors subset of '15.x'
node: '>=14'
commands: node test/instrumentation/modules/tedious.test.js
- versions: '16.0.0 || 16.1.0 || >16.1.0 <17' # first and last majors subset of '16.x'
# Tedious v12,v13,v14 advertise a min-supported Node.js version of 12.3.0.
# Tedious v15 advertises a min-supported Node.js version of 14.
# However, as of @azure/core-rest-pipeline@1.15.0 they effectively have a
# min-working Node.js of >=16 (possibly >=18).
- versions:
include: '>=12 <17'
mode: latest-majors
node: '>=16'
commands: node test/instrumentation/modules/tedious.test.js
- versions: '>=17.0.0 <19' # first and last majors subset of '17.x' (as for now there is only v17.0.0)
- versions:
include: '>=17 <19'
mode: latest-majors
node: '18.x || >=20'
commands: node test/instrumentation/modules/tedious.test.js

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

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

[[release-notes-4.5.1]]
==== 4.5.1 - 2024/04/11

[float]
===== Bug fixes

* Fix path resolution for requests that contain invalid characters in its
host header. ({pull}3923[#3923])
* Fix span names for `getMore` command of mongodb. ({pull}3919[#3919])
* Fix undici instrumentation to cope with a bug in undici@6.11.0 where
`request.addHeader()` was accidentally removed. (It was re-added in
undici@6.11.1.) ({pull}3963[#3963])
* Update undici instrumentation to avoid possibly adding a *second*
'traceparent' header to outgoing HTTP requests, because this can break
Elasticsearch requests. ({issues}3964[#3964])


[[release-notes-4.5.0]]
==== 4.5.0 - 2024/03/13

Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,10 @@ A release involves the following published artifacts:
(The GitHub Actions CI "release" workflow will handle all the release
steps -- including the `npm publish`. See the appropriate run at:
https://github.com/elastic/apm-agent-nodejs/actions/workflows/release.yml)
4. If this is the for the latest major (currently `4.x`), then reset the latest
major branch to point to the current main, e.g.:
`git branch -f 4.x main && git push origin 4.x`
4. If this is for the latest major (currently `4.x`), then the "4.x" branch
needs to be updated to the same state as the release tag on "main".
**Open a PR to rebase all commits from main on to the "4.x" branch,
get it approved, merge with the rebase strategy.**
(The periodic [docs CI job](https://elasticsearch-ci.elastic.co/view/Docs/job/elastic+docs+master+build/)
uses this branch to update the [published docs](https://www.elastic.co/guide/en/apm/agent/nodejs/current/release-notes-4.x.html).)

Expand Down
Loading
Loading