Copybara is stuck on the initial run

194 views
Skip to first unread message

pho...@google.com

unread,
Apr 15, 2019, 2:48:36 PM4/15/19
to Copybara OSS
I'm trying to use Copybara to copy a portion of https://github.com/llvm/llvm-project into a separate repository, specifically I'd like to copy https://github.com/llvm/llvm-project/tree/master/compiler-rt/lib/scudo/standalone to https://github.com/petrhosek/scudo. I have the following configuration file:

core.workflow(
    name = "scudo",
    mode = "ITERATIVE",
    origin = git.github_origin(
        ref = "master",
    ),
    destination = git.github_destination(
        url = "g...@github.com:petrhosek/scudo.git",
    ),
    authoring = authoring.pass_thru("Default email <def...@default.com>"),
    origin_files = glob(["compiler-rt/lib/scudo/standalone/**"]),
    destination_files = glob(["**"]),
    transformations = [
        core.move("compiler-rt/lib/scudo/standalone", ""),
    ],
)

I run Copybara as follows:

$ ./copybara/bazel-bin/java/com/google/copybara/copybara copy.bara.sky --init-history --ignore-noop scudo master

When I run this, I get the following output:

Copybara source mover (Version: Unknown version)
Task: Git Destination: Fetching: g...@github.com:petrhosek/scudo.git refs/heads/master

After this, Copybara just sits there and does nothing. I left it running for a day and didn't get any other output. I also tried running Copybara in the verbose and I see the following output:

...
Executing [git '--git-dir=/home/phosek/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fllvm%2Fllvm-project%2Egit' describe -- 531f9e92d4d06d5cb1f250754c68e7d3b420df50]
fatal: No tags can describe '531f9e92d4d06d5cb1f250754c68e7d3b420df50'.
Try --always, or create some tags.
Command 'git' finished in 00:00.159. Process exited with status 128
Executing [git '--git-dir=/home/phosek/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fllvm%2Fllvm-project%2Egit' describe --always -- 531f9e92d4d06d5cb1f250754c68e7d3b420df50]
531f9e92d4d
Command 'git' finished in 00:00.155. (No exit status)
Executing [git init --bare]
Reinitialized existing Git repository in /home/phosek/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fllvm%2Fllvm-project%2Egit/
Command 'git' finished in 00:00.004. (No exit status)
Executing [git config --local credential.helper store]
Command 'git' finished in 00:00.002. (No exit status)
Executing [git '--git-dir=/home/phosek/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fllvm%2Fllvm-project%2Egit' describe -- 31c8a9d41a2cdd7322ea8f04049ab8d583f2e694]
fatal: No tags can describe '31c8a9d41a2cdd7322ea8f04049ab8d583f2e694'.
Try --always, or create some tags.
Command 'git' finished in 00:00.163. Process exited with status 128
Executing [git '--git-dir=/home/phosek/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fllvm%2Fllvm-project%2Egit' describe --always -- 31c8a9d41a2cdd7322ea8f04049ab8d583f2e694]
31c8a9d41a2
Command 'git' finished in 00:00.155. (No exit status)
Executing [git init --bare]
Reinitialized existing Git repository in /home/phosek/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fllvm%2Fllvm-project%2Egit/
Command 'git' finished in 00:00.004. (No exit status)
Executing [git config --local credential.helper store]
Command 'git' finished in 00:00.002. (No exit status)
Executing [git '--git-dir=/home/phosek/copybara/cache/git_repos/https%3A%2F%2Fgithub%2Ecom%2Fllvm%2Fllvm-project%2Egit' describe -- fb972add4f91522dd418734318554ca704c4cd8e]
fatal: No tags can describe 'fb972add4f91522dd418734318554ca704c4cd8e'.
Try --always, or create some tags.
Command 'git' finished in 00:00.156. Process exited with status 128
...

This just seems to be repeated over and over without any further progress.

Does anyone see any issue with my configuration? Is there anything else I could try to debug this?

Miguel Alcon

unread,
Apr 15, 2019, 4:35:56 PM4/15/19
to pho...@google.com, Copybara OSS
Could you paste the full log? The git describe thing is done 3-4 times but after that we do other stuff.

Also we have a log file that has more information, in the OSS copybara we record here https://github.com/google/copybara/blob/master/java/com/google/copybara/Main.java#L478 . But make sure you are not sharing confidential information. Feel free to ping me internally and I can summarize here my findings.

--
You received this message because you are subscribed to the Google Groups "Copybara OSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copybara-discu...@googlegroups.com.
To post to this group, send email to copybara...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/copybara-discuss/acb0f186-777d-4235-8cdb-dba4d7a2464d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Miguel Alcon

unread,
Apr 15, 2019, 5:15:04 PM4/15/19
to pho...@google.com, Copybara OSS
K, my fault. You can set git.origin(describe_version = False) for now

pho...@google.com

unread,
Apr 15, 2019, 6:20:55 PM4/15/19
to Copybara OSS
That worked! Thanks a lot.
To unsubscribe from this group and stop receiving emails from it, send an email to copybara...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages