-
Notifications
You must be signed in to change notification settings - Fork 695
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
[LFX-23Q1]: Improve code quality and add unit tests of chaos center components. #3892
Comments
Hi @imrajdas |
Hey @anurag-rajawat, please apply at lfx mentorship portal. We will review all the applications. https://lfx.linuxfoundation.org/tools/mentorship/ To learn about litmus chaos, please go through docs and youtube videos |
Hey @imrajdas, how can we verify the changes made to backend components as we currently don't have any tests? |
@anurag-rajawat please refer here: https://github.com/litmuschaos/litmus-e2e |
Hi @imrajdas, I am interested to contribute to this project under the LFX mentorship program and hence I applied to it now. Earlier, I have been a Google Summer of Code Mentor for a project that was related to end to end tests and hence I think this project somewhat suits my skill sets. Thanks!! |
Hey everyone! I have been exploring litmuschaos for a couple of weeks now and I have applied to be a mentee for this project under LFX mentorship. Looking forward to collaborate on this issue and eventually many more! |
How do I resolve this: pkg/utils/grpc.go:13:30: SA4009: argument conn is overwritten before first use (staticcheck)
func GetProjectGRPCSvcClient(conn *grpc.ClientConn) (grpc2.ProjectClient, *grpc.ClientConn) {
^ In // GetProjectGRPCSvcClient returns an RPC client for Project service
func GetProjectGRPCSvcClient(conn *grpc.ClientConn) (grpc2.ProjectClient, *grpc.ClientConn) {
litmusGqlGrpcEndpoint := os.Getenv("LITMUS_GQL_GRPC_ENDPOINT")
litmusGqlGrpcPort := os.Getenv("LITMUS_GQL_GRPC_PORT")
if litmusGqlGrpcEndpoint == "" {
litmusGqlGrpcEndpoint = DefaultLitmusGqlGrpcEndpoint
}
if litmusGqlGrpcPort == "" {
litmusGqlGrpcPort = DefaultLitmusGqlGrpcPort
}
conn, err := grpc.Dial(litmusGqlGrpcEndpoint+litmusGqlGrpcPort, grpc.WithInsecure(), grpc.WithBlock())
if err != nil {
logrus.Fatalf("did not connect: %s", err)
}
return grpc2.NewProjectClient(conn), conn
} If we are not using |
Looks like we have to take care of cancelling the context in pkg/utils/mongo_database.go:16:7: lostcancel: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak (govet)
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
^ There are possible leaks: |
This issue has been closed. @namkyu1999 has resolved the LFX issues. |
Feature requests:
golangci-lint
to list all the issues in the codebaseComponents:
The text was updated successfully, but these errors were encountered: