weaveworks-experiments / compare-revisions

Experimental thing for comparing what's on k8s clusters
Apache License 2.0
0 stars 0 forks source link

compare-revisions crashes when given relative paths for git-repo-dir #45

Open jml opened 6 years ago

jml commented 6 years ago
stack  exec compare-revisions -- \
      --port=8000 --external-url=http://localhost:8000 \
      --access-logs=dev \
      --log-level=debug \
      --debug-exceptions \
      --static-dir=compare-revisions-base/bootstrap/ \
      --config-file=.workspace/config.yaml \
      --git-repo-dir=.workspace
2018-09-05 10:09:23.360308 [DEBUG] Syncing CredURI https://weaveworksbot:...@github.com/weaveworks/service-conf.git to ".workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git"
2018-09-05 10:09:23.360827 [DEBUG] Downloading new repo
2018-09-05 10:09:23.361020 [DEBUG] Running process: git clone --mirror 'https://weaveworksbot:fa4321e56a2fb02b42bfd7b1973851b906c8c596@github.com/weaveworks/service-conf.git' .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git; CreateProcess {cmdspec = RawCommand "git" ["clone","--mirror","https://weaveworksbot:fa4321e56a2fb02b42bfd7b1973851b906c8c596@github.com/weaveworks/service-conf.git",".workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git"], cwd = Nothing, env = Just [], std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}
2018-09-05 10:09:23.362467 [INFO] Listening on :8000
2018-09-05 10:09:32.034046 [DEBUG] Process succeeded: git clone --mirror 'https://weaveworksbot:fa4321e56a2fb02b42bfd7b1973851b906c8c596@github.com/weaveworks/service-conf.git' .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git
2018-09-05 10:09:32.034143 [DEBUG] Repo updated
2018-09-05 10:09:32.034292 [DEBUG] Ensuring checkout of .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git to Branch "master" at .workspace/config-repo
2018-09-05 10:09:32.034457 [DEBUG] Running process: git rev-list -n1 master; CreateProcess {cmdspec = RawCommand "git" ["rev-list","-n1","master"], cwd = Just ".workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git", env = Just [], std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}
2018-09-05 10:09:32.044103 [DEBUG] Process succeeded: git rev-list -n1 master
2018-09-05 10:09:32.044253 [DEBUG] Running process: git worktree add .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git/rev-06fdb85038b70c60f001f0f4dbe6f8642964a3a8 06fdb85038b70c60f001f0f4dbe6f8642964a3a8; CreateProcess {cmdspec = RawCommand "git" ["worktree","add",".workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git/rev-06fdb85038b70c60f001f0f4dbe6f8642964a3a8","06fdb85038b70c60f001f0f4dbe6f8642964a3a8"], cwd = Just ".workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git", env = Just [], std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}
2018-09-05 10:09:32.393785 [DEBUG] Process succeeded: git worktree add .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git/rev-06fdb85038b70c60f001f0f4dbe6f8642964a3a8 06fdb85038b70c60f001f0f4dbe6f8642964a3a8
2018-09-05 10:09:32.393921 [DEBUG] Added work tree at .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git/rev-06fdb85038b70c60f001f0f4dbe6f8642964a3a8
2018-09-05 10:09:32.393984 [DEBUG] Updating symlink .workspace/config-repo to point to .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git/rev-06fdb85038b70c60f001f0f4dbe6f8642964a3a8
2018-09-05 10:09:32.394100 [DEBUG] Symlink currently points to: Nothing
2018-09-05 10:09:32.394184 [DEBUG] Creating new link to repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git/rev-06fdb85038b70c60f001f0f4dbe6f8642964a3a8 at .workspace/tmp-link
2018-09-05 10:09:32.394535 [DEBUG] Renaming .workspace/tmp-link to .workspace/config-repo
2018-09-05 10:09:32.394690 [DEBUG] Swapped symlink: .workspace/config-repo now points to .workspace/repos/bbc171b9315f33024593bc8d9b794f5c95e5edee8f301a2cec74aa4d38cbdf17-service-conf.git/rev-06fdb85038b70c60f001f0f4dbe6f8642964a3a8
compare-revisions: .workspace/config-repo/k8s/dev: getDirectoryContents:openDirStream: does not exist (No such file or directory)
make: *** [dev-server] Error 1