Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit c352428

Browse files
Red-GVrohanarora
andauthored
refactor: clean sre scenario runner codebase (#107)
--------- Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> Signed-off-by: Rohan R. Arora <rohan.arora@ibm.com> Signed-off-by: Rohan R. Arora <rohan@rohanarora.name> Co-authored-by: Rohan R. Arora <rohan.arora@ibm.com> Co-authored-by: Rohan R. Arora <rohan@rohanarora.name>
1 parent d519fff commit c352428

326 files changed

Lines changed: 8744 additions & 9470 deletions

File tree

Some content is hidden

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

.github/dependabot.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ updates:
2020

2121
- package-ecosystem: "docker"
2222
directories:
23-
- "sre/tools/kubernetes-topology-mapper/"
24-
- "sre/tools/kubernetes-topology-mapper/charts/kubernetes-topology-mapper/templates/"
23+
- "sre/roles/tools/tasks/reinit_opensearch.yaml"
24+
- "sre/tools/kubernetes-topology-monitor/"
25+
- "sre/tools/kubernetes-topology-monitor/charts/kubernetes-topology-monitor/templates/"
2526
groups:
2627
docker-production-dependencies:
2728
dependency-type: "production"
@@ -30,7 +31,7 @@ updates:
3031

3132
- package-ecosystem: "gomod"
3233
directories:
33-
- "sre/local_cluster/"
34+
- "sre/dev/local_cluster/"
3435
groups:
3536
go-production-dependencies:
3637
dependency-type: "production"
@@ -41,8 +42,8 @@ updates:
4142
directories:
4243
- "/"
4344
- "sre/"
44-
- "sre/remote_cluster/"
45-
- "sre/tools/kubernetes-topology-mapper/"
45+
- "sre/dev/remote_cluster/"
46+
- "sre/tools/kubernetes-topology-monitor/"
4647
groups:
4748
pip-production-dependencies:
4849
dependency-type: "production"

.github/workflows/sre-build-push-tools.yaml

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,74 +5,66 @@ on:
55
branches:
66
- main
77
paths:
8-
- sre/tools/kubernetes-topology-mapper/*
9-
- sre/tools/astronomy-shop-checkout-service/*
8+
- sre/tools/**/*
109

1110
jobs:
1211
topology-monitor:
1312
runs-on: ubuntu-latest
1413
steps:
1514
- name: Checkout codebase
16-
uses: actions/checkout@v4
15+
uses: actions/checkout@v4.2.2
1716
- name: Login to Quay.io
18-
uses: docker/login-action@v3
17+
uses: docker/login-action@v3.4.0
1918
with:
2019
registry: quay.io
2120
username: ${{ secrets.QUAY_USERNAME }}
2221
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
2322
- name: Set up QEMU
24-
uses: docker/setup-qemu-action@v3
23+
uses: docker/setup-qemu-action@v3.6.0
2524
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v3
27-
- name: Build and push Kubernetes Topology Mapper
28-
uses: docker/build-push-action@v6
25+
uses: docker/setup-buildx-action@v3.10.0
26+
- name: Build and push Kubernetes Topology Monitor
27+
uses: docker/build-push-action@v6.18.0
2928
env:
3029
DOCKER_BUILD_RECORD_UPLOAD: false
3130
with:
32-
context: sre/tools/kubernetes-topology-mapper
31+
context: sre/tools/kubernetes-topology-monitor
3332
platforms: |
3433
linux/amd64
3534
linux/arm64
3635
push: true
3736
tags: |
3837
quay.io/it-bench/topology-monitor:0.0.4
3938
quay.io/it-bench/topology-monitor:latest
40-
unsupported-checkout-service:
39+
hello-bench:
4140
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
architecture:
44+
- amd64
45+
- arm64
4246
steps:
4347
- name: Checkout codebase
44-
uses: actions/checkout@v4
48+
uses: actions/checkout@v4.2.2
4549
- name: Login to Quay.io
46-
uses: docker/login-action@v3
50+
uses: docker/login-action@v3.4.0
4751
with:
4852
registry: quay.io
4953
username: ${{ secrets.QUAY_USERNAME }}
5054
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
5155
- name: Set up QEMU
52-
uses: docker/setup-qemu-action@v3
56+
uses: docker/setup-qemu-action@v3.6.0
5357
- name: Set up Docker Buildx
54-
uses: docker/setup-buildx-action@v3
55-
- name: Build and push Unsupported Astronomy Shop Checkout Service image (amd)
56-
uses: docker/build-push-action@v6
58+
uses: docker/setup-buildx-action@v3.10.0
59+
- name: Build and push Hello Bench image (amd)
60+
uses: docker/build-push-action@v6.18.0
5761
env:
5862
DOCKER_BUILD_RECORD_UPLOAD: false
5963
with:
60-
context: sre/tools/astronomy-shop-checkout-service
64+
context: sre/tools/hello-bench
6165
platforms: |
62-
linux/amd64
63-
push: true
64-
tags: |
65-
quay.io/it-bench/unsupported-checkout-service-amd64:0.0.4
66-
quay.io/it-bench/unsupported-checkout-service-amd64:latest
67-
- name: Build and push Unsupported Astronomy Shop Checkout Service image (arm)
68-
uses: docker/build-push-action@v6
69-
env:
70-
DOCKER_BUILD_RECORD_UPLOAD: false
71-
with:
72-
context: sre/tools/astronomy-shop-checkout-service
73-
platforms: |
74-
linux/arm64
75-
push: true
66+
linux/${{ matrix.architecture }}
67+
push: false
7668
tags: |
77-
quay.io/it-bench/unsupported-checkout-service-arm64:0.0.4
78-
quay.io/it-bench/unsupported-checkout-service-arm64:latest
69+
quay.io/it-bench/hello-bench-${{ matrix.architecture }}:1.0.0
70+
quay.io/it-bench/hello-bench-${{ matrix.architecture }}:latest
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Perform build tests SRE tool images
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- sre/tools/**/*
9+
10+
jobs:
11+
topology-monitor:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout codebase
15+
uses: actions/checkout@v4.2.2
16+
- name: Login to Quay.io
17+
uses: docker/login-action@v3.4.0
18+
with:
19+
registry: quay.io
20+
username: ${{ secrets.QUAY_USERNAME }}
21+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3.6.0
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3.10.0
26+
- name: Build and push Kubernetes Topology Monitor
27+
uses: docker/build-push-action@v6.18.0
28+
env:
29+
DOCKER_BUILD_RECORD_UPLOAD: false
30+
with:
31+
context: sre/tools/kubernetes-topology-monitor
32+
platforms: |
33+
linux/amd64
34+
linux/arm64
35+
push: false
36+
tags: |
37+
quay.io/it-bench/topology-monitor:0.0.4
38+
quay.io/it-bench/topology-monitor:latest
39+
hello-bench:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
architecture:
44+
- amd64
45+
- arm64
46+
steps:
47+
- name: Checkout codebase
48+
uses: actions/checkout@v4.2.2
49+
- name: Login to Quay.io
50+
uses: docker/login-action@v3.4.0
51+
with:
52+
registry: quay.io
53+
username: ${{ secrets.QUAY_USERNAME }}
54+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
55+
- name: Set up QEMU
56+
uses: docker/setup-qemu-action@v3.6.0
57+
- name: Set up Docker Buildx
58+
uses: docker/setup-buildx-action@v3.10.0
59+
- name: Build and push Hello Bench image (amd)
60+
uses: docker/build-push-action@v6.18.0
61+
env:
62+
DOCKER_BUILD_RECORD_UPLOAD: false
63+
with:
64+
context: sre/tools/hello-bench
65+
platforms: |
66+
linux/${{ matrix.architecture }}
67+
push: false
68+
tags: |
69+
quay.io/it-bench/hello-bench-${{ matrix.architecture }}:1.0.0
70+
quay.io/it-bench/hello-bench-${{ matrix.architecture }}:latest

0 commit comments

Comments
 (0)