-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update base image to RH UBI 9 and Golang 1.22 #138
Open
vkmc
wants to merge
15
commits into
master
Choose a base branch
from
vkmc-migrate-rhel9-golang-1222
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
94cb3aa
Bump golang to 1.22
vkmc d381863
Use golang 1.22.0 and OpenStack RDO repos
vkmc 5a0e2af
Update unit tests action base image
vkmc 3aaf9d9
Update action to include CentOS 9 RDO Caracal repos
vkmc d3770c3
Update golangci-lint
vkmc 33bab3a
Update protobuf version to 1.34.0
vkmc d7923f1
Fix wrong version when downloading golang in unit tests action
vkmc 80d3a72
Disable linters from golangci-lint
vkmc 79e5521
Update integration action to use UBI9 and CentOS 9 RDO Caracal repos
vkmc 50fe6d4
Update Prometheus from Quay for integration
vkmc bd75aa6
Update golang version in CI/integration scripts
vkmc a0a64f3
Update to golang 1.22.6
vkmc 21d6eee
Use Ubuntu 22.04 as base for the Github Actions
vkmc ab9495e
Update go-version to 1.22.6 in lint/image build
vkmc f57517b
Use correct repo naming
vkmc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
run: | ||
skip-dirs: | ||
- plugins/transport/dummy-alertmanager | ||
- plugins/transport/dummy-events | ||
- plugins/transport/dummy-metrics | ||
- plugins/transport/dummy-logs | ||
- plugins/application/print | ||
- devenv | ||
issues: | ||
exclude-rules: | ||
- linters: | ||
|
@@ -21,12 +13,19 @@ issues: | |
- staticcheck | ||
# https://staticcheck.io/docs/checks#SA4008 (The variable in the loop condition never changes, are you incrementing the wrong variable?) | ||
text: "SA4008:" | ||
exclude-dirs: | ||
- plugins/transport/dummy-alertmanager | ||
- plugins/transport/dummy-events | ||
- plugins/transport/dummy-metrics | ||
- plugins/transport/dummy-logs | ||
- plugins/application/print | ||
- devenv | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- depguard | ||
# - depguard | ||
- dogsled | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you look into replacements for any of these disabled linters? Sometimes there is a 1:1 replacement or a spiritual successor mentioned in the release notes. |
||
- dupl | ||
- errcheck | ||
|
@@ -39,15 +38,15 @@ linters: | |
- gofmt | ||
- goimports | ||
- goprintffuncname | ||
- gosec | ||
# - gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- noctx | ||
- nolintlint | ||
- revive | ||
# - revive | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# CentOS 9 OpenStack repos | ||
# | ||
# Please see https://trunk.rdoproject.org/ and | ||
# https://trunk.rdoproject.org/centos9-caracal/report.html for more information | ||
|
||
[delorean-caracal-testing] | ||
name=dlrn-caracal-testing | ||
baseurl=https://trunk.rdoproject.org/centos9-caracal/deps/latest/ | ||
enabled=1 | ||
gpgcheck=0 | ||
module_hotfixes=1 | ||
|
||
[centos9-opstools] | ||
name=centos9-opstools | ||
baseurl=http://mirror.stream.centos.org/SIGs/9-stream/opstools/$basearch/collectd-5/ | ||
enabled=1 | ||
gpgcheck=0 | ||
module_hotfixes=1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
#!/bin/env bash | ||
# CI script for UBI8 job | ||
# CI script for UBI9 job | ||
# purpose: spawn sg-core to process messages sent by rsyslog | ||
|
||
set -ex | ||
|
||
# enable required repo(s) | ||
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO | ||
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo | ||
# Update to use the vault mirror since Centos 8s is EOL | ||
sed -i 's/^#baseurl.*$/baseurl=http:\/\/vault.centos.org\/$releasever-stream\/opstools\/$basearch\/collectd-5/g' /etc/yum.repos.d/CentOS-OpsTools.repo | ||
sed -i 's/^mirror/#mirror/g' /etc/yum.repos.d/CentOS-OpsTools.repo | ||
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO | ||
|
||
dnf install -y git golang gcc make qpid-proton-c-devel | ||
|
||
export GOBIN=$GOPATH/bin | ||
export PATH=$PATH:$GOBIN | ||
|
||
go install golang.org/dl/go1.20@latest | ||
go1.20 download | ||
go install golang.org/dl/go1.22.6@latest | ||
go1.22.6 download | ||
|
||
# install sg-core and start sg-core | ||
mkdir -p /usr/lib64/sg-core | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.20 BUILD_ARGS=-buildvcs=false ./build.sh | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22.6 BUILD_ARGS=-buildvcs=false ./build.sh | ||
|
||
./sg-core -config ./ci/integration/logging/sg_config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
#!/bin/env bash | ||
# CI script for UBI8 job | ||
# CI script for UBI9 job | ||
# purpose: spawn sg-core to process messages sent by rsyslog | ||
|
||
set -ex | ||
|
||
# enable required repo(s) | ||
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO | ||
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo | ||
curl -o /etc/yum.repos.d/centos9-caracal.repo $OPENSTACK_REPO | ||
|
||
dnf install -y git golang gcc make qpid-proton-c-devel | ||
|
||
export GOBIN=$GOPATH/bin | ||
export PATH=$PATH:$GOBIN | ||
|
||
go install golang.org/dl/go1.20@latest | ||
go1.20 download | ||
go install golang.org/dl/go1.22.6@latest | ||
go1.22.6 download | ||
|
||
# install sg-core and start sg-core | ||
mkdir -p /usr/lib64/sg-core | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.20 BUILD_ARGS=-buildvcs=false ./build.sh | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22.6 BUILD_ARGS=-buildvcs=false ./build.sh | ||
|
||
./sg-core -config ./ci/integration/metrics/ceilometer/bridge/sg_config.yaml |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you notice this and why does it matter here? I would have though you can pull from either ref for building purposes.