Commit 45b026ee authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

GdKHeptapod: debug logs for service management and rake

This helps understanding stuck test runs involving backups,
hashed storage etc.
parent fc3d2f64e8c5
Pipeline #7135 passed with stages
in 27 minutes and 23 seconds
......@@ -533,6 +533,7 @@ class SourceHeptapod(Heptapod):
raise NotImplementedError(
"On source Heptapod, only same user as for Rails and HgServe "
"is allowed")
logger.debug("SourceHeptapod: executing command %r", command)
process = subprocess.Popen(command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
......@@ -603,13 +604,16 @@ class GdkHeptapod(SourceHeptapod):
def rake(self, *args):
cmd = ['bundle', 'exec', 'rake']
cmd.extend(args)
logger.debug("GdkHeptapod: calling %r", cmd)
subprocess.check_call(cmd, cwd=self.rails_root)
def gitlab_ctl(self, command, services=None):
base_cmd = ('gdk', command)
def do_command(*opt_args):
subprocess.check_call(base_cmd + opt_args, cwd=self.rails_root)
cmd = base_cmd + opt_args
logger.debug("GdkHeptapod: calling %r", cmd)
subprocess.check_call(cmd, cwd=self.rails_root)
if services is None:
do_command()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment