Advertisement
akashkumar7902

Untitled

Feb 18th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 13.63 KB | None | 0 0
  1. (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
  2.  
  3.        ▓██▓▄
  4.     ▓▓▓▓██▓█▓▄
  5.      ████████▓▒
  6.           ▀▓▓███▄      ▄▄   ▄               ▌
  7.          ▄▌▌▓▓████▄    ██ ▓█▀  ▄▌▀▄  ▓▓▌▄   ▓█  ▄▌▓▓▌▄ ▌▌   ▓
  8.        ▓█████████▌▓▓   ██▓█▄  ▓█▄▓▓ ▐█▌  ██ ▓█  █▌  ██  █▌ █▓
  9.       ▓▓▓▓▀▀▀▀▓▓▓▓▓▓▌  ██  █▓  ▓▌▄▄ ▐█▓▄▓█▀ █▓█ ▀█▄▄█▀   █▓█
  10.        ▓▌                           ▐█▌                   █▌
  11.         ▓                                   ENTERPRISE EDITION
  12.  
  13. Keploy Enterprise: 2-dev
  14.  
  15. 2025-02-18T13:41:09.177+0530    INFO    provider/cmd.go:486     Color encoding is disabled
  16. 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}}
  17. 2025-02-18T13:41:09.178+0530    DEBUG   provider/cmd.go:148     validating utg server flags
  18. [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
  19.  - using env:   export GIN_MODE=release
  20.  - using code:  gin.SetMode(gin.ReleaseMode)
  21.  
  22. [GIN-debug] GET    /api/health               --> github.com/keploy/enterprise/pkg/server.(*utg).HealthCheck-fm (2 handlers)
  23. [GIN-debug] GET    /api/userStats            --> github.com/keploy/enterprise/pkg/server.(*utg).GetUserStats-fm (2 handlers)
  24. [GIN-debug] GET    /api/folder               --> github.com/keploy/enterprise/pkg/server.(*utg).GetFolderStructure-fm (2 handlers)
  25. [GIN-debug] GET    /api/function             --> github.com/keploy/enterprise/pkg/server.(*utg).GetFunction-fm (2 handlers)
  26. [GIN-debug] GET    /api/fileFunction         --> github.com/keploy/enterprise/pkg/server.(*utg).GetFileFunction-fm (2 handlers)
  27. [GIN-debug] GET    /api/findTest             --> github.com/keploy/enterprise/pkg/server.(*utg).FindTest-fm (2 handlers)
  28. [GIN-debug] POST   /api/generate             --> github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests-fm (2 handlers)
  29. [GIN-debug] POST   /api/coverage             --> github.com/keploy/enterprise/pkg/server.(*utg).CalculateCoverage-fm (2 handlers)
  30. [GIN-debug] POST   /api/execute              --> github.com/keploy/enterprise/pkg/server.(*utg).Execute-fm (2 handlers)
  31. [GIN-debug] POST   /api/closeSession         --> github.com/keploy/enterprise/pkg/server.(*utg).CloseSession-fm (2 handlers)
  32. [GIN-debug] POST   /api/shutDown             --> github.com/keploy/enterprise/pkg/server.(*utg).Shutdown-fm (2 handlers)
  33. 2025-02-18T13:41:09.178+0530    INFO    server/server.go:44     Starting server {"address": ":4407"}
  34. 2025-02-18T13:41:15.539+0530    INFO    server/utg.go:684       Health check successful
  35. 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}}
  36. 2025-02-18T13:41:15.863+0530    INFO    utgenv2/gen.go:794      User Stats      {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
  37. 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}}
  38. 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}}
  39. 2025-02-18T13:41:15.863+0530    INFO    utgenv2/gen.go:794      User Stats      {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
  40. 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}}
  41. 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}}
  42. 2025-02-18T13:41:17.708+0530    INFO    utgenv2/gen.go:794      User Stats      {"stats": {"linesCovered":147,"passedTests":39,"failedTests":149,"noCoverageTests":44}}
  43. 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}}
  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}}
  45. 2025-02-18T13:41:20.816+0530    INFO    server/utg.go:531       Generating tests        {"configError": "json: unsupported type: chan interface {}"}
  46. 2025-02-18T13:41:20.816+0530    INFO    utgenv2/gen.go:115      Session ID: 3a1678c4-df62-412d-bec8-1434fa550c0e
  47. 2025-02-18T13:41:20.837+0530    INFO    utgenv2/utils.go:694    Installing Go coverage tools...
  48. 2025-02-18T13:41:20.837+0530    INFO    utgenv2/utils.go:701    Running command: go install github.com/axw/gocov/gocov@v1.1.0
  49. 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"}
  50. 2025-02-18T13:41:22.181+0530    INFO    utgenv2/utils.go:701    Running command: go install github.com/AlekSi/gocov-xml@v1.1.0
  51. 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"}
  52. 2025-02-18T13:41:24.484+0530    INFO    utgenv2/utils.go:701    Running command: go install github.com/vektra/mockery/v2@v2.52.1
  53. 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"}
  54. go: github.com/vektra/mockery/v2@v2.52.1 requires go >= 1.23; switching to go1.23.6
  55. 2025-02-18T13:41:28.434+0530    INFO    utgenv2/gen.go:151      Generating tests for file: /home/akash/Desktop/demo/myapp/mathutil/mathutil.go
  56. 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"}
  57. 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"}
  58.         golang_coverage_test            coverage: 0.0% of statements
  59. testing: warning: no tests to run
  60. PASS
  61. coverage: 0.0% of statements
  62. ok      golang_coverage_test/mathutil   0.003s  coverage: 0.0% of statements [no tests to run]
  63. === RUN   TestToUpper
  64. --- PASS: TestToUpper (0.00s)
  65. PASS
  66. coverage: 16.7% of statements
  67. ok      golang_coverage_test/stringutil 0.003s  coverage: 16.7% of statements
  68. 2025-02-18T13:41:33.438+0530    INFO    utgenv2/gen.go:1389     Test command completed in 0.31s
  69. Getting indentation for new Tests...
  70. 2025-02-18T13:41:35.228+0530    DEBUG   utgenv2/aiClient.go:43  Response from AI Client {"responseError": "json: unsupported type: func() (io.ReadCloser, error)"}
  71. 2025-02-18T13:41:35.229+0530    DEBUG   utgenv2/aiClient.go:44  AI Client Status Code   {"response status": 200}
  72. 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"}
  73. github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).getIndentation
  74.         /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:1212
  75. github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).getCursor
  76.         /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:1170
  77. github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).GenerateTests
  78.         /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:312
  79. github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests
  80.         /home/akash/Desktop/githubrepo/enterprise/pkg/server/utg.go:543
  81. github.com/gin-gonic/gin.(*Context).Next
  82.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
  83. github.com/keploy/enterprise/pkg/server.(*Server).Serve.recoveryMiddleware.func1
  84.         /home/akash/Desktop/githubrepo/enterprise/pkg/server/middleware.go:25
  85. github.com/gin-gonic/gin.(*Context).Next
  86.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
  87. github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
  88.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
  89. github.com/gin-gonic/gin.(*Engine).ServeHTTP
  90.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
  91. net/http.serverHandler.ServeHTTP
  92.         /usr/lib/go-1.22/src/net/http/server.go:3142
  93. net/http.(*conn).serve
  94.         /usr/lib/go-1.22/src/net/http/server.go:2044
  95. 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"}
  96. github.com/keploy/enterprise/pkg/service/utgenv2.(*UnitTestGenerator).GenerateTests
  97.         /home/akash/Desktop/githubrepo/enterprise/pkg/service/utgenv2/gen.go:314
  98. github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests
  99.         /home/akash/Desktop/githubrepo/enterprise/pkg/server/utg.go:543
  100. github.com/gin-gonic/gin.(*Context).Next
  101.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
  102. github.com/keploy/enterprise/pkg/server.(*Server).Serve.recoveryMiddleware.func1
  103.         /home/akash/Desktop/githubrepo/enterprise/pkg/server/middleware.go:25
  104. github.com/gin-gonic/gin.(*Context).Next
  105.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
  106. github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
  107.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
  108. github.com/gin-gonic/gin.(*Engine).ServeHTTP
  109.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
  110. net/http.serverHandler.ServeHTTP
  111.         /usr/lib/go-1.22/src/net/http/server.go:3142
  112. net/http.(*conn).serve
  113.         /usr/lib/go-1.22/src/net/http/server.go:2044
  114. 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"}
  115. github.com/keploy/enterprise/pkg/server.(*utg).GenerateTests
  116.         /home/akash/Desktop/githubrepo/enterprise/pkg/server/utg.go:551
  117. github.com/gin-gonic/gin.(*Context).Next
  118.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
  119. github.com/keploy/enterprise/pkg/server.(*Server).Serve.recoveryMiddleware.func1
  120.         /home/akash/Desktop/githubrepo/enterprise/pkg/server/middleware.go:25
  121. github.com/gin-gonic/gin.(*Context).Next
  122.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
  123. github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
  124.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
  125. github.com/gin-gonic/gin.(*Engine).ServeHTTP
  126.         /home/akash/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
  127. net/http.serverHandler.ServeHTTP
  128.         /usr/lib/go-1.22/src/net/http/server.go:3142
  129. net/http.(*conn).serve
  130.         /usr/lib/go-1.22/src/net/http/server.go:2044
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement