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

fix linter in tpg #9243

Merged
merged 1 commit into from
May 27, 2021
Merged

fix linter in tpg #9243

merged 1 commit into from
May 27, 2021

Conversation

ScottSuarez
Copy link
Collaborator

@ScottSuarez ScottSuarez commented May 26, 2021

Copy link
Collaborator

@melinath melinath left a comment

Choose a reason for hiding this comment

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

I still get the following errors locally that aren't in CI:

google/resource_container_cluster_test.go:2366:6: func `testAccContainerCluster_updateVersion` is unused (unused)
google/resource_container_node_pool_test.go:1284:6: func `testAccContainerNodePool_version` is unused (unused)
google/resource_container_node_pool_test.go:1308:6: func `testAccContainerNodePool_updateVersion` is unused (unused)
google/resource_container_cluster_test.go:2644:6: func `testAccContainerCluster_withNodePoolLowerVersion` is unused (unused)
google/resource_container_cluster_test.go:2351:6: func `testAccContainerCluster_withLowerVersion` is unused (unused)
google/resource_container_cluster_test.go:2665:6: func `testAccContainerCluster_withNodePoolUpdateVersion` is unused (unused)

@ScottSuarez
Copy link
Collaborator Author

ScottSuarez commented May 27, 2021

I still get the following errors locally that aren't in CI:


google/resource_container_cluster_test.go:2366:6: func `testAccContainerCluster_updateVersion` is unused (unused)

google/resource_container_node_pool_test.go:1284:6: func `testAccContainerNodePool_version` is unused (unused)

google/resource_container_node_pool_test.go:1308:6: func `testAccContainerNodePool_updateVersion` is unused (unused)

google/resource_container_cluster_test.go:2644:6: func `testAccContainerCluster_withNodePoolLowerVersion` is unused (unused)

google/resource_container_cluster_test.go:2351:6: func `testAccContainerCluster_withLowerVersion` is unused (unused)

google/resource_container_cluster_test.go:2665:6: func `testAccContainerCluster_withNodePoolUpdateVersion` is unused (unused)

Yeah this is due to a newer version of the linter. This error is legitimate. The tests that use these functions use a t.skip which is considered an early return. We will need to fix those tests to be conditional skips

@ScottSuarez ScottSuarez requested a review from melinath May 27, 2021 17:47
@melinath
Copy link
Collaborator

@ScottSuarez why do those errors not show up in CI? Is it on an old version of the linter?

Copy link
Collaborator

@melinath melinath left a comment

Choose a reason for hiding this comment

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

LGTM - definitely an improvement over the current state. I think it doesn't quite close the ticket as-is, though, since there are still errors that are showing up locally but not in CI.

Copy link
Collaborator

@melinath melinath left a comment

Choose a reason for hiding this comment

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

LGTM - definitely an improvement over the current state. I think it doesn't quite close the ticket as-is, though, since there are still errors that are showing up locally but not in CI.

@ScottSuarez ScottSuarez merged commit 89008b4 into master May 27, 2021
@melinath melinath deleted the fix-lint branch May 27, 2021 21:32
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants