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

Enabled lll linter for test packages #3117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anishbista60
Copy link
Contributor

@anishbista60 anishbista60 commented Sep 14, 2024

Change Overview

  • Enabled the linter lll for test packages

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test
  • 🏗️ Build

Issues

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@anishbista60
Copy link
Contributor Author

@julio-lopez please look into this PR. Iam trying to finish off these linter's issue.

Copy link
Contributor

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

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

@anishbista60 Have you run the tests that are modified in this PR?
It seems that some of them will fail.

@@ -121,7 +121,32 @@ func (kParse *KopiaParseUtilsTestSuite) TestSnapshotInfoFromSnapshotCreateOutput
{
output: `Snapshotting u2@h2:/tmp/aaa1 ...
* 0 hashing, 1 hashed (2 B), 3 cached (4 B), uploaded 5 KB, estimating...
{"id":"00000000000000000000001","source":{"host":"h2","userName":"u2","path":"/tmp/aaa1"},"description":"","startTime":"2021-05-26T05:29:07.206854927Z","endTime":"2021-05-26T05:29:07.207328392Z","rootEntry":{"name":"aaa1","type":"d","mode":"0755","mtime":"2021-05-19T15:45:34.448853232Z","obj":"ka68ba7abe0818b24a2b0647aeeb02f29","summ":{"size":0,"files":1,"symlinks":0,"dirs":1,"maxTime":"2021-05-19T15:45:34.448853232Z","numFailed":0}}}
{
Copy link
Contributor

Choose a reason for hiding this comment

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

I may be wrong, but it seems that this test will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@julio-lopez let me resolve merge confllict

Copy link
Contributor Author

@anishbista60 anishbista60 Sep 23, 2024

Choose a reason for hiding this comment

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

@julio-lopez the changes that i made here is to log file and which will be changed every time . So, enabling this lll linter does not make sense. what do you think ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Have you run the test?

Copy link
Contributor Author

@anishbista60 anishbista60 Sep 25, 2024

Choose a reason for hiding this comment

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

Are you asking for Entire test cases or golint only? .Talking about linter test case, it has passed .

Copy link
Contributor

Choose a reason for hiding this comment

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

Tests as well, it looks like those are going to fail

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, make test went to failure .

ok  	github.com/kanisterio/kanister/pkg/virtualfs	0.011s
FAIL
real 360.99
user 0.05
sys 1.52
make[1]: *** [Makefile:217: run] Error 1
make[1]: Leaving directory '/home/anishbista/kanister'
make: *** [Makefile:165: go-test] Error 2

But honestly unable to figure out the reason behind it .
could you run the test cases here ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @anishbista60,

could you run the test cases here ?

If it's failing for you, it's going to fail for anyone else who tries to run the test.

But honestly unable to figure out the reason behind it .

do you need help figuring out why the test is failing? Do you understand what exactly the test is doing?

Signed-off-by: Anish Bista <[email protected]>
@pavannd1
Copy link
Contributor

@anishbista60 Please rebase and resolve conflicts on this PR.

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