Skip to content

Commit f5b1ac5

Browse files
authored
DTIN-6099: syslog_monitor: Log rotation support for Windows (#1332)
1 parent 12d616e commit f5b1ac5

19 files changed

+614
-106
lines changed

.github/workflows/benchmarks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
memory-usage:
3131
name: Memory Usage - Syslog Monitor - Python ${{ matrix.python-version }}
32-
runs-on: ubuntu-20.04
32+
runs-on: ubuntu-22.04
3333

3434
needs: pre_job
3535
# NOTE: We always want to run job on master branch

.github/workflows/build-container-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
needs:
9696
- pre_job
9797
- build_container_images
98-
runs-on: ubuntu-20.04
98+
runs-on: ubuntu-22.04
9999
steps:
100100
- name: Checkout repository
101101
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

.github/workflows/build-linux-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
needs:
7171
- pre_job
7272
- build_linux_packages
73-
runs-on: ubuntu-20.04
73+
runs-on: ubuntu-22.04
7474
steps:
7575
- name: Checkout repository
7676
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

.github/workflows/build-tarball.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
1919
build_tarball:
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-22.04
2121

2222
steps:
2323
- name: Checkout repository

.github/workflows/check_changelog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
check-changelog:
1010
name: Check Changelog
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212

1313
defaults:
1414
run:

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
github_token: ${{ github.token }}
3131

3232
tox-lint:
33-
runs-on: ubuntu-20.04
33+
runs-on: ubuntu-22.04
3434
needs: pre_job
3535
# NOTE: We always want to run job on master branch
3636
if: ${{ needs.pre_job.outputs.should_skip != 'true' || github.ref_name == 'master' }}
@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/setup-python@v4
4949
id: setup-python
5050
with:
51-
python-version: 3.6.15
51+
python-version: 3.8.18
5252

5353
- name: Install tox
5454
env:

.github/workflows/retry-workflow-build-container-images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
retry_workflow:
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020

2121
steps:
2222
- name: Checkout repository
@@ -39,4 +39,4 @@ jobs:
3939
with:
4040
status: ${{ job.status }}
4141
steps: ${{ toJson(steps) }}
42-
channel: '#eng-dataset-cloud-tech'
42+
channel: '#eng-dataset-cloud-tech'

.github/workflows/retry-workflow-build-linux-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
retry_workflow:
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020

2121
steps:
2222
- name: Checkout repository

.github/workflows/reusable-agent-build-container-images.yml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115

116116
- name: Set up QEMU
117117
id: qemu
118-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
118+
uses: docker/setup-qemu-action@v3
119119
with:
120120
image: tonistiigi/binfmt:qemu-v6.2.0
121121
platforms: all
@@ -127,13 +127,14 @@ jobs:
127127
docker context create builders || echo Already exists
128128
129129
- name: Set up Docker Buildx
130-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3 # v3
130+
uses: docker/setup-buildx-action@v3
131131
with:
132132
driver-opts: network=host
133133
endpoint: builders
134134

135-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
136-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
135+
# TODO Investigate, no longer working
136+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
137+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
137138

138139
- name: Build requirements
139140
shell: bash
@@ -199,7 +200,7 @@ jobs:
199200

200201
- name: Set up QEMU
201202
id: qemu
202-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
203+
uses: docker/setup-qemu-action@v3
203204
with:
204205
image: tonistiigi/binfmt:qemu-v6.2.0
205206
platforms: all
@@ -211,13 +212,14 @@ jobs:
211212
docker context create builders || echo Already exists
212213
213214
- name: Set up Docker Buildx
214-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
215+
uses: docker/setup-buildx-action@v3
215216
with:
216217
driver-opts: network=host
217218
endpoint: builders
218219

219-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
220-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
220+
# TODO Investigate, no longer working
221+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
222+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
221223

222224
- name: Build image tarball
223225
shell: bash
@@ -247,7 +249,7 @@ jobs:
247249
# Jobs which performs basic sanity checks for the Kubernetes Monitor and Kubernetes Events Monitor
248250
k8s_kubernetes_monitor_tests:
249251
name: Kubernetes Monitors - k8s ${{ inputs.builder_name }} ${{ matrix.k8s_version.version }}-${{ matrix.k8s_version.runtime}}
250-
runs-on: ubuntu-20.04
252+
runs-on: ubuntu-22.04
251253
timeout-minutes: 15
252254

253255
if: ${{ ! vars.K8S_TESTS_DISABLED }}
@@ -287,13 +289,13 @@ jobs:
287289

288290
- name: Set up QEMU
289291
id: qemu
290-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
292+
uses: docker/setup-qemu-action@v3
291293
with:
292294
image: tonistiigi/binfmt:qemu-v6.2.0
293295
platforms: all
294296

295297
- name: Set up Docker Buildx
296-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
298+
uses: docker/setup-buildx-action@v3
297299
with:
298300
driver-opts: network=host
299301

@@ -330,8 +332,9 @@ jobs:
330332
name: container-image-tarball-k8s-${{ inputs.builder_name }}
331333
path: /tmp/image_tarball
332334

333-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
334-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
335+
# TODO Investigate, no longer working
336+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
337+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
335338

336339
- name: Build Agent k8s Test Docker Image
337340
env:
@@ -607,7 +610,7 @@ jobs:
607610
608611
k8s_open_metrics_monitor_tests:
609612
name: OpenMetrics Monitor - k8s ${{ inputs.builder_name }} ${{ matrix.k8s_version.version }}-${{ matrix.k8s_version.runtime}}
610-
runs-on: ubuntu-20.04
613+
runs-on: ubuntu-22.04
611614
if: vars.K8S_TESTS_DISABLED != 'true' && github.ref_name != '_release_build' && inputs.builder_name != 'alpine'
612615
timeout-minutes: 15
613616

@@ -642,13 +645,13 @@ jobs:
642645

643646
- name: Set up QEMU
644647
id: qemu
645-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
648+
uses: docker/setup-qemu-action@v3
646649
with:
647650
image: tonistiigi/binfmt:qemu-v6.2.0
648651
platforms: all
649652

650653
- name: Set up Docker Buildx
651-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
654+
uses: docker/setup-buildx-action@v3
652655
with:
653656
driver-opts: network=host
654657

@@ -672,8 +675,9 @@ jobs:
672675
name: container-image-tarball-k8s-${{ inputs.builder_name }}
673676
path: /tmp/image_tarball
674677

675-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
676-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
678+
# TODO Investigate, no longer working
679+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
680+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
677681

678682
- name: Build Agent k8s Test Docker Image
679683
env:
@@ -840,7 +844,7 @@ jobs:
840844

841845
- name: Set up QEMU
842846
id: qemu
843-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
847+
uses: docker/setup-qemu-action@v3
844848
with:
845849
image: tonistiigi/binfmt:qemu-v6.2.0
846850
platforms: all
@@ -857,13 +861,14 @@ jobs:
857861
docker context create builders || echo Already exists
858862
859863
- name: Set up Docker Buildx
860-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
864+
uses: docker/setup-buildx-action@v3
861865
with:
862866
driver-opts: network=host
863867
endpoint: builders
864868

865-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
866-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
869+
# TODO Investigate, no longer working
870+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
871+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
867872

868873
- name: Setup minikube k8s cluster
869874
uses: ./.github/actions/setup-minikube-cluster/
@@ -879,10 +884,6 @@ jobs:
879884
name: container-image-tarball-k8s-${{ inputs.builder_name }}
880885
path: /tmp/image_tarball
881886

882-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
883-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
884-
885-
886887
- name: Build test image
887888
env:
888889
USE_GHA_CACHE: "1"
@@ -940,7 +941,7 @@ jobs:
940941

941942
- name: Set up QEMU
942943
id: qemu
943-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
944+
uses: docker/setup-qemu-action@v3
944945
with:
945946
image: tonistiigi/binfmt:qemu-v6.2.0
946947
platforms: all
@@ -967,23 +968,21 @@ jobs:
967968
docker context create builders || echo Already exists
968969
969970
- name: Set up Docker Buildx
970-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
971+
uses: docker/setup-buildx-action@v3
971972
with:
972973
driver-opts: network=host
973974
endpoint: builders
974975

975-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
976-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
976+
# TODO Investigate, no longer working
977+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
978+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
977979

978980
- name: Download OCI tarball of the built image.
979981
uses: actions/download-artifact@v4
980982
with:
981983
name: container-image-tarball-${{ matrix.variant.image_type }}-${{ inputs.builder_name }}
982984
path: /tmp/image_tarball
983985

984-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
985-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
986-
987986
- name: Build test image
988987
env:
989988
USE_GHA_CACHE: "1"
@@ -1026,7 +1025,7 @@ jobs:
10261025

10271026
publish_images:
10281027
name: Publish image ${{ matrix.variant.image_type }}-${{ inputs.builder_name }}
1029-
runs-on: ubuntu-20.04
1028+
runs-on: ubuntu-22.04
10301029
if: github.ref_type == 'tag' || github.ref_name == 'master' || github.head_ref == 'release' || github.event_name == 'pull_request'
10311030
needs:
10321031
# k8s_kubernetes_monitor_tests, k8s_open_metrics_monitor_tests, k8s-smoketest checks are not needed before pushing a test version to dockerhub.

.github/workflows/reusable-agent-build-linux-packages-new.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
- name: Set up QEMU
7070
id: qemu
71-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
71+
uses: docker/setup-qemu-action@v3
7272
with:
7373
image: tonistiigi/binfmt:qemu-v6.2.0
7474
platforms: all
@@ -79,13 +79,14 @@ jobs:
7979
docker context create builders || echo Already exists
8080
8181
- name: Set up Docker Buildx
82-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
82+
uses: docker/setup-buildx-action@v3
8383
with:
8484
driver-opts: network=host
8585
endpoint: builders
8686

87-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
88-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
87+
# TODO Investigate, no longer working
88+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
89+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
8990

9091
- name: Build Dependencies
9192
shell: bash
@@ -130,7 +131,7 @@ jobs:
130131

131132
- name: Set up QEMU
132133
id: qemu
133-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
134+
uses: docker/setup-qemu-action@v3
134135
with:
135136
image: tonistiigi/binfmt:qemu-v6.2.0
136137
platforms: all
@@ -141,13 +142,14 @@ jobs:
141142
docker context create builders || echo Already exists
142143
143144
- name: Set up Docker Buildx
144-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
145+
uses: docker/setup-buildx-action@v3
145146
with:
146147
driver-opts: network=host
147148
endpoint: builders
148149

149-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
150-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
150+
# TODO Investigate, no longer working
151+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
152+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
151153

152154
- name: Build package
153155
shell: bash
@@ -201,13 +203,13 @@ jobs:
201203

202204
- name: Set up QEMU
203205
id: qemu
204-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
206+
uses: docker/setup-qemu-action@v3
205207
with:
206208
image: tonistiigi/binfmt:qemu-v6.2.0
207209
platforms: all
208210

209211
- name: Set up Docker Buildx
210-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
212+
uses: docker/setup-buildx-action@v3
211213
with:
212214
driver-opts: network=host
213215

@@ -221,8 +223,9 @@ jobs:
221223
run: |
222224
find /tmp/packages
223225
224-
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
225-
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
226+
# TODO Investigate, no longer working
227+
#- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
228+
# uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
226229

227230
- name: install python and requirements
228231
uses: ./.github/actions/install_python_and_requirements

0 commit comments

Comments
 (0)