@@ -142,7 +142,7 @@ jobs:
142142 - name : Load Poetry Cached Libraries ⬇
143143 id : cache-poetry
144144 if : needs.changes.outputs.backend == 'true'
145- uses : actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
145+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
146146 with :
147147 path : .venv
148148 key : ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ env.DEFAULT_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-${{ secrets.POETRY_CACHE_VERSION }}
@@ -247,12 +247,12 @@ jobs:
247247 - test-full-model-training
248248 - test-other-unit-tests
249249 - test-performance
250- os : [ubuntu-24.04, windows-2019 ]
250+ os : [ubuntu-24.04, windows-2022 ]
251251 python-version : [3.8, 3.9, "3.10"]
252252
253253 steps :
254254 - name : Run DataDog Agent
255- if : needs.changes.outputs.backend == 'true' && (matrix.os != 'windows-2019 ' || contains(github.event.pull_request.labels.*.name, 'tools:datadog-windows'))
255+ if : needs.changes.outputs.backend == 'true' && (matrix.os != 'windows-2022 ' || contains(github.event.pull_request.labels.*.name, 'tools:datadog-windows'))
256256 run : |
257257 docker run --name dd_agent -p 8126:8126 -d -e "DD_API_KEY=${{ secrets.DD_API_KEY }}" -e "DD_INSIDE_CI=true" -e "DD_HOSTNAME=none" -e "DD_SITE=datadoghq.eu" -e GITHUB_ACTIONS=true -e CI=true datadog/agent:latest
258258 docker ps --all --filter name=dd_agent --filter status=running --no-trunc --format "{{.ID}} {{.Status}}"
@@ -284,7 +284,7 @@ jobs:
284284 installer-parallel : true
285285
286286 - name : Install poetry (Windows) 🦄
287- if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019 '
287+ if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2022 '
288288 uses : Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
289289 with :
290290 poetry-version : ${{ env.POETRY_VERSION }}
@@ -299,7 +299,7 @@ jobs:
299299 - name : Load Poetry Cached Libraries ⬇
300300 id : cache-poetry
301301 if : needs.changes.outputs.backend == 'true'
302- uses : actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
302+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
303303 with :
304304 path : .venv
305305 key : ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}-venv-${{ secrets.POETRY_CACHE_VERSION }}-${{ env.pythonLocation }}
@@ -335,7 +335,7 @@ jobs:
335335 make prepare-tests-ubuntu
336336
337337 - name : Install Dependencies (Windows) 📦
338- if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019 '
338+ if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2022 '
339339 # Restoring cache doesn't work properly on Windows due to symlinks.
340340 # We create symlinks for spacy models, that's why we need to clean them up
341341 # before caching the dependencies directory.
@@ -361,7 +361,7 @@ jobs:
361361 run : pip install pytest-github-actions-annotate-failures
362362
363363 - name : Disable "LongPathsEnabled" option on Windows
364- if : matrix.os == 'windows-2019 '
364+ if : matrix.os == 'windows-2022 '
365365 # On Windows laptops, a default preset prevents path names from being longer than
366366 # 260 characters. Some of our users can't enable this setting due to company policies.
367367 # We implemented a fix for model storage. The Windows container in GitHub
@@ -376,7 +376,7 @@ jobs:
376376 run : poetry run pip install -U 'ddtrace<2.0.0'
377377
378378 - name : Install ddtrace on Windows
379- if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019 '
379+ if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2022 '
380380 run : |
381381 .\.venv\Scripts\activate
382382 py -m pip install -U 'ddtrace<2.0.0'
@@ -416,12 +416,12 @@ jobs:
416416 strategy :
417417 fail-fast : false
418418 matrix :
419- os : [ubuntu-24.04, windows-2019 ]
419+ os : [ubuntu-24.04, windows-2022 ]
420420 python-version : [3.8, 3.9, "3.10"]
421421
422422 steps :
423423 - name : Run DataDog Agent
424- if : needs.changes.outputs.backend == 'true' && (matrix.os != 'windows-2019 ' || contains(github.event.pull_request.labels.*.name, 'tools:datadog-windows'))
424+ if : needs.changes.outputs.backend == 'true' && (matrix.os != 'windows-2022 ' || contains(github.event.pull_request.labels.*.name, 'tools:datadog-windows'))
425425 run : |
426426 docker run --name dd_agent -p 8126:8126 -d -e "DD_API_KEY=${{ secrets.DD_API_KEY }}" -e "DD_INSIDE_CI=true" -e "DD_HOSTNAME=none" -e "DD_SITE=datadoghq.eu" -e GITHUB_ACTIONS=true -e CI=true datadog/agent:latest
427427 docker ps --all --filter name=dd_agent --filter status=running --no-trunc --format "{{.ID}} {{.Status}}"
@@ -453,15 +453,15 @@ jobs:
453453 installer-parallel : true
454454
455455 - name : Install poetry (Windows) 🦄
456- if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019 '
456+ if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2022 '
457457 uses : Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9
458458 with :
459459 poetry-version : ${{ env.POETRY_VERSION }}
460460
461461 - name : Load Poetry Cached Libraries ⬇
462462 id : cache-poetry
463463 if : needs.changes.outputs.backend == 'true'
464- uses : actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
464+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
465465 with :
466466 path : .venv
467467 key : ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}-venv-${{ secrets.POETRY_CACHE_VERSION }}-${{ env.pythonLocation }}
@@ -495,7 +495,7 @@ jobs:
495495 make prepare-tests-ubuntu
496496
497497 - name : Install Dependencies (Windows) 📦
498- if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019 '
498+ if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2022 '
499499 # Restoring cache doesn't work properly on Windows due to symlinks.
500500 # We create symlinks for spacy models, that's why we need to clean them up
501501 # before caching the dependencies' directory.
@@ -519,7 +519,7 @@ jobs:
519519 run : pip install pytest-github-actions-annotate-failures
520520
521521 - name : Disable "LongPathsEnabled" option on Windows
522- if : matrix.os == 'windows-2019 '
522+ if : matrix.os == 'windows-2022 '
523523 # On Windows laptops, a default preset prevents path names from being longer than
524524 # 260 characters. Some of our users can't enable this setting due to company policies.
525525 # We implemented a fix for model storage. The Windows container in GitHub
@@ -534,7 +534,7 @@ jobs:
534534 run : poetry run pip install -U 'ddtrace<2.0.0'
535535
536536 - name : Install ddtrace on Windows
537- if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019 '
537+ if : needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2022 '
538538 run : |
539539 .\.venv\Scripts\activate
540540 py -m pip install -U 'ddtrace<2.0.0'
@@ -699,7 +699,7 @@ jobs:
699699 - name : Load Poetry Cached Libraries ⬇
700700 id : cache-poetry
701701 if : needs.changes.outputs.backend == 'true'
702- uses : actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
702+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
703703 with :
704704 path : .venv
705705 key : ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ env.DEFAULT_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-venv-${{ secrets.POETRY_CACHE_VERSION }}-${{ env.pythonLocation }}
@@ -789,7 +789,7 @@ jobs:
789789 - name : Load Poetry Cached Libraries ⬇
790790 id : cache-poetry
791791 if : needs.changes.outputs.backend == 'true'
792- uses : actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
792+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
793793 with :
794794 path : .venv
795795 key : ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ env.DEFAULT_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-venv-${{ secrets.POETRY_CACHE_VERSION }}-${{ env.pythonLocation }}
0 commit comments