Skip to content

Commit 8fab3ca

Browse files
authored
Merge branch 'main' into main
2 parents bd276ca + 77ae5a3 commit 8fab3ca

File tree

18 files changed

+60
-42
lines changed

18 files changed

+60
-42
lines changed

.ci/updatecli/values.d/scm.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ scm:
33
owner: elastic
44
repository: apm-agent-python
55
branch: main
6-
7-
signedcommit: true
6+
commitusingapi: true
7+
# begin update-compose policy values
8+
user: obltmachine
9+
10+
# end update-compose policy values
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spec:
2+
files:
3+
- "updatecli-compose.yaml"

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
github-user: ${{ github.actor }}
3737
github-token: ${{ steps.get_token.outputs.token }}
3838
- name: Add community and triage labels
39-
if: contains(steps.is_elastic_member.outputs.result, 'false') && github.actor != 'dependabot[bot]' && github.actor != 'apmmachine'
39+
if: contains(steps.is_elastic_member.outputs.result, 'false') && github.actor != 'dependabot[bot]' && github.actor != 'elastic-observability-automation[bot]'
4040
uses: actions-ecosystem/action-add-labels@v1
4141
with:
4242
labels: |

.github/workflows/microbenchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
timeout-minutes: 5
2020
steps:
2121
- name: Run microbenchmark
22-
uses: elastic/oblt-actions/buildkite/run@v1.5.0
22+
uses: elastic/oblt-actions/buildkite/run@v1
2323
with:
2424
pipeline: "apm-agent-microbenchmark"
2525
token: ${{ secrets.BUILDKITE_TOKEN }}

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- uses: ./.github/actions/packages
2929
- name: generate build provenance
30-
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
30+
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
3131
with:
3232
subject-path: "${{ github.workspace }}/dist/*"
3333

@@ -47,12 +47,12 @@ jobs:
4747
path: dist
4848
- name: Upload pypi.org
4949
if: startsWith(github.ref, 'refs/tags')
50-
uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3
50+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
5151
with:
5252
repository-url: https://upload.pypi.org/legacy/
5353
- name: Upload test.pypi.org
5454
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
55-
uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3
55+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
5656
with:
5757
repository-url: https://test.pypi.org/legacy/
5858

@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v4
6767
- uses: ./.github/actions/build-distribution
6868
- name: generate build provenance
69-
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
69+
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
7070
with:
7171
subject-path: "${{ github.workspace }}/build/dist/elastic-apm-python-lambda-layer.zip"
7272

@@ -119,7 +119,7 @@ jobs:
119119
- uses: actions/checkout@v4
120120

121121
- name: Set up Docker Buildx
122-
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
122+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
123123

124124
- name: Log in to the Elastic Container registry
125125
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
@@ -135,7 +135,7 @@ jobs:
135135

136136
- name: Extract metadata (tags, labels)
137137
id: docker-meta
138-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
138+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
139139
with:
140140
images: ${{ env.DOCKER_IMAGE_NAME }}
141141
tags: |
@@ -146,7 +146,7 @@ jobs:
146146
147147
- name: Build and push image
148148
id: docker-push
149-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
149+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
150150
with:
151151
context: .
152152
platforms: linux/amd64,linux/arm64
@@ -158,7 +158,7 @@ jobs:
158158
AGENT_DIR=./build/dist/package/python
159159
160160
- name: generate build provenance (containers)
161-
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
161+
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
162162
with:
163163
subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
164164
subject-digest: ${{ steps.docker-push.outputs.digest }}
@@ -196,9 +196,9 @@ jobs:
196196
- github-draft
197197
steps:
198198
- id: check
199-
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
199+
uses: elastic/oblt-actions/check-dependent-jobs@v1
200200
with:
201-
needs: ${{ toJSON(needs) }}
201+
jobs: ${{ toJSON(needs) }}
202202
- if: startsWith(github.ref, 'refs/tags')
203203
uses: elastic/oblt-actions/slack/notify-result@v1
204204
with:

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
with:
5353
ref: ${{ inputs.ref || github.ref }}
5454
- id: generate
55-
uses: elastic/apm-pipeline-library/.github/actions/version-framework@current
55+
uses: elastic/oblt-actions/version-framework@v1
5656
with:
5757
# Use .ci/.matrix_python_full.yml if it's a scheduled workflow, otherwise use .ci/.matrix_python.yml
58-
versionsFile: .ci/.matrix_python${{ (github.event_name == 'schedule' || github.event_name == 'push' || inputs.full-matrix) && '_full' || '' }}.yml
58+
versions-file: .ci/.matrix_python${{ (github.event_name == 'schedule' || github.event_name == 'push' || inputs.full-matrix) && '_full' || '' }}.yml
5959
# Use .ci/.matrix_framework_full.yml if it's a scheduled workflow, otherwise use .ci/.matrix_framework.yml
60-
frameworksFile: .ci/.matrix_framework${{ (github.event_name == 'schedule' || github.event_name == 'push' || inputs.full-matrix) && '_full' || '' }}.yml
61-
excludedFile: .ci/.matrix_exclude.yml
60+
frameworks-file: .ci/.matrix_framework${{ (github.event_name == 'schedule' || github.event_name == 'push' || inputs.full-matrix) && '_full' || '' }}.yml
61+
excluded-file: .ci/.matrix_exclude.yml
6262
- name: Split matrix
6363
shell: python
6464
id: split
@@ -171,10 +171,10 @@ jobs:
171171
- windows
172172
steps:
173173
- id: check
174-
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
174+
uses: elastic/oblt-actions/check-dependent-jobs@v1
175175
with:
176-
needs: ${{ toJSON(needs) }}
177-
- run: ${{ steps.check.outputs.isSuccess }}
176+
jobs: ${{ toJSON(needs) }}
177+
- run: ${{ steps.check.outputs.is-success }}
178178
- if: failure() && (github.event_name == 'schedule' || github.event_name == 'push')
179179
uses: elastic/oblt-actions/slack/notify-result@v1
180180
with:

.github/workflows/updatecli.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ jobs:
3838
- uses: elastic/oblt-actions/updatecli/run@v1
3939
with:
4040
command: --experimental compose diff
41+
version-file: .tool-versions
4142
env:
4243
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
4344

4445
- uses: elastic/oblt-actions/updatecli/run@v1
4546
with:
4647
command: --experimental compose apply
48+
version-file: .tool-versions
4749
env:
4850
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
4951

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
updatecli v0.90.0

Dockerfile.wolfi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:bf163e1977002301f7b9fd28fe6837a8cb2dd5c83e4cd45fb67fb28d15d5d40f
1+
FROM docker.elastic.co/wolfi/chainguard-base:latest@sha256:3a6e9134cf3142da74153a522822c8fa56d09376e294627e51db8aa28f5d20d3
22
ARG AGENT_DIR
33
COPY ${AGENT_DIR} /opt/python

dev-utils/make-packages.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@
33
# Make a Python APM agent distribution
44
#
55

6-
echo "::group::Install wheel"
7-
pip install --user wheel
6+
echo "::group::Install build"
7+
pip install --user build
88
echo "::endgroup::"
99

10-
echo "::group::Building universal wheel"
11-
python setup.py bdist_wheel
12-
echo "::endgroup::"
13-
14-
echo "::group::Building source distribution"
15-
python setup.py sdist
10+
echo "::group::Building packages"
11+
python -m build
1612
echo "::endgroup::"

0 commit comments

Comments
 (0)