Skip to content

Commit f57517b

Browse files
committed
Use correct repo naming
We are now consuming centos9-caracal repos (OpenStack repos) to get the required dependencies, so update the repo to centos9-caracal and all the references in the Github actions and integration scripts Add some other cleanups when setting up the repo Also fix logging integration scripts missing golang 1.22 microversion
1 parent ab9495e commit f57517b

File tree

11 files changed

+23
-28
lines changed

11 files changed

+23
-28
lines changed

.github/workflows/integration.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Integration testing
22
env:
33
PROJECT_ROOT: /root/go/src/github.com/infrawatch/sg-core
4-
OPSTOOLS_REPO: https://trunk.rdoproject.org/centos9-caracal/delorean-deps.repo
4+
OPENSTACK_REPO: https://trunk.rdoproject.org/centos9-caracal/delorean-deps.repo
55

66
QDR_IMAGE: quay.io/interconnectedcloud/qdrouterd:1.17.0
77
QDR_VOLUME: "--volume=${{ github.workspace }}/ci/service_configs/qdr:/etc/qpid-dispatch:ro"
@@ -74,7 +74,7 @@ jobs:
7474
if: steps.bridge_branch.outcome == 'success'
7575
run: |
7676
docker run --name=sgbridge --network host $BRIDGE_VOLUME -d -uroot \
77-
-e GITHUB_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPSTOOLS_REPO \
77+
-e GITHUB_HEAD_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPENSTACK_REPO \
7878
--workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
7979
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/run_bridge.sh
8080
- name: Install collectd
@@ -86,7 +86,7 @@ jobs:
8686
sudo collectd -C ci/integration/metrics/collectd/collectd.conf
8787
- name: Run sg-core to process metrics
8888
run: |
89-
docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPSTOOLS_REPO \
89+
docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPENSTACK_REPO \
9090
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
9191
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/collectd/run_sg.sh
9292
- name: Run Prometheus to store metrics
@@ -170,7 +170,7 @@ jobs:
170170
if: steps.bridge_branch.outcome == 'success'
171171
run: |
172172
docker run --name=sgbridge --network host $BRIDGE_VOLUME -d -uroot \
173-
-e GITHUB_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPSTOOLS_REPO \
173+
-e GITHUB_HEAD_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPENSTACK_REPO \
174174
--workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
175175
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/run_bridge.sh
176176
- name: Set Ceilometer pipelines to QDR output and restart notification agent
@@ -186,7 +186,7 @@ jobs:
186186
sudo systemctl restart devstack@ceilometer-anotification.service
187187
- name: Run sg-core to process metrics
188188
run: |
189-
docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPSTOOLS_REPO \
189+
docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPENSTACK_REPO \
190190
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
191191
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/ceilometer/bridge/run_sg.sh
192192
- name: Run Prometheus to store metrics
@@ -263,7 +263,7 @@ jobs:
263263
sudo systemctl restart devstack@ceilometer-anotification.service
264264
- name: Run sg-core to process metrics
265265
run: |
266-
docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPSTOOLS_REPO \
266+
docker run --name=sgcore -d -uroot --network host $BRIDGE_VOLUME -e OPENSTACK_REPO \
267267
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
268268
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/metrics/ceilometer/tcp/run_sg.sh
269269
- name: Run Prometheus to store metrics
@@ -333,8 +333,8 @@ jobs:
333333
- name: Start sg-bridge with same branch
334334
if: steps.bridge_branch.outcome == 'success'
335335
run: |
336-
docker run --name=sgbridge $BRIDGE_VOLUME -d -uroot --network host -e OPSTOOLS_REPO \
337-
-e GITHUB_REF -e BRIDGE_SOCKET --workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
336+
docker run --name=sgbridge $BRIDGE_VOLUME -d -uroot --network host -e OPENSTACK_REPO \
337+
-e GITHUB_HEAD_REF -e BRIDGE_SOCKET --workdir=$(dirname $BRIDGE_SOCKET) --volume ${{ github.workspace }}:$PROJECT_ROOT:z \
338338
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/logging/run_bridge.sh
339339
- name: Run rsyslog to produce log messages
340340
run: |
@@ -395,7 +395,7 @@ jobs:
395395
# run integration tests
396396
- name: Run sg-core to process log messages
397397
run: |
398-
docker run --name=sgcore -d -uroot --network host $TEST_PORT $BRIDGE_VOLUME -e OPSTOOLS_REPO \
398+
docker run --name=sgcore -d -uroot --network host $TEST_PORT $BRIDGE_VOLUME -e OPENSTACK_REPO \
399399
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
400400
$TEST_IMAGE bash $PROJECT_ROOT/ci/integration/logging/run_sg.sh
401401
- name: sg-core debug output

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22
env:
33
PROJECT_ROOT: /root/go/src/github.com/infrawatch/sg-core
4-
OPSTOOLS_REPO: https://trunk.rdoproject.org/centos9-caracal/delorean-deps.repo
4+
OPENSTACK_REPO: https://trunk.rdoproject.org/centos9-caracal/delorean-deps.repo
55

66
LOKI_IMAGE: quay.io/infrawatch/loki:2.4.2
77
LOKI_VOLUME: "--volume=${{ github.workspace }}/ci/service_configs/loki:/etc/loki:ro"
@@ -63,7 +63,7 @@ jobs:
6363
docker logs loki
6464
- name: Run sg-core unit test suite
6565
run: |
66-
docker run --name=testsuite -uroot --network host -e COVERALLS_REPO_TOKEN -e OPSTOOLS_REPO \
66+
docker run --name=testsuite -uroot --network host -e COVERALLS_REPO_TOKEN -e OPENSTACK_REPO \
6767
--volume ${{ github.workspace }}:$PROJECT_ROOT:z --workdir $PROJECT_ROOT \
6868
$TEST_IMAGE bash $PROJECT_ROOT/ci/unit/run_tests.sh
6969
- name: Send coverage

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR $SGCORE_DIR
77
COPY . $SGCORE_DIR/
88

99
# dependencies for qpid-proton-c
10-
COPY build/repos/opstools.repo /etc/yum.repos.d/opstools.repo
10+
COPY build/repos/centos9-caracal.repo /etc/yum.repos.d/centos9-caracal.repo
1111

1212
RUN dnf install golang git qpid-proton-c-devel -y --setopt=tsflags=nodocs
1313
RUN go install golang.org/dl/go1.22.6@latest && /go/bin/go1.22.6 download && PRODUCTION_BUILD=false CONTAINER_BUILD=true GOCMD=/go/bin/go1.22.6 ./build.sh
File renamed without changes.

ci/integration/logging/run_bridge.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
set -ex
66

77
# enable required repo(s)
8-
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO
9-
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo
8+
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO
109

1110
dnf install -y git gcc make qpid-proton-c-devel redhat-rpm-config
1211

ci/integration/logging/run_sg.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
#!/bin/env bash
2-
# CI script for UBI8 job
2+
# CI script for UBI9 job
33
# purpose: spawn sg-core to process messages sent by rsyslog
44

55
set -ex
66

77
# enable required repo(s)
8-
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO
9-
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo
10-
# Update to use the vault mirror since Centos 8s is EOL
11-
sed -i 's/^#baseurl.*$/baseurl=http:\/\/vault.centos.org\/$releasever-stream\/opstools\/$basearch\/collectd-5/g' /etc/yum.repos.d/CentOS-OpsTools.repo
12-
sed -i 's/^mirror/#mirror/g' /etc/yum.repos.d/CentOS-OpsTools.repo
8+
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO
139

1410
dnf install -y git golang gcc make qpid-proton-c-devel
1511

1612
export GOBIN=$GOPATH/bin
1713
export PATH=$PATH:$GOBIN
1814

19-
go install golang.org/dl/go1.22@latest
20-
go1.22 download
15+
go install golang.org/dl/go1.22.6@latest
16+
go1.22.6 download
2117

2218
# install sg-core and start sg-core
2319
mkdir -p /usr/lib64/sg-core
24-
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22 BUILD_ARGS=-buildvcs=false ./build.sh
20+
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22.6 BUILD_ARGS=-buildvcs=false ./build.sh
2521

2622
./sg-core -config ./ci/integration/logging/sg_config.yaml

ci/integration/metrics/ceilometer/bridge/run_sg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -ex
66

77
# enable required repo(s)
8-
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO
8+
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO
99

1010
dnf install -y git golang gcc make qpid-proton-c-devel
1111

ci/integration/metrics/ceilometer/tcp/run_sg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -ex
66

77
# enable required repo(s)
8-
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO
8+
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO
99

1010
dnf install -y git golang gcc make qpid-proton-c-devel
1111

ci/integration/metrics/collectd/run_sg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -ex
66

77
# enable required repo(s)
8-
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO
8+
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO
99

1010
dnf install -y git golang gcc make qpid-proton-c-devel
1111

ci/integration/metrics/run_bridge.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -ex
77
CHANNEL=$QDR_CHANNEL
88

99
# enable required repo(s)
10-
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO
10+
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO
1111

1212
dnf install -y git gcc make qpid-proton-c-devel redhat-rpm-config
1313

ci/unit/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -ex
66

77
# enable required repo(s)
8-
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO
8+
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO
99

1010
# without glibc-langpack-en locale setting in CentOS8 is broken without this package
1111
yum install -y git golang gcc make glibc-langpack-en qpid-proton-c-devel

0 commit comments

Comments
 (0)