Skip to content

[baseserver] fix CI lint failed #10161

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

Merged
merged 1 commit into from
May 20, 2022
Merged

[baseserver] fix CI lint failed #10161

merged 1 commit into from
May 20, 2022

Conversation

iQQBot
Copy link
Contributor

@iQQBot iQQBot commented May 20, 2022

Description

After #10157 is merge, all builds is failed because below error, see detail in https://werft.gitpod-dev.com/job/gitpod-build-main.3323

baseserver/server.go:161:2: S1000: should use a simple channel send/receive instead of `select` with a single case (gosimple)
	select {

This PR fixes that, This is just a simplified fix, I see that the comments say that you also need to exit if you receive a server error, but I haven't had time to read the code yet @andrew-farries

Related Issue(s)

Fixes #

How to test

see werft job is pass

Release Notes

NONE

Documentation

@iQQBot iQQBot marked this pull request as ready for review May 20, 2022 18:24
@iQQBot iQQBot requested review from a team May 20, 2022 18:24
@github-actions github-actions bot added team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team labels May 20, 2022
Copy link
Contributor

@sagor999 sagor999 left a comment

Choose a reason for hiding this comment

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

why this was not caught by lint during normal CI build? 🤔

@iQQBot
Copy link
Contributor Author

iQQBot commented May 20, 2022

@sagor999 I guess it related with golang version, golangci-lint version

actual, If you don't use the previous version of the dev image, the build will always error out

https://github.com/gitpod-io/gitpod/runs/6450784405?check_suite_focus=true

@roboquat roboquat merged commit d48c044 into main May 20, 2022
@roboquat roboquat deleted the pd/fix-gosimple branch May 20, 2022 18:49
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/XS team: webapp Issue belongs to the WebApp team team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants