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.6.0 release #4060

Merged
merged 29 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9c5678d
chore(deps-dev): bump mysql2 from 3.2.4 to 3.9.7 (#4021)
dependabot[bot] May 13, 2024
c789a90
github-action: delete opentelemetry workflow (#4024)
v1v May 14, 2024
e8424cd
github-action: use actions/attest-build-provenance (#4025)
v1v May 14, 2024
c5d591c
docs: fix markup in changelog (#4023)
trentm May 14, 2024
7f98bdc
ci: build and push Docker image based on Chainguard base image (#4005)
v1v May 14, 2024
596307d
chore(deps): bump actions/attest-build-provenance from 1.1.1 to 1.1.2…
dependabot[bot] May 20, 2024
567f87a
chore(deps-dev): bump azure-functions-core-tools (#4028)
dependabot[bot] May 21, 2024
cc3dde1
chore(deps-dev): bump the eslint group with 2 updates (#4029)
dependabot[bot] May 21, 2024
ea5f3ae
chore(deps-dev): bump mongodb from 6.6.1 to 6.6.2 (#4032)
dependabot[bot] May 21, 2024
8b65931
chore(deps-dev): bump undici from 6.16.1 to 6.17.0 (#4031)
dependabot[bot] May 21, 2024
a38bb6c
chore(deps-dev): bump redis from 4.6.13 to 4.6.14 (#4030)
dependabot[bot] May 21, 2024
68b5a30
chore(deps-dev): bump pug from 3.0.2 to 3.0.3 (#4041)
dependabot[bot] May 27, 2024
ce59004
chore(deps-dev): bump mysql2 from 3.9.7 to 3.9.8 (#4042)
dependabot[bot] May 27, 2024
127fd2b
chore(deps-dev): bump undici from 6.17.0 to 6.18.1 (#4043)
dependabot[bot] May 27, 2024
b8f46bd
fix: mark published AWS Lambda layers as supporting 'nodejs20.x' runt…
trentm May 28, 2024
a43df20
ci: use updatecli with GitHub secrets (#4044)
v1v May 29, 2024
c40b136
github: use docker github secrets (#4047)
v1v May 30, 2024
ab5bf96
fix: patch @smithy/smithy-client@3 for release @aws-sdk/client-* rele…
trentm May 31, 2024
3f1cddd
chore(deps-dev): bump mongodb from 6.6.2 to 6.7.0 (#4051)
dependabot[bot] Jun 3, 2024
9739159
chore(deps-dev): bump @types/node from 20.12.2 to 20.14.0 (#4050)
dependabot[bot] Jun 3, 2024
334c3cb
chore(deps-dev): bump mysql2 from 3.9.8 to 3.10.0 (#4052)
dependabot[bot] Jun 3, 2024
afca5d1
chore(deps): bump docker/login-action in the github-actions group (#4…
dependabot[bot] Jun 3, 2024
4caa3ed
chore(deps-dev): bump undici from 6.18.1 to 6.18.2 (#4053)
dependabot[bot] Jun 3, 2024
ca6a231
chore(deps-dev): bump prettier from 3.2.5 to 3.3.0 (#4055)
dependabot[bot] Jun 3, 2024
76fdbe3
github-action: run buildkite action with GH secrets (#4056)
v1v Jun 4, 2024
d6748f1
chore(deps): bump import-in-the-middle from 1.7.4 to 1.8.0 (#4054)
dependabot[bot] Jun 4, 2024
d820e52
github-actions: remove snapshoty (#4057)
v1v Jun 4, 2024
cb73103
feat: make published Docker images multi-platform, add linux/arm64 pl…
trentm Jun 5, 2024
eb312b4
release 4.6.0 (#4059)
trentm Jun 5, 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: 1 addition & 1 deletion .ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ publish: validate-layer-name validate-aws-default-region
--layer-name "$(ELASTIC_LAYER_NAME)" \
--description "AWS Lambda Extension Layer for the Elastic APM Node.js Agent" \
--license "Apache-2.0" \
--compatible-runtimes nodejs18.x nodejs16.x nodejs14.x \
--compatible-runtimes nodejs20.x nodejs18.x nodejs16.x nodejs14.x \
--zip-file "fileb://./$(AWS_FOLDER)/elastic-apm-node-lambda-layer-$(GITHUB_REF_NAME).zip"

# Grant public access to the given LAYER in the given AWS region
Expand Down
36 changes: 0 additions & 36 deletions .ci/snapshoty.yml

This file was deleted.

11 changes: 5 additions & 6 deletions .ci/updatecli/updatecli.d/update-json-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ scms:
default:
kind: github
spec:
user: '{{ requiredEnv "GIT_USER" }}'
email: '{{ requiredEnv "GIT_EMAIL" }}'
user: '{{ requiredEnv "GITHUB_ACTOR" }}'
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
branch: "{{ .github.branch }}"
commitusingapi: true
apm:
kind: github
spec:
user: '{{ requiredEnv "GIT_USER" }}'
email: '{{ requiredEnv "GIT_EMAIL" }}'
user: '{{ requiredEnv "GITHUB_ACTOR" }}'
owner: "{{ .github.owner }}"
repository: "{{ .github.apm_repository }}"
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
branch: "{{ .github.branch }}"

sources:
Expand Down
11 changes: 5 additions & 6 deletions .ci/updatecli/updatecli.d/update-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@ scms:
default:
kind: github
spec:
user: '{{ requiredEnv "GIT_USER" }}'
email: '{{ requiredEnv "GIT_EMAIL" }}'
user: '{{ requiredEnv "GITHUB_ACTOR" }}'
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
branch: "{{ .github.branch }}"
commitusingapi: true

apm-data:
kind: github
spec:
user: '{{ requiredEnv "GIT_USER" }}'
email: '{{ requiredEnv "GIT_EMAIL" }}'
user: '{{ requiredEnv "GITHUB_ACTOR" }}'
owner: "{{ .github.owner }}"
repository: "{{ .github.apm_data_repository }}"
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
branch: "{{ .github.branch }}"

sources:
Expand Down
31 changes: 7 additions & 24 deletions .github/workflows/microbenchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,16 @@ permissions:
jobs:
microbenchmark:
runs-on: ubuntu-latest
# wait up to 1 hour
timeout-minutes: 60
timeout-minutes: 5
steps:
- id: buildkite
name: Run buildkite pipeline
uses: elastic/apm-pipeline-library/.github/actions/buildkite@current
- name: Run microbenchmark
uses: elastic/oblt-actions/buildkite/run@v1.5.0
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: apm-agent-microbenchmark
triggerMessage: "${{ github.repository }}@${{ github.ref_name }}"
waitFor: true
printBuildLogs: true
buildEnvVars: |
pipeline: "apm-agent-microbenchmark"
token: ${{ secrets.BUILDKITE_TOKEN }}
wait-for: false
env-vars: |
script=.ci/scripts/bench.sh
repo=apm-agent-nodejs
sha=${{ github.sha }}
BRANCH_NAME=${{ github.ref_name }}

- if: ${{ failure() }}
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
with:
url: ${{ secrets.VAULT_ADDR }}
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
channel: "#apm-agent-node"
message: |
:ghost: [${{ github.repository }}] microbenchmark *${{ github.ref_name }}* failed to run in Buildkite.
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)
22 changes: 0 additions & 22 deletions .github/workflows/opentelemetry.yml

This file was deleted.

56 changes: 48 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,24 @@ jobs:
with:
node-version: 'v16.20.2'

- uses: elastic/apm-pipeline-library/.github/actions/docker-login@current
# Setup a Docker "buildx" builder container, used by "build-push-action"
# below for multi-platform image builds. Notes on multi-platform images:
# https://github.com/elastic/apm-agent-nodejs/issues/4038#issuecomment-2130406402
- uses: docker/setup-buildx-action@v3

- name: Log in to the Elastic Container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: docker.elastic.co
secret: secret/observability-team/ci/docker-registry/prod
url: ${{ secrets.VAULT_ADDR }}
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
registry: ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
username: ${{ secrets.ELASTIC_DOCKER_USERNAME }}
password: ${{ secrets.ELASTIC_DOCKER_PASSWORD }}

- run: make -C .ci env

- run: make -C .ci dist

- name: Attest Lambda layer zip
uses: github-early-access/generate-build-provenance@main
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
with:
subject-path: "${{ github.workspace }}/build/aws/elastic-apm-node-lambda-layer-*.zip"

Expand All @@ -62,19 +66,55 @@ jobs:
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
platforms: linux/amd64,linux/arm64
file: 'Dockerfile'
push: true
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}
build-args: |
AGENT_DIR=/build/dist/nodejs

- name: Attest Docker image
uses: github-early-access/generate-build-provenance@main
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
with:
subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
subject-digest: ${{ steps.docker-push.outputs.digest }}
push-to-registry: true

- name: Extract metadata (tags, labels) (wolfi)
id: docker-meta-wolfi
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.DOCKER_IMAGE_NAME }}
flavor: |
latest=auto
suffix=-wolfi
tags: |
# "1.2.3" and "latest" Docker tags on push of git tag "v1.2.3"
type=semver,pattern={{version}}
# "edge" Docker tag on git push to default branch
type=edge

- name: Build and Push Docker Image (wolfi)
id: docker-push-wolfi
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
platforms: linux/amd64,linux/arm64
file: 'Dockerfile.wolfi'
push: true
tags: ${{ steps.docker-meta-wolfi.outputs.tags }}
labels: ${{ steps.docker-meta-wolfi.outputs.labels }}
build-args: |
AGENT_DIR=/build/dist/nodejs

- name: Attest Docker image (wolfi)
uses: github-early-access/generate-build-provenance@main
with:
subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
subject-digest: ${{ steps.docker-push-wolfi.outputs.digest }}
push-to-registry: true

- name: Read AWS vault secrets
uses: hashicorp/vault-action@v3.0.0
with:
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/snapshoty.yml

This file was deleted.

21 changes: 10 additions & 11 deletions .github/workflows/updatecli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current

- uses: elastic/oblt-actions/updatecli/run@v1
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: .ci/updatecli/updatecli.d
values: .ci/updatecli/values.yml
command: "--experimental apply --config .ci/updatecli/updatecli.d --values .ci/updatecli/values.yml"
env:
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}

- if: failure()
uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
uses: elastic/oblt-actions/slack/send@v1
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
slackChannel: "#apm-agent-node"
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: "#apm-agent-node"
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @robots-ci please look what's going on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
Loading