compare-url icon indicating copy to clipboard operation
compare-url copied to clipboard

New branch never finds ancestor commit

Open kennyjwilli opened this issue 5 years ago • 9 comments

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 avatar Aug 19 '19 19:08 kennyjwilli

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?

kennyjwilli avatar Aug 19 '19 23:08 kennyjwilli

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.

mbelang avatar Sep 05 '19 13:09 mbelang

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

oshimayoan avatar Sep 16 '19 07:09 oshimayoan

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

johnallen3d avatar Oct 03 '19 18:10 johnallen3d

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

oshimayoan avatar Oct 04 '19 06:10 oshimayoan

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 avatar Oct 04 '19 12:10 johnallen3d

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

johnallen3d avatar Oct 04 '19 12:10 johnallen3d

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

oshimayoan avatar Oct 05 '19 05:10 oshimayoan

Works like a charm, thanks again!

johnallen3d avatar Oct 05 '19 13:10 johnallen3d