CircleCI-Public / path-filtering-orb

MIT License
24 stars 62 forks source link

Error running Orb on CircleCi Hosted #17

Closed pszittyay closed 1 year ago

pszittyay commented 3 years ago

Orb version: 0.0.3

What happened:

Traceback (most recent call last): File "", line 10, in File "/home/circleci/.pyenv/versions/3.8.11/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['git', 'merge-base', 'main', 'c22bb01717c674fb75ad8d3ebe58de4bbc17a340']' returned non-zero exit status 128.

Exited with code exit status 1

Expected behavior:

Should continue reading the continue_config.yml and running the corresponding jobs

Additional Information:

config.yml

version: 2.1 orbs: path-filtering: circleci/path-filtering@0.0.3 workflows: generate-config: jobs:

dmwelch commented 2 years ago

@pszittyay I'm also having this issue. I've updated to v0.1.1 and the error is now:

Traceback (most recent call last): File "", line 23, in File "", line 15, in checkout File "/home/circleci/.pyenv/versions/3.8.12/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['git', 'checkout', 'main']' returned non-zero exit status 1.

So it's not even getting to the call for git merge-base but hitting a wall with checkout(head) which is just git checkout ${CIRCLE_SHA1}.

Markl121 commented 1 year ago

The original issue was resolved by:

  1. Ensuring a top level setup:true is added to the config.yml
    version: 2.1
    setup: true
    orbs:
    path-filtering: circleci/path-filtering@0.0.1
  2. Verifying that there's a detached head or a tangled git tree that could be causing the issue. This could be done duplicating the project into a new repo (one that you can delete later), which would be a new clean repository, preferably with the same project files you are currently using.
Markl121 commented 1 year ago

I will close this issue on that note, and if there are further concerns, please re-open this issue.