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

New branch never finds ancestor commit #38

Open
kennyjwilli opened this issue Aug 19, 2019 · 9 comments
Open

New branch never finds ancestor commit #38

kennyjwilli opened this issue Aug 19, 2019 · 9 comments

Comments

@kennyjwilli
Copy link

Orb version

1.2.0

What happened

After creating a new branch in our monorepo, compare-url Reconstruct step never finds an ancestor commit. It will loop all the way to CircleCI job 1. The full logs from the are pasted here: https://gist.githubusercontent.com/kennyjwilli/2474bcc03bff5039e465bd3d036de8b8/raw/c101f1825f5aec1d5b0a17058519c9e7141f8b31/log.txt.

Expected behavior

It should have found an ancestor commit.

@kennyjwilli
Copy link
Author

This Orb was working perfectly for many weeks and has stopped working all of a sudden. All of our builds are now failing because it cannot find the ancestor commit. Any idea why that would start happening?

@mbelang
Copy link

mbelang commented Sep 5, 2019

I have the same problem with version 1.0.0 of the orb. The only workaround to this is doing an empty commit or a dummy commit.

@oshimayoan
Copy link

I've fixed this issue and another issue so maybe you guys can use my fork for temporary.

oshimayoan/[email protected]

https://github.com/oshimayoan/compare-url

@johnallen3d
Copy link

I'm having the same issue (stuck in a loop), tried out @oshimayoan's fork but same results.

@oshimayoan
Copy link

@johnallen3d Could you share a snippet of your reconstruct result?

@johnallen3d
Copy link

hmm thanks for the prompt @oshimayoan! I looked more closely at the output and noticed an error sh: missing ]].

job -25068 was part of the current workflow, part of a rerun workflow, a retry of a previous job, or from a different branch
----------------------------------------------------------------------------------------------------
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 15166  100 15166    0     0   462k      0 --:--:-- --:--:-- --:--:--  462k
sh: missing ]]

Looking around here I see that this is a known issue when using an Alpine based container. #18

@johnallen3d
Copy link

"fixed" the sh: missing ]] error with apk add --no-cache bash.

@oshimayoan
Copy link

No probs! Does the orb work after you fixed the sh: missing ]] problem?

@johnallen3d
Copy link

Works like a charm, thanks again!

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

No branches or pull requests

4 participants