Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tenzir/vast into topic/ex…
Browse files Browse the repository at this point in the history
…pose-pipelines-in-export
  • Loading branch information
Dakostu committed Jan 26, 2023
2 parents 616a0f6 + aa59539 commit 043243d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
8 changes: 7 additions & 1 deletion plugins/parquet/CMakeLists.txt
Expand Up @@ -24,7 +24,13 @@ else ()
set(PARQUET_LIBRARY Parquet::parquet_static)
endif ()

find_package(Parquet 10.0)
find_package(Parquet)
if (Parquet_VERSION_MAJOR LESS 10)
message(
FATAL_ERROR
"The Parquet plugin requires at least Parquet version 10.0, but found ${PARQUET_VERSION}"
)
endif ()
if (NOT Parquet_FOUND)
# Compatibility for Arrow < 10. The ParquetConfig.cmake file is in the wrong
# location in that case.
Expand Down
24 changes: 17 additions & 7 deletions vast/integration/integration.py
Expand Up @@ -340,7 +340,14 @@ def __init__(
LOGGER.debug(f"starting server fixture: {command}")
LOGGER.debug(f"waiting for port {self.port} to be available")
if not wait.tcp.closed(self.port, timeout=5):
raise RuntimeError("Port is blocked by another process.\nAborting tests...")
LOGGER.warning(
f"Couldn't aquire port, attempting to kill lingering subprocesses"
)
signal_subprocs(signal.SIGKILL)
if not wait.tcp.closed(self.port, timeout=5):
raise RuntimeError(
"Port is blocked by another process.\nAborting tests..."
)
self.cwd.mkdir(parents=True)
out = open(self.cwd / "out", "w")
err = open(self.cwd / "err", "w")
Expand All @@ -364,16 +371,19 @@ def stop(self):
LOGGER.debug(f"stopping server fixture: {command}")
stop_out = open(self.cwd / "stop.out", "w")
stop_err = open(self.cwd / "stop.err", "w")
stop = 0
try:
stop = spawn(
command,
cwd=self.cwd,
stdout=stop_out,
stderr=stop_err,
).wait(STEP_TIMEOUT)
)
stop.wait(STEP_TIMEOUT)
except:
stop.kill()
pass
else:
if isinstance(stop, subprocess.Popen):
stop.kill()
try:
self.process.wait(STEP_TIMEOUT)
except:
Expand Down Expand Up @@ -610,7 +620,7 @@ def match(x, names):
test_result = Result.FAILURE
for i in range(0, args.repetitions):
test_result = tester.run(name, definition)
if test_result is Result.TIMEOUT:
if test_result is not Result.SUCCESS:
if i < args.repetitions - 1:
# Try again.
LOGGER.warning(
Expand Down Expand Up @@ -680,8 +690,8 @@ def main():
"-r",
"--repetitions",
type=int,
default=3,
help="Repeat count for tests that timed out",
default=10,
help="Number of repetitions for failed tests",
)
parser.add_argument(
"-l",
Expand Down
2 changes: 1 addition & 1 deletion vast/integration/vast_integration_suite.yaml
Expand Up @@ -422,7 +422,7 @@ tests:
transformation: python @./misc/scripts/print-arrow.py
Arrow Import:
condition: version | jq -e '."Apache Arrow"'
tags: [import, arrow]
tags: [import, arrow, disabled]
fixture: ServerTester
steps:
- command: import -b --batch-encoding=arrow arrow
Expand Down

0 comments on commit 043243d

Please sign in to comment.