frogbot icon indicating copy to clipboard operation
frogbot copied to clipboard

Integration with other CI frameworks

Open sec-bot opened this issue 2 years ago • 13 comments

Is there a possibility to support integration for other CI frameworks in the future?

sec-bot avatar Jun 28 '22 06:06 sec-bot

@sec-bot, Yes, it is possible. Could you please be more specific about the CI and Git provider you'd like to have this support? Thanks.

yahavi avatar Jul 06 '22 08:07 yahavi

@yahavi Do you have an example of Github Enterprise - Jenkins - FrogBot? .. I was looking at the examples provided... and might be able to manipulate them... not sure - but thought you might have a better example somewhere

I don't have access to gitHub actions, else it would be a no brainer

Jetski5822 avatar Aug 11 '22 06:08 Jetski5822

@Jetski5822, thanks for reaching out.

We have in our backlog a task to add Jenkins with GitHub examples. We will keep you posted.

If you do manage to make GitHub Actions work on your GitHub Enterprise - All GitHub Actions templates should work on GitHub Enterprise. Just remember to set the JF_GIT_API_ENDPOINT environment variable pointing to your GitHub base URL. See full instructions for GitHub Actions in the README.

yahavi avatar Aug 11 '22 06:08 yahavi

@yahavi aw awesome!!! I might be able to manipulate the jenkins stuff to work for Github Enterprise too;

Apart from a missing example, do you see any technical issues with it? i.e. jfrog changes to make it work

Jetski5822 avatar Aug 11 '22 06:08 Jetski5822

@Jetski5822, I believe that the Jenkins example will be similar to the Jenkins with Bitbucket example: https://github.com/jfrog/frogbot/tree/v2.2.1#using-jenkins, except JF_GIT_PROVIDER= "github".

Please feel free to share your feedback here.

yahavi avatar Aug 11 '22 08:08 yahavi

@yahavi so I have managed to run it, but both on Linux and Windows Jenkins Agents I get out of memory exceptions;

[2022-08-11T23:52:04.280Z] C:\workspace\frogbot_PR-1453>.\frogbot.exe scan-pull-request 
[2022-08-11T23:52:04.280Z] 23:52:02 [Info] JF_INCLUDE_ALL_VULNERABILITIES is off, the value is:  
[2022-08-11T23:52:04.280Z] 23:52:02 [Info] Running Frogbot "scan-pull-request" command 
[2022-08-11T23:52:04.280Z] 23:52:02 [Info] Auditing C:\workspace\frogbot_PR-1453
[2022-08-11T23:52:04.280Z] 23:52:02 [Info] Executing 'dotnet' [restore] at  C:\workspace\frogbot_PR-1453
[2022-08-11T23:53:13.241Z] 23:53:11 [Info] Detected: nuget, dotnet.
[2022-08-11T23:56:11.759Z] Cannot contact EC2 (discovery) - multipurpose (i-0ce47c939f407dcae): java.lang.InterruptedException
[2022-08-11T23:56:29.516Z] runtime: VirtualAlloc of 8192 bytes failed with errno=1455
[2022-08-11T23:56:29.516Z] fatal error: out of memory
[2022-08-11T23:56:29.516Z] 
[2022-08-11T23:56:29.516Z] runtime stack:
[2022-08-11T23:56:29.516Z] runtime.throw({0x1d6963b, 0xc39422f000})
[2022-08-11T23:56:29.516Z] 	/root/.gvm/gos/go1.17.12/src/runtime/panic.go:1198 +0x76
[2022-08-11T23:56:29.516Z] runtime.sysUsed(0xc39422e000, 0x2000)
[2022-08-11T23:56:29.516Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mem_windows.go:83 +0x1c9
[2022-08-11T23:56:29.516Z] runtime.(*mheap).allocSpan(0x25e86a0, 0x1, 0x0, 0x14)
[2022-08-11T23:56:29.516Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mheap.go:1268 +0x3a5
[2022-08-11T23:56:29.516Z] runtime.(*mheap).alloc.func1()
[2022-08-11T23:56:29.516Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mheap.go:913 +0x69
[2022-08-11T23:56:29.516Z] runtime.systemstack()
[2022-08-11T23:56:29.516Z] 	/root/.gvm/gos/go1.17.12/src/runtime/asm_amd64.s:383 +0x4e

similar error in Linux - thoughts? any way I can push out more logging?

Jetski5822 avatar Aug 11 '22 23:08 Jetski5822

@Jetski5822, thanks for this valuable information. I think that setting JFROG_CLI_LOG_LEVEL=DEBUG environment variable should help to shed more light on this issue.

However, it looks like your project is very large so the dependency tree filled all of the memory. Is it a self-hosted runner? If the answer is yes, could you please try to increase its memory?

Looking forward to your feedback.

yahavi avatar Aug 12 '22 11:08 yahavi

@yahavi I got a bit more information from JFROG_CLI_LOG_LEVEL=DEBUG, not a massive amount though.. heres a snippet between finding the csprojects and out of memory issue

[2022-08-12T22:49:43.594Z] + ./frogbot scan-pull-request
[2022-08-12T22:49:43.594Z] 22:49:43 [Info] JF_INCLUDE_ALL_VULNERABILITIES is off, the value is:  
[2022-08-12T22:49:43.594Z] 22:49:43 [Info] Running Frogbot "scan-pull-request" command 
[2022-08-12T22:49:43.594Z] 22:49:43 [Info] Auditing /root/workspace/frogbot_PR-1453
[2022-08-12T22:49:43.594Z] 22:49:43 [Info] Executing 'dotnet' [restore] at  /root/workspace/frogbot_PR-1453
[2022-08-12T22:49:43.594Z] 22:49:43 [Debug] Usage Report: Sending info...
[2022-08-12T22:49:43.594Z] 22:49:43 [Debug] Sending HTTP GET request to: https://artifactory.somewhere.com/artifactory/api/system/version
[2022-08-12T22:49:43.594Z] 22:49:43 [Debug] Artifactory response: 200 
[2022-08-12T22:49:43.594Z] 22:49:43 [Debug] The Artifactory version is: 7.38.10
[2022-08-12T22:49:43.594Z] 22:49:43 [Debug] Sending HTTP POST request to: https://artifactory.somewhere.com/artifactory/api/system/usage
[2022-08-12T22:49:43.594Z] 22:49:43 [Debug] Usage Report: Artifactory response: 200 
[2022-08-12T22:49:43.594Z] 22:49:43 [Debug] Usage Report: Usage info sent successfully.
[2022-08-12T22:50:43.518Z] 22:50:35 [Info] Detected: dotnet, nuget.
[2022-08-12T22:50:43.518Z] 22:50:35 [Debug] Skipping a project "src", since it doesn't have a '.*proj' file path.
[2022-08-12T22:50:43.518Z] 22:50:35 [Debug] Skipping a project "Something.Dashboards", since it doesn't have a '.*proj' file path.
[2022-08-12T22:50:43.518Z] 22:50:35 [Debug] Skipping a project "Something.Pro", since it doesn't have a '.*proj' file path.
[2022-08-12T22:50:43.518Z] 22:50:35 [Debug] Skipping a project "tests", since it doesn't have a '.*proj' file path.
[2022-08-12T22:50:43.518Z] 22:50:35 [Debug] Skipping a project "DependencyModules", since it doesn't have a '.*proj' file path.
[2022-08-12T22:50:43.518Z] 22:50:35 [Debug] Found /root/workspace/frogbot_PR-1453/src/Something.Dashboards/Something.Dashboards.Common/obj/project.assets.json file for project: Something.Dashboards.Common

.. A bunch of projects....

[2022-08-12T22:50:43.519Z] 22:50:36 [Debug] Found /root/workspace/frogbot_PR-1453/src/Something.Dashboards/IntegrationTests.Something.Dashboards.Server/obj/project.assets.json file for project: IntegrationTests.Something.Dashboards.Server
[2022-08-12T22:52:24.119Z] fatal error: runtime: out of memory
[2022-08-12T22:52:24.119Z] 
[2022-08-12T22:52:24.119Z] runtime stack:
[2022-08-12T22:52:24.119Z] runtime.throw({0xe8defa, 0x400000})
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/panic.go:1198 +0x71
[2022-08-12T22:52:24.119Z] runtime.sysMap(0xc374c00000, 0x1, 0x40)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mem_linux.go:169 +0x96
[2022-08-12T22:52:24.119Z] runtime.(*mheap).grow(0x16d6880, 0x44a4ea)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mheap.go:1393 +0x225
[2022-08-12T22:52:24.119Z] runtime.(*mheap).allocSpan(0x16d6880, 0x1, 0x0, 0x14)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mheap.go:1179 +0x165
[2022-08-12T22:52:24.119Z] runtime.(*mheap).alloc.func1()
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mheap.go:913 +0x69
[2022-08-12T22:52:24.119Z] runtime.systemstack()
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/asm_amd64.s:383 +0x49
[2022-08-12T22:52:24.119Z] 
[2022-08-12T22:52:24.119Z] goroutine 1 [running]:
[2022-08-12T22:52:24.119Z] runtime.systemstack_switch()
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/asm_amd64.s:350 fp=0xc0003f8468 sp=0xc0003f8460 pc=0x461440
[2022-08-12T22:52:24.119Z] runtime.(*mheap).alloc(0x0, 0xc0003f8528, 0x9, 0x1)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mheap.go:907 +0x73 fp=0xc0003f84b8 sp=0xc0003f8468 pc=0x425bd3
[2022-08-12T22:52:24.119Z] runtime.(*mcentral).grow(0x2000)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mcentral.go:241 +0x65 fp=0xc0003f8500 sp=0xc0003f84b8 pc=0x417585
[2022-08-12T22:52:24.119Z] runtime.(*mcentral).cacheSpan(0x16e79c8)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mcentral.go:161 +0x69e fp=0xc0003f8578 sp=0xc0003f8500 pc=0x4173be
[2022-08-12T22:52:24.119Z] runtime.(*mcache).refill(0x7feda6d735b8, 0x14)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/mcache.go:162 +0xaf fp=0xc0003f85c8 sp=0xc0003f8578 pc=0x41660f
[2022-08-12T22:52:24.119Z] runtime.(*mcache).nextFree(0x7feda6d735b8, 0x14)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/malloc.go:886 +0x85 fp=0xc0003f8610 sp=0xc0003f85c8 pc=0x40c6a5
[2022-08-12T22:52:24.119Z] runtime.mallocgc(0x80, 0xdf9dc0, 0x1)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/malloc.go:1077 +0x4e8 fp=0xc0003f8690 sp=0xc0003f8610 pc=0x40cd28
[2022-08-12T22:52:24.119Z] runtime.newobject(0x7fed6e14e880)
[2022-08-12T22:52:24.119Z] 	/root/.gvm/gos/go1.17.12/src/runtime/malloc.go:1234 +0x27 fp=0xc0003f86b8 sp=0xc0003f8690 pc=0x40d247
[2022-08-12T22:52:24.119Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc374b16c00, 0xe, 0x10})
[2022-08-12T22:52:24.119Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:63 +0x7e fp=0xc0003f8778 sp=0xc0003f86b8 pc=0xc0ce3e
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc374b16c00, 0xd, 0x10})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8838 sp=0xc0003f8778 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc374b16c00, 0xc, 0x10})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f88f8 sp=0xc0003f8838 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc374b16c00, 0xb, 0x10})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f89b8 sp=0xc0003f88f8 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc374b16c00, 0xa, 0x10})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8a78 sp=0xc0003f89b8 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcbc7c0, {0xc374b16c00, 0x9, 0x10})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8b38 sp=0xc0003f8a78 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc370c3bb00, 0x8, 0x8})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8bf8 sp=0xc0003f8b38 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc370c3bb00, 0x7, 0x8})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8cb8 sp=0xc0003f8bf8 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc370c3bb00, 0x6, 0x8})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8d78 sp=0xc0003f8cb8 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcbc7c0, {0xc370c3bb00, 0x5, 0x8})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8e38 sp=0xc0003f8d78 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcef000, {0xc2d0acc940, 0x4, 0x4})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8ef8 sp=0xc0003f8e38 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcbc7c0, {0xc2d0acc940, 0x3, 0x4})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f8fb8 sp=0xc0003f8ef8 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcbc7c0, {0xc052d189e0, 0x2, 0x2})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f9078 sp=0xc0003f8fb8 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.buildXrayDependencyTree(0xcff3c0, {0xc0003f9210, 0x1, 0x1})
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:77 +0x228 fp=0xc0003f9138 sp=0xc0003f9078 pc=0xc0cfe8
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit.BuildXrayDependencyTree(...)
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/commonutils.go:56
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit/nuget.parseNugetDependencyTree(0xc00012a210)
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/nuget/nuget.go:58 +0x1cd fp=0xc0003f94d8 sp=0xc0003f9138 pc=0xc124cd
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit/nuget.BuildNugetDependencyTree()
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/nuget/nuget.go:43 +0xca fp=0xc0003f9538 sp=0xc0003f94d8 pc=0xc122aa
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/audit/nuget.AuditNuget({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0xe6872c, 0xa}, 0x0, ...}, ...)
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/audit/nuget/nuget.go:21 +0x45 fp=0xc0003f95f0 sp=0xc0003f9538 pc=0xc12105
[2022-08-12T22:52:24.120Z] github.com/jfrog/jfrog-cli-core/v2/xray/commands/audit/generic.GenericAudit({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0xe6872c, 0xa}, 0x0, ...}, ...)
[2022-08-12T22:52:24.120Z] 	/root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/[email protected]/xray/commands/audit/generic/auditmanager.go:70 +0x58b fp=0xc0003f9788 sp=0xc0003f95f0 pc=0xc147ab
[2022-08-12T22:52:24.120Z] github.com/jfrog/frogbot/commands.runInstallAndAudit({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0xe6872c, 0xa}, 0x0, ...}, ...)
[2022-08-12T22:52:24.120Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/scanpullrequest.go:178 +0x1f1 fp=0xc0003f98a0 sp=0xc0003f9788 pc=0xc19b31
[2022-08-12T22:52:24.120Z] github.com/jfrog/frogbot/commands.auditSource({{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0xe6872c, 0xa}, 0x0, ...}, ...)
[2022-08-12T22:52:24.120Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/scanpullrequest.go:122 +0x192 fp=0xc0003f9960 sp=0xc0003f98a0 pc=0xc19032
[2022-08-12T22:52:24.120Z] github.com/jfrog/frogbot/commands.scanPullRequest(0xc00011c800, {0xffdb38, 0xc0002745a0})
[2022-08-12T22:52:24.120Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/scanpullrequest.go:38 +0xec fp=0xc0003f9a70 sp=0xc0003f9960 pc=0xc182cc
[2022-08-12T22:52:24.120Z] github.com/jfrog/frogbot/commands.ScanPullRequestCmd.Run(...)
[2022-08-12T22:52:24.120Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/scanpullrequest.go:25
[2022-08-12T22:52:24.120Z] github.com/jfrog/frogbot/commands.(*ScanPullRequestCmd).Run(0x16ed628, 0xc00027c930, {0xffdb38, 0xc0002745a0})
[2022-08-12T22:52:24.120Z] 	<autogenerated>:1 +0x3f fp=0xc0003f9a98 sp=0xc0003f9a70 pc=0xc1bf5f
[2022-08-12T22:52:24.120Z] github.com/jfrog/frogbot/commands.Exec({0xfd6980, 0x16ed628}, {0xe7cc77, 0xc000252880})
[2022-08-12T22:52:24.120Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/commands.go:28 +0x1d5 fp=0xc0003f9b20 sp=0xc0003f9a98 pc=0xc150f5
[2022-08-12T22:52:24.120Z] github.com/jfrog/frogbot/commands.GetCommands.func1(0xc000276240)
[2022-08-12T22:52:24.121Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/commands.go:44 +0x32 fp=0xc0003f9b50 sp=0xc0003f9b20 pc=0xc1bc52
[2022-08-12T22:52:24.121Z] github.com/urfave/cli/v2.(*Command).Run(0xc000276240, 0xc0002527c0)
[2022-08-12T22:52:24.121Z] 	/root/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:169 +0x6be fp=0xc0003f9c48 sp=0xc0003f9b50 pc=0xbfaa9e
[2022-08-12T22:52:24.121Z] github.com/urfave/cli/v2.(*App).RunContext(0xc000149a00, {0xfe8310, 0xc0000360c8}, {0xc000030060, 0x2, 0x2})
[2022-08-12T22:52:24.121Z] 	/root/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:341 +0x89c fp=0xc0003f9d80 sp=0xc0003f9c48 pc=0xbf78bc
[2022-08-12T22:52:24.121Z] github.com/urfave/cli/v2.(*App).Run(...)
[2022-08-12T22:52:24.121Z] 	/root/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:247
[2022-08-12T22:52:24.121Z] main.ExecMain()
[2022-08-12T22:52:24.121Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/main.go:27 +0x158 fp=0xc0003f9f60 sp=0xc0003f9d80 pc=0xc1c158
[2022-08-12T22:52:24.121Z] main.main()
[2022-08-12T22:52:24.121Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/main.go:16 +0x1e fp=0xc0003f9f80 sp=0xc0003f9f60 pc=0xc1bfde
[2022-08-12T22:52:24.121Z] runtime.main()
[2022-08-12T22:52:24.121Z] 	/root/.gvm/gos/go1.17.12/src/runtime/proc.go:255 +0x227 fp=0xc0003f9fe0 sp=0xc0003f9f80 pc=0x436087
[2022-08-12T22:52:24.121Z] runtime.goexit()
[2022-08-12T22:52:24.121Z] 	/root/.gvm/gos/go1.17.12/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0003f9fe8 sp=0xc0003f9fe0 pc=0x463521
[2022-08-12T22:52:24.121Z] 
[2022-08-12T22:52:24.121Z] goroutine 6 [chan send, 2 minutes]:
[2022-08-12T22:52:24.121Z] github.com/jfrog/frogbot/commands/utils.ReportUsage.func1()
[2022-08-12T22:52:24.121Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/utils/utils.go:39 +0x37
[2022-08-12T22:52:24.121Z] github.com/jfrog/frogbot/commands/utils.ReportUsage({0xe7cc77, 0x11}, 0xc00011c800, 0x0)
[2022-08-12T22:52:24.121Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/utils/utils.go:55 +0x2b5
[2022-08-12T22:52:24.121Z] created by github.com/jfrog/frogbot/commands.Exec
[2022-08-12T22:52:24.121Z] 	/var/opt/jfrog/pipelines/data/release_frogbot/runs/1024891/steps/Release/7789705/dependencyState/resources/frogbotGit/commands/commands.go:25 +0xf1
script returned exit code 2

Ill ask the person who looks after the AMIs to increase memory on Monday - but its a X-Large EC2 Amazon AMI so should be okay as we run a huge amount of tests of these instances....

Self Hosted? I guess? Is there a way to delegate this off?

Jetski5822 avatar Aug 12 '22 23:08 Jetski5822

Took it from 16GB to 32GB, still same issue :/

Jetski5822 avatar Aug 15 '22 04:08 Jetski5822

@yahavi any thoughts on the above?

Jetski5822 avatar Aug 30 '22 05:08 Jetski5822

@Jetski5822, Thanks for this information! We will investigate this issue and will keep you posted.

yahavi avatar Aug 30 '22 06:08 yahavi

@yahavi ^^ The issue described above is now fixed btw; looks like the latest code has it working. thanks

Jetski5822 avatar Dec 14 '22 04:12 Jetski5822

Hey @Jetski5822, thank you for your feedback! It's probably due to some changes we made recently in https://github.com/jfrog/froggit-go, which Frogbot uses as well as other improvements we had in Frogbot. We are also going to release soon the official templates for working with GitHub and Jenkins/JFrog Pipelines, along with other exciting new features, so stay tuned!

omerzi avatar Dec 14 '22 05:12 omerzi