Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (3.8.15) (base) ☁ enterprise [main] ⚡ go run cmd/enterprise/main.go server --llm-api-version "2024-02-01" --llm-base-url "https://api.keploy.io" --disable-ansi --debug
- ▓██▓▄
- ▓▓▓▓██▓█▓▄
- ████████▓▒
- ▀▓▓███▄ ▄▄ ▄ ▌
- ▄▌▌▓▓████▄ ██ ▓█▀ ▄▌▀▄ ▓▓▌▄ ▓█ ▄▌▓▓▌▄ ▌▌ ▓
- ▓█████████▌▓▓ ██▓█▄ ▓█▄▓▓ ▐█▌ ██ ▓█ █▌ ██ █▌ █▓
- ▓▓▓▓▀▀▀▀▓▓▓▓▓▓▌ ██ █▓ ▓▌▄▄ ▐█▓▄▓█▀ █▓█ ▀█▄▄█▀ █▓█
- ▓▌ ▐█▌ █▌
- ▓ ENTERPRISE EDITION
- Keploy Enterprise: 2-dev
- 2025-02-18T13:41:09.177+0530 INFO provider/cmd.go:486 Color encoding is disabled
- 2025-02-18T13:41:09.177+0530 DEBUG provider/cmd.go:489 config has been initialised {"for cmd": "server", "config": {"path":"","appId":0,"appName":"enterprise","command":"","templatize":{"testSets":[]},"port":0,"dnsPort":26789,"proxyPort":16789,"debug":true,"disableTele":false,"disableANSI":true,"inDocker":false,"containerName":"","networkName":"","buildDelay":30,"test":{"selectedTests":{},"globalNoise":{"global":{},"test-sets":{}},"delay":5,"host":"","port":0,"apiTimeout":5,"skipCoverage":false,"coverageReportPath":"","ignoreOrdering":true,"mongoPassword":"default@123","language":"","removeUnusedMocks":false,"fallBackOnMiss":false,"jacocoAgentPath":"","basePath":"","mocking":true,"ignoredTests":{},"disableLineCoverage":false,"disableMockUpload":false,"useLocalMock":false,"updateTemplate":false},"record":{"filters":[],"recordTimer":0},"gen":{"sourceFilePath":"","testFilePath":"","coverageReportPath":"","testCommand":"","coverageFormat":"","expectedCoverage":0,"maxIterations":0,"testDir":"","llmBaseUrl":"","model":"","llmApiVersion":"","additionalPrompt":"","functionUnderTest":"","flakiness":false},"normalize":{"selectedTests":null,"testReport":""},"rerecord":{"selectedTests":null,"filters":null,"host":"","port":0},"configPath":".","bypassRules":[],"enableTesting":false,"generateGithubActions":false,"keployContainer":"keploy-v2","keployNetwork":"keploy-network","cmdType":"native","contract":{"services":[],"tests":[],"path":"","download":false,"generate":false,"driven":"consumer","mappings":{"servicesMapping":{},"self":"s1"}},"inCi":false}}
- 2025-02-18T13:41:09.178+0530 DEBUG provider/cmd.go:148 validating utg server flags
- [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- - using env: export GIN_MODE=release
- - using code: gin.SetMode(gin.ReleaseMode)
- [GIN-debug] GET /api/health --> github.com/keploy/enterprise/pkg/server.(*utg).HealthCheck-fm (2 handlers)
- [GIN-debug] GET /api/userStats --> github.com/keploy/enterprise/pkg/server.(*utg).GetUserStats-fm (2 handlers)
- [GIN-debug] GET /api/folder --> github.com/keploy/enterprise/pkg/server.(*utg).GetFolderStructure-fm (2 handlers)
- [GIN-debug] GET /api/function --> github.com/keploy/enterprise/pkg/server.(*utg).GetFunction-fm (2 handlers)
- [GIN-debug] GET /api/fileFunction --> github.com/keploy/enterprise/pkg/server.(*utg).GetFileFunction-fm (2 handlers)
- [GIN-debug] GET /api/findTest --> github.com/keploy/enterprise/pkg/server.(*utg).FindTest-fm (2 handlers)
- [GIN-debug] POST /api/generate --> github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests-fm (2 handlers)
- [GIN-debug] POST /api/coverage --> github.com/keploy/enterprise/pkg/server.(*utg).CalculateCoverage-fm (2 handlers)
- [GIN-debug] POST /api/execute --> github.com/keploy/enterprise/pkg/server.(*utg).Execute-fm (2 handlers)
- [GIN-debug] POST /api/closeSession --> github.com/keploy/enterprise/pkg/server.(*utg).CloseSession-fm (2 handlers)
- [GIN-debug] POST /api/shutDown --> github.com/keploy/enterprise/pkg/server.(*utg).Shutdown-fm (2 handlers)
- 2025-02-18T13:41:09.178+0530 INFO server/server.go:44 Starting server {"address": ":4407"}
- 2025-02-18T13:41:15.539+0530 INFO server/utg.go:684 Health check successful
- 2025-02-18T13:41:15.863+0530 INFO utgenv2/analytics.go:129 User stats retrieved successfully {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:15.863+0530 INFO utgenv2/gen.go:794 User Stats {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:15.863+0530 INFO server/utg.go:698 User stats retrieved successfully {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:15.863+0530 INFO utgenv2/analytics.go:129 User stats retrieved successfully {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:15.863+0530 INFO utgenv2/gen.go:794 User Stats {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:15.863+0530 INFO server/utg.go:698 User stats retrieved successfully {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:17.708+0530 INFO utgenv2/analytics.go:129 User stats retrieved successfully {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:17.708+0530 INFO utgenv2/gen.go:794 User Stats {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:17.708+0530 INFO server/utg.go:698 User stats retrieved successfully {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
- 2025-02-18T13:41:20.815+0530 INFO server/utg.go:444 Generate test request received{"request": {"sourceFilePath":"/home/akash/Desktop/demo/myapp/mathutil/mathutil.go","rootDir":"/home/akash/Desktop/demo/myapp","additionalPrompt":"","maxIterations":5,"flakiness":false,"functionUnderTest":"","expectedCoverage":0}}
- 2025-02-18T13:41:20.816+0530 INFO server/utg.go:531 Generating tests {"configError": "json: unsupported type: chan interface {}"}
- 2025-02-18T13:41:20.816+0530 INFO utgenv2/gen.go:115 Session ID: 3a1678c4-df62-412d-bec8-1434fa550c0e
- 2025-02-18T13:41:20.837+0530 INFO utgenv2/utils.go:694 Installing Go coverage tools...
- 2025-02-18T13:41:20.837+0530 INFO utgenv2/utils.go:701 Running command: go install github.com/axw/gocov/gocov@v1.1.0
- 2025-02-18T13:41:20.840+0530 INFO utgenv2/cmd_others.go:36 Running command on unix{"command": "go install github.com/axw/gocov/[email protected]", "dir": "/home/akash/Desktop/demo/myapp"}
- 2025-02-18T13:41:22.181+0530 INFO utgenv2/utils.go:701 Running command: go install github.com/AlekSi/gocov-xml@v1.1.0
- 2025-02-18T13:41:22.182+0530 INFO utgenv2/cmd_others.go:36 Running command on unix{"command": "go install github.com/AlekSi/[email protected]", "dir": "/home/akash/Desktop/demo/myapp"}
- 2025-02-18T13:41:24.484+0530 INFO utgenv2/utils.go:701 Running command: go install github.com/vektra/mockery/v2@v2.52.1
- 2025-02-18T13:41:24.485+0530 INFO utgenv2/cmd_others.go:36 Running command on unix{"command": "go install github.com/vektra/mockery/[email protected]", "dir": "/home/akash/Desktop/demo/myapp"}
- go: github.com/vektra/mockery/v2@v2.52.1 requires go >= 1.23; switching to go1.23.6
- 2025-02-18T13:41:28.434+0530 INFO utgenv2/gen.go:151 Generating tests for file: /home/akash/Desktop/demo/myapp/mathutil/mathutil.go
- 2025-02-18T13:41:28.434+0530 INFO utgenv2/gen.go:1360 Running test command to generate coverage report {"cmd": "go mod tidy && go test -tags=test -v ./... -coverprofile=/tmp/home/akash/Desktop/demo/myapp/coverage.out && $(go env GOPATH)/bin/gocov convert /tmp/home/akash/Desktop/demo/myapp/coverage.out | $(go env GOPATH)/bin/gocov-xml > /tmp/home/akash/Desktop/demo/myapp/coverage.xml"}
- Running tests... Please wait.2025-02-18T13:41:28.435+0530 INFO utgenv2/cmd_others.go:36 Running command on unix {"command": "go mod tidy && go test -tags=test -v ./... -coverprofile=/tmp/home/akash/Desktop/demo/myapp/coverage.out && $(go env GOPATH)/bin/gocov convert /tmp/home/akash/Desktop/demo/myapp/coverage.out | $(go env GOPATH)/bin/gocov-xml > /tmp/home/akash/Desktop/demo/myapp/coverage.xml", "dir": "/home/akash/Desktop/demo/myapp"}
- golang_coverage_test coverage: 0.0% of statements
- testing: warning: no tests to run
- PASS
- coverage: 0.0% of statements
- ok golang_coverage_test/mathutil 0.003s coverage: 0.0% of statements [no tests to run]
- === RUN TestToUpper
- --- PASS: TestToUpper (0.00s)
- PASS
- coverage: 16.7% of statements
- ok golang_coverage_test/stringutil 0.003s coverage: 16.7% of statements
- 2025-02-18T13:41:33.438+0530 INFO utgenv2/gen.go:1389 Test command completed in 0.31s
- Getting indentation for new Tests...
- 2025-02-18T13:41:35.228+0530 DEBUG utgenv2/aiClient.go:43 Response from AI Client {"responseError": "json: unsupported type: func() (io.ReadCloser, error)"}
- 2025-02-18T13:41:35.229+0530 DEBUG utgenv2/aiClient.go:44 AI Client Status Code {"response status": 200}
- 2025-02-18T13:41:35.229+0530 ERROR utgenv2/gen.go:1212 Error unmarshalling test headers {"error": "error unmarshaling yaml: yaml: unmarshal errors:\n line 5: cannot unmarshal !!str `1 tab` into int"}
- github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).getIndentation
- /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:1212
- github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).getCursor
- /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:1170
- github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).GenerateTests
- /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:312
- github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests
- /home/akash/Desktop/githubrepo/enterprise/pkg/server/utg.go:543
- github.com/gin-gonic/gin.(*Context).Next
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
- github.com/keploy/enterprise/pkg/server.(*Server).Serve.recoveryMiddleware.func1
- /home/akash/Desktop/githubrepo/enterprise/pkg/server/middleware.go:25
- github.com/gin-gonic/gin.(*Context).Next
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
- github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
- github.com/gin-gonic/gin.(*Engine).ServeHTTP
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
- net/http.serverHandler.ServeHTTP
- /usr/lib/go-1.22/src/net/http/server.go:3142
- net/http.(*conn).serve
- /usr/lib/go-1.22/src/net/http/server.go:2044
- 2025-02-18T13:41:35.229+0530 ERROR utgenv2/gen.go:314 error getting cursor {"error": "failed to analyze test headers indentation: error unmarshaling yaml: yaml: unmarshal errors:\n line 5: cannot unmarshal !!str `1 tab` into int"}
- github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).GenerateTests
- /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:314
- github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests
- /home/akash/Desktop/githubrepo/enterprise/pkg/server/utg.go:543
- github.com/gin-gonic/gin.(*Context).Next
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
- github.com/keploy/enterprise/pkg/server.(*Server).Serve.recoveryMiddleware.func1
- /home/akash/Desktop/githubrepo/enterprise/pkg/server/middleware.go:25
- github.com/gin-gonic/gin.(*Context).Next
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
- github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
- github.com/gin-gonic/gin.(*Engine).ServeHTTP
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
- net/http.serverHandler.ServeHTTP
- /usr/lib/go-1.22/src/net/http/server.go:3142
- net/http.(*conn).serve
- /usr/lib/go-1.22/src/net/http/server.go:2044
- 2025-02-18T13:41:35.229+0530 ERROR server/utg.go:551 Error generating tests {"error": "failed to analyze test headers indentation: error unmarshaling yaml: yaml: unmarshal errors:\n line 5: cannot unmarshal !!str `1 tab` into int"}
- github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests
- /home/akash/Desktop/githubrepo/enterprise/pkg/server/utg.go:551
- github.com/gin-gonic/gin.(*Context).Next
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
- github.com/keploy/enterprise/pkg/server.(*Server).Serve.recoveryMiddleware.func1
- /home/akash/Desktop/githubrepo/enterprise/pkg/server/middleware.go:25
- github.com/gin-gonic/gin.(*Context).Next
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
- github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
- github.com/gin-gonic/gin.(*Engine).ServeHTTP
- /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
- net/http.serverHandler.ServeHTTP
- /usr/lib/go-1.22/src/net/http/server.go:3142
- net/http.(*conn).serve
- /usr/lib/go-1.22/src/net/http/server.go:2044
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement