Skip to content

Commit

Permalink
Test on Windows 2025 (signalfx#5761)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Jan 8, 2025
1 parent 85d45c7 commit 88a8c31
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/win-installer-script-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.OS }}
strategy:
matrix:
OS: [ "windows-2022" ]
OS: [ "windows-2022", "windows-2025" ]
MODE: [ "agent", "gateway" ]
WITH_FLUENTD: [ "true", "false" ]
fail-fast: false
Expand Down
47 changes: 31 additions & 16 deletions .github/workflows/win-package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ jobs:
./bin/*
agent-bundle-windows:
runs-on: windows-2022
runs-on: ${{ matrix.OS }}
strategy:
matrix:
OS: [ "windows-2022", "windows-2025" ]
env:
PIP_CACHE_DIR: ${{ github.workspace }}/.cache/pip
steps:
Expand All @@ -83,7 +86,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: agent-bundle-windows
name: agent-bundle-windows-${{ matrix.OS }}
path: ./dist/agent-bundle_windows_amd64.zip

msi-custom-actions:
Expand Down Expand Up @@ -124,6 +127,9 @@ jobs:

msi-build:
runs-on: ubuntu-24.04
strategy:
matrix:
OS: [ "windows-2022", "windows-2025" ]
needs: [cross-compile, agent-bundle-windows, msi-custom-actions]
steps:
- name: Check out the codebase.
Expand All @@ -146,7 +152,7 @@ jobs:
- name: Downloading agent-bundle-windows
uses: actions/download-artifact@v4
with:
name: agent-bundle-windows
name: agent-bundle-windows-${{ matrix.OS }}
path: ./dist

- name: Downloading msi-custom-actions
Expand All @@ -163,11 +169,14 @@ jobs:
- name: Uploading msi build artifacts
uses: actions/upload-artifact@v4
with:
name: msi-build
name: msi-build-${{ matrix.OS }}
path: ./dist/*.msi

dotnet-zeroconfig-e2e-test:
runs-on: windows-2022
runs-on: ${{ matrix.OS }}
strategy:
matrix:
OS: [ "windows-2022", "windows-2025" ]
needs: [msi-build]
steps:
- name: Check out the codebase.
Expand All @@ -187,7 +196,7 @@ jobs:
- name: Download Splunk OTel Collector msi
uses: actions/download-artifact@v4
with:
name: msi-build
name: msi-build-${{ matrix.OS }}
path: ./tests/zeroconfig/windows/testdata/docker-setup/

- name: Run the test script
Expand All @@ -196,6 +205,9 @@ jobs:
.\run-tests.ps1
msi-test:
strategy:
matrix:
OS: [ "windows-2022" ]
runs-on: otel-windows
needs: [msi-build]
timeout-minutes: 40
Expand All @@ -206,7 +218,7 @@ jobs:
- name: Downloading msi build
uses: actions/download-artifact@v4
with:
name: msi-build
name: msi-build-${{ matrix.OS }}
path: ./dist

- name: Set the MSI_COLLECTOR_PATH environment variable
Expand All @@ -226,7 +238,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
OS: [ "windows-2022" ]
OS: [ "windows-2022", "windows-2025" ]
MODE: [ "agent", "gateway" ]
WITH_FLUENTD: [ "true", "false" ]
steps:
Expand All @@ -236,7 +248,7 @@ jobs:
- name: Downloading msi build
uses: actions/download-artifact@v4
with:
name: msi-build
name: msi-build-${{ matrix.OS }}
path: ./dist

- name: Ensure required ports in the dynamic range are available
Expand Down Expand Up @@ -275,7 +287,10 @@ jobs:
run: Get-Content -Path "${env:SYSTEMDRIVE}\opt\td-agent\td-agent.log"

choco-build:
runs-on: windows-2022
runs-on: ${{ matrix.OS }}
strategy:
matrix:
OS: [ "windows-2022", "windows-2025" ]
needs: [msi-build]
steps:
- name: Check out the codebase.
Expand All @@ -284,7 +299,7 @@ jobs:
- name: Downloading msi build
uses: actions/download-artifact@v4
with:
name: msi-build
name: msi-build-${{ matrix.OS }}
path: ./dist

- name: Build Chocolatey
Expand Down Expand Up @@ -315,7 +330,7 @@ jobs:
- name: Uploading choco build artifacts
uses: actions/upload-artifact@v4
with:
name: choco-build
name: choco-build-${{ matrix.OS }}
path: ./dist/*.nupkg

choco-test:
Expand All @@ -324,7 +339,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
OS: [ "windows-2022" ]
OS: [ "windows-2022", "windows-2025" ]
MODE: [ "agent", "gateway" ]
WITH_FLUENTD: [ "true", "false" ]
SCENARIO: [ "install", "upgrade" ]
Expand All @@ -336,7 +351,7 @@ jobs:
- name: Downloading choco build
uses: actions/download-artifact@v4
with:
name: choco-build
name: choco-build-${{ matrix.OS }}
path: ./dist

- name: Ensure required ports in the dynamic range are available
Expand Down Expand Up @@ -417,7 +432,7 @@ jobs:
needs: [cross-compile, agent-bundle-windows]
strategy:
matrix:
OS: [ "windows-2022" ]
OS: [ "windows-2022", "windows-2025" ]
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
Expand All @@ -430,7 +445,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: agent-bundle-windows
name: agent-bundle-windows-${{ matrix.OS }}
path: ./dist

- name: Build docker image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.OS }}
strategy:
matrix:
OS: [ "windows-2022" ]
OS: [ "windows-2022", "windows-2025" ]
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions tests/zeroconfig/windows/windows_iis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func testExpectedTracesForHTTPGetRequest(t *testing.T, otlp *testutils.OTLPRecei
ptracetest.IgnoreResourceAttributeValue("telemetry.sdk.version"),
ptracetest.IgnoreResourceAttributeValue("splunk.distro.version"),
ptracetest.IgnoreResourceAttributeValue("telemetry.distro.version"),
ptracetest.IgnoreResourceAttributeValue("os.description"),
ptracetest.IgnoreScopeSpanInstrumentationScopeVersion(),
ptracetest.IgnoreStartTimestamp(),
ptracetest.IgnoreEndTimestamp(),
Expand Down

0 comments on commit 88a8c31

Please sign in to comment.