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

Removing double imports found by staticcheck #7791

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

ytimocin
Copy link
Contributor

@ytimocin ytimocin commented Aug 8, 2024

Description

Removing double imports found by staticcheck

Type of change

  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

@ytimocin ytimocin requested review from a team as code owners August 8, 2024 22:29
@ytimocin ytimocin temporarily deployed to functional-tests August 8, 2024 22:29 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Aug 8, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 61db2ce
Unique ID funcd36eada8e8
Image tag pr-funcd36eada8e8
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-funcd36eada8e8
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-funcd36eada8e8
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funcd36eada8e8
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funcd36eada8e8
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting datastoresrp-cloud functional tests...
⌛ Starting corerp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ datastoresrp-cloud functional tests succeeded
❌ corerp-cloud functional test failed. Please check the logs for more details
✅ ucp-cloud functional tests succeeded
⌛ Starting corerp-cloud functional tests...
✅ corerp-cloud functional tests succeeded

Copy link

github-actions bot commented Aug 8, 2024

Unit Tests

3 297 tests  +2   3 291 ✅ +4   3m 54s ⏱️ -13s
  263 suites ±0       6 💤 ±0 
    1 files   ±0       0 ❌  - 2 

Results for commit 61db2ce. ± Comparison against base commit a4a4b90.

Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.04%. Comparing base (4ba025d) to head (61db2ce).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7791      +/-   ##
==========================================
- Coverage   61.05%   61.04%   -0.02%     
==========================================
  Files         523      523              
  Lines       27367    27432      +65     
==========================================
+ Hits        16710    16745      +35     
- Misses       9185     9207      +22     
- Partials     1472     1480       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -30,7 +30,6 @@ import (
"github.com/radius-project/radius/pkg/cli/framework"
"github.com/radius-project/radius/pkg/cli/output"
"github.com/radius-project/radius/pkg/cli/workspaces"
"github.com/radius-project/radius/pkg/corerp/api/v20231001preview"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something we could turn on in golanglint-ci? I think this is a good change, I'm just wondering how we could automate it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found it by using staticcheck ./.... We can add that to a CI/CD we have.

Copy link
Contributor

Choose a reason for hiding this comment

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

I did some research, it sounds like we should add staticcheck. I thought it was bundled into golanglint-ci but it isn't exactly, sounds like there is a history there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created this feature request: #7795. cc/ @rynowak

@ytimocin ytimocin merged commit 83f57c2 into main Aug 8, 2024
29 checks passed
@ytimocin ytimocin deleted the ytimocin/removeDoubleImports branch August 8, 2024 23:30
superbeeny pushed a commit to superbeeny/radius that referenced this pull request Aug 14, 2024
# Description
Removing double imports found by staticcheck

## Type of change
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

Signed-off-by: ytimocin <[email protected]>
Reshrahim pushed a commit to Reshrahim/radius that referenced this pull request Aug 27, 2024
# Description
Removing double imports found by staticcheck

## Type of change
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

Signed-off-by: ytimocin <[email protected]>
Signed-off-by: Reshma Abdul Rahim <[email protected]>
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.

4 participants