Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dev/archery/archery/integration/tester_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,8 @@ def flight_request(self, port, json_path=None, scenario_name=None):

if self.debug:
log(' '.join(cmd))
run_cmd(cmd)
# ARROW-11717: try to get more debug info from a flaky case
run_cmd(cmd, extra_env_vars={
"GRPC_VERBOSITY": "debug",
"GRPC_TRACE": "all",
})
9 changes: 7 additions & 2 deletions dev/archery/archery/integration/tester_rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ def flight_server(self, scenario_name=None):
cmd = cmd + ["--scenario", scenario_name]
if self.debug:
log(' '.join(cmd))
env = os.environ.copy()
env["RUST_LOG"] = "debug"
server = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
env=env,
stdout=subprocess.PIPE)
try:
output = server.stdout.readline().decode()
if not output.startswith("Server listening on localhost:"):
Expand All @@ -97,6 +99,9 @@ def flight_server(self, scenario_name=None):
yield port
finally:
server.kill()
out, err = server.communicate()
log(out)
log(err)
server.wait(5)

def flight_request(self, port, json_path=None, scenario_name=None):
Expand Down
9 changes: 7 additions & 2 deletions dev/archery/archery/integration/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,17 @@ def frombytes(o):
return o


def run_cmd(cmd):
def run_cmd(cmd, extra_env_vars=None):
if isinstance(cmd, str):
cmd = cmd.split(' ')

env = os.environ.copy()
if extra_env_vars:
env.update(**extra_env_vars)

try:
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
output = subprocess.check_output(cmd, env=env,
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
# this avoids hiding the stdout / stderr of failed processes
sio = io.StringIO()
Expand Down
1 change: 1 addition & 0 deletions rust/integration-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ arrow = { path = "../arrow" }
arrow-flight = { path = "../arrow-flight" }
async-trait = "0.1.41"
clap = "2.33"
env_logger = "0.8.3"
futures = "0.3"
hex = "0.4"
prost = "0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Result<T = (), E = Error> = std::result::Result<T, E>;

#[tokio::main]
async fn main() -> Result {
env_logger::init();
#[cfg(feature = "logging")]
tracing_subscriber::fmt::init();

Expand Down