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

chore: upgrade Golang and Linter #1445

Merged
merged 8 commits into from
Dec 20, 2024
Merged

chore: upgrade Golang and Linter #1445

merged 8 commits into from
Dec 20, 2024

Conversation

tommartensen
Copy link
Contributor

@tommartensen tommartensen commented Dec 18, 2024

A little present for the holidays. I also tried to bump dependencies, but it failed e2e tests - we should do them one by one in separate PRs (or use Dependabot).

@tommartensen tommartensen self-assigned this Dec 18, 2024
@rhacs-bot
Copy link
Contributor

rhacs-bot commented Dec 18, 2024

A single node development cluster (infra-pr-1445) was allocated in production infra for this PR.

CI will attempt to deploy quay.io/rhacs-eng/infra-server:0.10.60-8-gb01c587521 to it.

🔌 You can connect to this cluster with:

gcloud container clusters get-credentials infra-pr-1445 --zone us-central1-a --project acs-team-temp-dev

🛠️ And pull infractl from the deployed dev infra-server with:

nohup kubectl -n infra port-forward svc/infra-server-service 8443:8443 &
make pull-infractl-from-dev-server

🚲 You can then use the dev infra instance e.g.:

bin/infractl -k -e localhost:8443 whoami

⚠️ Any clusters that you start using your dev infra instance should have a lifespan shorter then the development cluster instance. Otherwise they will not be destroyed when the dev infra instance ceases to exist when the development cluster is deleted. ⚠️

Further Development

☕ If you make changes, you can commit and push and CI will take care of updating the development cluster.

🚀 If you only modify configuration (chart/infra-server/configuration) or templates (chart/infra-server/{static,templates}), you can get a faster update with:

make install-local

Logs

Logs for the development infra depending on your @redhat.com authuser:

Or:

kubectl -n infra logs -l app=infra-server --tail=1 -f

@tommartensen tommartensen changed the title chore: upgrade dependencies (next attempt) chore: upgrade Golang and Linter Dec 19, 2024
@tommartensen tommartensen marked this pull request as ready for review December 19, 2024 11:50
@tommartensen tommartensen requested a review from a team as a code owner December 19, 2024 11:50
Copy link
Contributor

@davdhacs davdhacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎁 🥳

@@ -168,8 +168,6 @@ func (s *clusterImpl) List(ctx context.Context, request *v1.ClusterListRequest)
// Loop over all of the workflows, and keep only the ones that match our
// request criteria.
for _, workflow := range workflowList.Items {
workflow := workflow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

were these flagged by the linting?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, detected by copyloopvar. This was a long standing issue in Go and resolved in 1.22.
See https://go.dev/blog/loopvar-preview.

@tommartensen tommartensen merged commit 32ca82b into master Dec 20, 2024
10 checks passed
@tommartensen tommartensen deleted the tm/upgrade-deps-2 branch December 20, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants