Skip to content

Refactor CI workflow #500

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 2 commits into from
Jun 12, 2023
Merged

Refactor CI workflow #500

merged 2 commits into from
Jun 12, 2023

Conversation

sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Jan 16, 2023

Signed-off-by: Eric Zhao sczyh16@gmail.com

Describe what this PR does / why we need it

Refactor CI workflow and split CI into two parts with golangci-lint-action.

Update go version to 1.16 in go.mod.

Does this pull request fix one issue?

Resloves #499

Describe how to verify it

The CI should pass.

Special notes for reviews

NONE

…nt-action

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added kind/enhancement Category issues or PRs related to enhancement area/ci Issues or PRs related to CI labels Jan 16, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2023

Codecov Report

Base: 53.17% // Head: 53.17% // No change to project coverage 👍

Coverage data is based on head (abcc9dc) compared to base (0d804bb).
Patch has no changes to coverable lines.

❗ Current head abcc9dc differs from pull request most recent head ba48bd7. Consider uploading reports for the commit ba48bd7 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #500   +/-   ##
=======================================
  Coverage   53.17%   53.17%           
=======================================
  Files          91       91           
  Lines        5896     5896           
=======================================
  Hits         3135     3135           
  Misses       2414     2414           
  Partials      347      347           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@jnan806 jnan806 left a comment

Choose a reason for hiding this comment

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

image

I think can *_test.go can be ignored, the ignore setting is:

image

Copy link
Contributor

@jnan806 jnan806 left a comment

Choose a reason for hiding this comment

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

image

If you want to ignore this error, you can set like:

image

details can refers to https://staticcheck.io/docs/checks/

# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
skip-dirs:
- example
Copy link
Contributor

@jnan806 jnan806 Jan 16, 2023

Choose a reason for hiding this comment

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

recommends to add -test

skip-dirs:
- example
skip-files:
- ".*\\.pb\\.go$"
Copy link
Contributor

@jnan806 jnan806 Jan 16, 2023

Choose a reason for hiding this comment

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

recommends to add - _test.go

@@ -0,0 +1,29 @@
# Options for analysis running.
run:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
Copy link
Contributor

Choose a reason for hiding this comment

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

recommends to add

# Include test files or not.
# Default: true
tests: false

image

@jnan806
Copy link
Contributor

jnan806 commented Jan 16, 2023

following errors occurred in comments when check gofmt, I have no idea to fix it now.

image

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
Copy link
Collaborator

@binbin0325 binbin0325 left a comment

Choose a reason for hiding this comment

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

fix lint check , delete core/hotspot/rule.go#104

@sczyh30
Copy link
Member Author

sczyh30 commented Jun 12, 2023

@jnan806 @binbin0325 I'll merge this PR first (using rebase), then fix the lint error and improve linter config.

@sczyh30 sczyh30 merged commit 9262c31 into alibaba:master Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues or PRs related to CI kind/enhancement Category issues or PRs related to enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants