jx icon indicating copy to clipboard operation
jx copied to clipboard

Upgrade Jenkins X repositories to go 1.19

Open ankitm123 opened this issue 2 years ago • 39 comments

When we were upgrading the go version to 1.18, we noticed that we are limited by the version of go in the goreleaser image. We are now building a custom image where we can set the version of go and install other packages we need. Once that is done, we can start this update work.

Golang supports only 2 major releases: https://endoflife.date/go The latest version of golang is 1.19.2

Follow this guide for information on how to upgrade: https://jenkins-x.io/community/maintainer_guide/go-upgrades/

Before upgrading , we need to upgrade the version of golang in the catalog repository: example (there are other files as well): https://github.com/jenkins-x/jx3-pipeline-catalog/blob/0f0f956d38ffe383ba38d93c1cfe7160a3bec93a/tasks/go/pullrequest.yaml#L37

This is the tentative list of repositories (list will be updated if we find any missing repositories) that we should upgrade:

In the list, there are some packages which need multiple packages updated before we update them, for example: before upgrading jx-api we should upgrade jx-logging.

NOTE: it's fine if you dont follow the order, the order is only there to limit the number of PRs we open as part of an upgrade effort

We will this issue to keep track of which repositories have been upgraded. If you are interested in contributing, please comment

I want to upgrade <repo-name>

When opening a PR in these repos to upgrade the go version, remember to include

related to #<issue-number>

Dont use fixes as that will close this issue once ur PR is merged. Once your PR is merged, comment in this issue:

<reponame> has been upgraded to 1.19.2

ankitm123 avatar Oct 20 '22 23:10 ankitm123

I want to upgrade jx-kubeclient

amarps avatar Oct 24 '22 13:10 amarps

I want to upgrade go-scm

KiranSatyaRaj avatar Nov 21 '22 04:11 KiranSatyaRaj

I want to upgrade jx-preview

ankitm123 avatar Nov 21 '22 13:11 ankitm123

go-scm Go version has been upgraded to 1,19.3 and it's golangci-lint to 1.50.1

KiranSatyaRaj avatar Nov 21 '22 14:11 KiranSatyaRaj

I want to upgrade logrus-stackdriver-formatter

KiranSatyaRaj avatar Nov 21 '22 15:11 KiranSatyaRaj

i want to upgrade jx-logging

PratikforCoding avatar Nov 21 '22 20:11 PratikforCoding

I want to upgrade secretfacade

PratikforCoding avatar Nov 21 '22 20:11 PratikforCoding

I want to upgrade jx-api

PratikforCoding avatar Nov 21 '22 20:11 PratikforCoding

I want to upgrade jx-helpers

PratikforCoding avatar Nov 21 '22 21:11 PratikforCoding

I want to upgrade jx-git-operator

PratikforCoding avatar Nov 21 '22 21:11 PratikforCoding

I want to upgrade bdd-jx3

PratikforCoding avatar Nov 21 '22 21:11 PratikforCoding

I want to upgrade jx-gitops

PratikforCoding avatar Nov 21 '22 22:11 PratikforCoding

I want to upgrade jx-changelog

PratikforCoding avatar Nov 22 '22 08:11 PratikforCoding

I want to upgrade jx-secret

PratikforCoding avatar Nov 22 '22 09:11 PratikforCoding

I want to upgrade jx-admin

PratikforCoding avatar Nov 22 '22 09:11 PratikforCoding

I want to upgrade jx-admin

Hey Pratik, try running test cases and building the repo, you might find other issues as well if possible solve them too.

KiranSatyaRaj avatar Nov 22 '22 09:11 KiranSatyaRaj

jx-logging has been upgraded to 1.19.3

PratikforCoding avatar Nov 22 '22 15:11 PratikforCoding

secretfacade has been upgraded to 1.19.3

PratikforCoding avatar Nov 22 '22 15:11 PratikforCoding

jx-api has been upgraded to 1.19.3

PratikforCoding avatar Nov 22 '22 15:11 PratikforCoding

jx-helpers has been upgraded to 1.19.3

PratikforCoding avatar Nov 22 '22 15:11 PratikforCoding

bdd-jx3 has been upgraded to 1.19.3

PratikforCoding avatar Nov 22 '22 15:11 PratikforCoding

jx-gitops has been upgraded to 1.19.3

PratikforCoding avatar Nov 22 '22 15:11 PratikforCoding

jx-changelog has been upgraded to 1.19.3

PratikforCoding avatar Nov 22 '22 15:11 PratikforCoding

I want to upgrade jx-admin

SrutiMi avatar Nov 22 '22 17:11 SrutiMi

@SrutiMi try to upgrade from jx-promote and onwards... i have updated the jx-admin and it just need an approval to merge

PratikforCoding avatar Nov 22 '22 17:11 PratikforCoding

I want to upgrade jx-pipeline.

SrutiMi avatar Nov 23 '22 04:11 SrutiMi

I want to upgrade jx-updatebot

SrutiMi avatar Nov 23 '22 16:11 SrutiMi

Hey @ankitm123 , this isuue is still open to work?

ADITYADAS1999 avatar Nov 25 '22 14:11 ADITYADAS1999

@ADITYADAS1999 check the list in the first post. the repos that are not marked need to be updated. Once a repo gets updated, a bot automatically updates the list.

aahmed7 avatar Nov 26 '22 10:11 aahmed7

@ADITYADAS1999 check the list in the first post. the repos that are not marked need to be updated. Once a repo gets updated, a bot automatically updates the list.

Thanks for the information @aahmed7

ADITYADAS1999 avatar Nov 26 '22 13:11 ADITYADAS1999