Skip to content

Commit 0427b31

Browse files
authored
Merge branch 'main' into create-pull-request/update-javaagent
2 parents 8df4182 + fcb3003 commit 0427b31

File tree

231 files changed

+5554
-4140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+5554
-4140
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# See https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#example
2+
*.cmd text eol=crlf
3+
*.ps1 text eol=crlf

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ updates:
136136
directory: "/docker/elasticsearch"
137137
schedule:
138138
interval: "weekly"
139+
- package-ecosystem: "docker"
140+
directory: "/docker/envoy"
141+
schedule:
142+
interval: "weekly"
139143
- package-ecosystem: "docker"
140144
directory: "/docker/haproxy"
141145
schedule:

.github/workflows/auto-instrumentation.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- '!**.md'
1414
- 'packaging/**'
1515
- '!packaging/technical-addon/**'
16+
- '!packaging/dotnet-instr-deployer-add-on/**'
1617

1718
concurrency:
1819
group: auto-instrumentation-${{ github.event.pull_request.number || github.ref }}
@@ -22,7 +23,7 @@ env:
2223
PYTHON_VERSION: '3.13'
2324
PIP_VERSION: '24.2'
2425
REQUIREMENTS_PATH: "packaging/tests/requirements.txt"
25-
GO_VERSION: 1.22.10
26+
GO_VERSION: 1.23.6
2627

2728
jobs:
2829
cross-compile:

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ on:
1919
- 'go.sum'
2020
- '!**.md'
2121
- '!packaging/**'
22+
workflow_dispatch: # Allows manual execution of the workflow
2223

2324
concurrency:
2425
group: build-and-test-${{ github.event.pull_request.number || github.ref }}
2526
cancel-in-progress: true
2627

2728
env:
28-
GO_VERSION: 1.22.10
29+
GO_VERSION: 1.23.6
2930

3031
jobs:
3132
setup-environment:

.github/workflows/darwin-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
- '!packaging/**'
2020

2121
env:
22-
GO_VERSION: '1.22.10'
22+
GO_VERSION: '1.23.6'
2323

2424
concurrency:
2525
group: darwin-test-${{ github.event.pull_request.number || github.ref }}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: .NET Instrumentation Deployer Add-On
2+
3+
on:
4+
push:
5+
paths:
6+
- 'packaging/dotnet-instr-deployer-add-on/**'
7+
- '.github/workflows/dotnet-instr-deployer-add-on.yml'
8+
pull_request:
9+
paths:
10+
- 'packaging/dotnet-instr-deployer-add-on/**'
11+
- '.github/workflows/dotnet-instr-deployer-add-on.yml'
12+
workflow_dispatch:
13+
inputs:
14+
splunk_uf_version:
15+
description: 'Splunk UF version'
16+
required: false
17+
default: '9.4.0'
18+
splunk_uf_build_hash:
19+
description: 'Splunk UF build hash'
20+
required: false
21+
default: '6b4ebe426ca6'
22+
23+
env:
24+
GO_VERSION: 1.23.6
25+
# Provide default values for non-manually triggered executions
26+
splunk_uf_version: ${{ github.event.inputs.splunk_uf_version || '9.4.0' }}
27+
splunk_uf_build_hash: ${{ github.event.inputs.splunk_uf_build_hash || '6b4ebe426ca6' }}
28+
29+
jobs:
30+
build-pack-test-dotnet-deployer-ta:
31+
runs-on: windows-latest
32+
33+
steps:
34+
35+
- name: Check out the codebase.
36+
uses: actions/checkout@v4
37+
38+
- name: Set up Go
39+
uses: actions/setup-go@v5
40+
with:
41+
go-version: ${{ env.GO_VERSION }}
42+
43+
- name: Unit tests
44+
working-directory: ./packaging/dotnet-instr-deployer-add-on
45+
shell: bash
46+
run: make test
47+
48+
- name: Build and Package the .NET Instrumentation Deployer Add-On
49+
working-directory: ./packaging/dotnet-instr-deployer-add-on
50+
shell: bash
51+
run: make build-pack
52+
53+
- name: Upload the .NET Instrumentation Deployer Add-On
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: splunk_otel_dotnet_deployer
57+
path: ./packaging/dotnet-instr-deployer-add-on/out/distribution/splunk_otel_dotnet_deployer.tgz
58+
59+
# Run the .NET Instrumentation Deployer Add-On integration tests
60+
61+
- name: Download the Splunk UF MSI
62+
shell: bash
63+
run: |
64+
curl https://download.splunk.com/products/universalforwarder/releases/${{ env.splunk_uf_version }}/windows/splunkforwarder-${{ env.splunk_uf_version }}-${{ env.splunk_uf_build_hash }}-windows-x64.msi -o splunkforwarder.msi
65+
66+
- name: Install Splunk UF
67+
run: msiexec.exe /i "$PWD\splunkforwarder.msi" /qn /l*v install-log.txt AGREETOLICENSE=Yes USE_LOCAL_SYSTEM=1
68+
# USE_LOCAL_SYSTEM=1 is required when installing the UF since the install script needs to import the
69+
# Splunk.OTel.DotNet.psm1 that requires admin privileges.
70+
71+
- name: Start Splunk UF and check its status # Need to ensure that the UF is Ok before running the tests
72+
run: |
73+
Start-Sleep 30
74+
cd "${Env:ProgramFiles}\SplunkUniversalForwarder\bin"
75+
.\splunk.exe status
76+
.\splunk.exe start
77+
78+
- name: Run the .NET Instrumentation Deployer Add-On integration tests
79+
working-directory: ./packaging/dotnet-instr-deployer-add-on
80+
run: |
81+
./tests/integration/win-deployment-test.ps1 `
82+
-tgzFilePath ./out/distribution/splunk_otel_dotnet_deployer.tgz `
83+
-splunkInstallPath $(Join-Path "${Env:ProgramFiles}" "SplunkUniversalForwarder")
84+
85+
- name: Display the Deployer TA logs # It is expected to be relatively small
86+
if: always()
87+
run: |
88+
Get-Content "${Env:ProgramFiles}\SplunkUniversalForwarder\var\log\splunk\splunk_otel_dotnet_deployer.log"

.github/workflows/gendependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- '.github/workflows/scripts/gendependabot.sh'
99

1010
env:
11-
GO_VERSION: 1.22.10
11+
GO_VERSION: 1.23.6
1212

1313
jobs:
1414
gendependabot:

.github/workflows/integration-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
cancel-in-progress: true
2828

2929
env:
30-
GO_VERSION: "1.22.10"
30+
GO_VERSION: "1.23.6"
3131
jobs:
3232
agent-bundle-linux:
3333
runs-on: ${{ fromJSON('["ubuntu-24.04", "otel-arm64"]')[matrix.ARCH == 'arm64'] }}
@@ -263,6 +263,8 @@ jobs:
263263
env:
264264
TEST_OUTPUT: ${{ github.job }}-${{ matrix.PROFILE }}-${{ matrix.RUNNER }}.out
265265
steps:
266+
# Multiarch images require more disk space
267+
- uses: jlumbroso/[email protected]
266268
- uses: actions/checkout@v4
267269
with:
268270
fetch-depth: 0

.github/workflows/lint-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
env:
17-
GO_VERSION: 1.22.10
17+
GO_VERSION: 1.23.6
1818

1919
jobs:
2020
lint:

.github/workflows/linux-package-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
PYTHON_VERSION: '3.13'
2323
PIP_VERSION: '24.2'
2424
REQUIREMENTS_PATH: "packaging/tests/requirements.txt"
25-
GO_VERSION: 1.22.10
25+
GO_VERSION: 1.23.6
2626

2727
jobs:
2828
setup-environment:

0 commit comments

Comments
 (0)