Skip to content
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
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

vkmc
Copy link
Contributor

@vkmc vkmc commented Aug 5, 2024

No description provided.

@vkmc vkmc force-pushed the vkmc-migrate-rhel9-golang-1222 branch 2 times, most recently from 7ef17cd to 01917e4 Compare August 5, 2024 15:36
@vkmc
Copy link
Contributor Author

vkmc commented Aug 15, 2024

recheck

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/e81e8f8cbd244d89b7eccb33dddd55f0

stf-crc-ocp_414-local_build FAILURE in 37m 56s
stf-crc-ocp_416-local_build FAILURE in 38m 52s
stf-crc-ocp_414-local_build-index_deploy FAILURE in 47m 32s
stf-crc-ocp_416-local_build-index_deploy FAILURE in 43m 25s
stf-crc-ocp_414-nightly_bundles-index_deploy FAILURE in 37m 28s
stf-crc-ocp_416-nightly_bundles-index_deploy FAILURE in 33m 40s

@vkmc
Copy link
Contributor Author

vkmc commented Aug 15, 2024

recheck

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/df0dad5bb9484d73bb75ef94bdc868ec

stf-crc-ocp_414-local_build FAILURE in 37m 48s
stf-crc-ocp_416-local_build FAILURE in 41m 20s
stf-crc-ocp_414-local_build-index_deploy FAILURE in 46m 37s
stf-crc-ocp_416-local_build-index_deploy FAILURE in 43m 27s
stf-crc-ocp_414-nightly_bundles-index_deploy FAILURE in 37m 07s
stf-crc-ocp_416-nightly_bundles-index_deploy FAILURE in 31m 47s

@vkmc vkmc changed the title Migrate to RHEL9 and Golang 1.22 Update base image to RH UBI9 and Golang 1.22 Aug 16, 2024
@vkmc vkmc changed the title Update base image to RH UBI9 and Golang 1.22 Update base image to RH UBI 9 and Golang 1.22 Aug 16, 2024
@vkmc
Copy link
Contributor Author

vkmc commented Aug 16, 2024

recheck

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/77cdfa4ba6784bda9d73428747a30ccd

stf-crc-ocp_414-local_build FAILURE in 37m 45s
stf-crc-ocp_416-local_build FAILURE in 40m 24s
stf-crc-ocp_414-local_build-index_deploy FAILURE in 45m 42s
stf-crc-ocp_416-local_build-index_deploy FAILURE in 41m 59s
stf-crc-ocp_414-nightly_bundles-index_deploy FAILURE in 38m 40s
stf-crc-ocp_416-nightly_bundles-index_deploy FAILURE in 33m 29s

@vkmc vkmc force-pushed the vkmc-migrate-rhel9-golang-1222 branch 2 times, most recently from 6b89a04 to 9a339cd Compare August 16, 2024 16:57
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/313e17807ca34050a937b80ada16aad2

✔️ stf-crc-ocp_414-local_build SUCCESS in 33m 35s
✔️ stf-crc-ocp_416-local_build SUCCESS in 35m 18s
✔️ stf-crc-ocp_414-local_build-index_deploy SUCCESS in 36m 16s
✔️ stf-crc-ocp_416-local_build-index_deploy SUCCESS in 36m 58s
stf-crc-ocp_414-nightly_bundles-index_deploy RETRY_LIMIT in 6m 19s
✔️ stf-crc-ocp_416-nightly_bundles-index_deploy SUCCESS in 28m 06s

@vkmc vkmc requested a review from vyzigold August 19, 2024 08:10
@vkmc vkmc force-pushed the vkmc-migrate-rhel9-golang-1222 branch 2 times, most recently from d2cc4ba to 8a1a126 Compare August 19, 2024 09:01
build/repos/opstools.repo Outdated Show resolved Hide resolved
@vkmc vkmc force-pushed the vkmc-migrate-rhel9-golang-1222 branch 2 times, most recently from bfd8e67 to 0b96faa Compare August 19, 2024 11:13
vkmc added 11 commits August 19, 2024 13:15
Use golang 1.22.0 instead of golang 1.22. Since 1.21
golang added the .z version, so it is now required to
point to a z version

Use OpenStack RDO Caracal repos to fetch
dependencies
Also fixes the golang version we want to use
(includes the z version)
Disable depguard, gosec and revive linters

We should fix the issues in a follow up patch
Use Prometheus image from Quay instead of
the Prometheus image in the Docker registry
Add z version when retrieving golang binaries
@vkmc vkmc force-pushed the vkmc-migrate-rhel9-golang-1222 branch from 0b96faa to f57517b Compare August 19, 2024 11:16
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
@vkmc vkmc requested a review from vyzigold August 19, 2024 11:26
@vkmc
Copy link
Contributor Author

vkmc commented Aug 19, 2024

Last missing piece here is coveralls and linting.

Seems coveralls golang plugin hasn't been updated for a year already, and their own repo reflects low coverage. See https://github.com/shogo82148/actions-goveralls. We should look for an alternative or just drop it.

In the case of linting, I had to disable a few linters since the changes required to get it passing might be better done in a follow up patch.

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/8e293c3611574f31804cd7ca3fb77ea9

✔️ stf-crc-ocp_414-local_build SUCCESS in 32m 43s
✔️ stf-crc-ocp_416-local_build SUCCESS in 34m 39s
✔️ stf-crc-ocp_414-local_build-index_deploy SUCCESS in 37m 34s
stf-crc-ocp_416-local_build-index_deploy FAILURE in 53m 24s
✔️ stf-crc-ocp_414-nightly_bundles-index_deploy SUCCESS in 32m 10s
✔️ stf-crc-ocp_416-nightly_bundles-index_deploy SUCCESS in 27m 15s

@@ -74,7 +74,7 @@ jobs:
if: steps.bridge_branch.outcome == 'success'
run: |
docker run --name=sgbridge --network host $BRIDGE_VOLUME -d -uroot \
-e GITHUB_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPSTOOLS_REPO \
-e GITHUB_HEAD_REF -e BRIDGE_SOCKET -e QDR_CHANNEL -e OPENSTACK_REPO \
Copy link
Contributor

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.


linters:
disable-all: true
enable:
- bodyclose
- depguard
# - depguard
Copy link
Contributor

Choose a reason for hiding this comment

The 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants