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

Branch creation (PR) failing at the end for Repository Scans, for a monorepo. #651

Open
imranzunzani opened this issue Feb 26, 2024 · 4 comments
Labels
question Further information is requested

Comments

@imranzunzani
Copy link
Contributor

On a monorepo with the following frogbot-config.yml (names redacted with *) :

- params:
    git:
      repoName: test-scan
      branches:
        - main
    scan:
      projects:
        - workingDirs:
            - apps/***/***
            - apps/***/***
            - apps/***/***
            - apps/***/***
            - apps/***/***
            - apps/***/***
        - pathExclusions:
            - "*node_modules*"
            - "*target*"
            - "*venv*"
            - "*test*"
            - "*analytics*"

I get the following errors at the end:

failed upon creating/checkout branch 'frogbot-formidable-69bab9618eba86d7d6a53b9c9b97213f' with error: a branch named "refs/heads/frogbot-formidable-69bab9618eba86d7d6a53b9c9b97213f" already exists
  the following errors occured while fixing vulnerabilities in '/tmp/jfrog.cli.temp.-1708960538-2693089640/apps/***/***':
  failed upon creating/checkout branch 'frogbot-semver-cf2fc5578bd663af2e3eaa946400c132' with error: a branch named "refs/heads/frogbot-semver-cf2fc5578bd663af2e3eaa946400c132" already exists
  failed upon creating/checkout branch 'frogbot-next-cd954fdff4c346f20cf8413b37af9231' with error: a branch named "refs/heads/frogbot-next-cd954fdff4c346f20cf8413b37af9231" already exists
  failed upon creating/checkout branch 'frogbot-word-wrap-e924a4795a0a50023a401dd0ca8b198a' with error: a branch named "refs/heads/frogbot-word-wrap-e924a4795a0a50023a401dd0ca8b198a" already exists
  the following errors occured while fixing vulnerabilities in '/tmp/jfrog.cli.temp.-1708960538-2693089640/apps/***/***':
  failed upon creating/checkout branch 'frogbot-tough-cookie-55a2094db87e0b506cfe7698b7536175' with error: a branch named "refs/heads/frogbot-tough-cookie-55a2094db87e0b506cfe7698b7536175" already exists
  Error: The process '/opt/hostedtoolcache/frogbot/[RELEASE]/x64/frogbot' failed with exit code 1

Could you please help with understanding the problem here?

@imranzunzani imranzunzani added the question Further information is requested label Feb 26, 2024
@attiasas
Copy link
Contributor

Hi @imranzunzani,

Thank you for using Frogbot!

This issue is known when you have multiple projects with the same dependencies. We are actively working on fixing it and providing a solution to handle this scenario. You can track the progress of the fix by following this link: GitHub Pull Request #649.

Please don't hesitate to reach out if you have any further questions or encounter any issues.

@imranzunzani
Copy link
Contributor Author

Thanks @attiasas. Let me check, as soon as #649 is merged.

@eranturgeman
Copy link
Contributor

Hello @imranzunzani
I wanted to give you an update on this matter. As @attiasas mentioned, this is a known issue and we were working on a fix. We discovered the issue is a bit tricker than we thought and requires several changes in order to be fixed. We are actively working on making those improvements and to enable Frogbot and 'audit' command to handle more complex project structures. Please follow our future releases :)

@imranzunzani
Copy link
Contributor Author

Thanks @eranturgeman.
Let me loop in @Avi706 here as well.

@Avi706 ,
FYC.
This is in relation to monorepo structures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants