mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Adding gzip compression of clickhouse logs.
This commit is contained in:
parent
774171c61c
commit
7800f934ab
@ -73,4 +73,4 @@ RUN set -x \
|
|||||||
VOLUME /var/lib/docker
|
VOLUME /var/lib/docker
|
||||||
EXPOSE 2375
|
EXPOSE 2375
|
||||||
ENTRYPOINT ["dockerd-entrypoint.sh"]
|
ENTRYPOINT ["dockerd-entrypoint.sh"]
|
||||||
CMD ["sh", "-c", "python3 regression.py --no-color -o classic --local --clickhouse-binary-path ${CLICKHOUSE_TESTS_SERVER_BIN_PATH} --only /clickhouse/:/foo2 --log test.log ${TESTFLOWS_OPTS}; cat test.log | tfs report results --format json > results.json; /usr/local/bin/process_testflows_result.py || echo -e 'failure\tCannot parse results' > check_status.tsv; find . -type f | grep _instances | grep clickhouse-server | xargs -n1 tar -rvf clickhouse_logs.tar"]
|
CMD ["sh", "-c", "python3 regression.py --no-color -o classic --local --clickhouse-binary-path ${CLICKHOUSE_TESTS_SERVER_BIN_PATH} --only /clickhouse/:/foo2 --log test.log ${TESTFLOWS_OPTS}; cat test.log | tfs report results --format json > results.json; /usr/local/bin/process_testflows_result.py || echo -e 'failure\tCannot parse results' > check_status.tsv; find . -type f | grep _instances | grep clickhouse-server | xargs -n1 tar -rvf clickhouse_logs.tar; gzip -9 clickhouse_logs.tar"]
|
||||||
|
@ -126,7 +126,7 @@ if __name__ == "__main__":
|
|||||||
move_from = os.path.join(args.clickhouse_root, 'tests/testflows')
|
move_from = os.path.join(args.clickhouse_root, 'tests/testflows')
|
||||||
status = os.path.join(move_from, 'check_status.tsv')
|
status = os.path.join(move_from, 'check_status.tsv')
|
||||||
results = os.path.join(move_from, 'test_results.tsv')
|
results = os.path.join(move_from, 'test_results.tsv')
|
||||||
clickhouse_logs = os.path.join(move_from, 'clickhouse_logs.tar')
|
clickhouse_logs = os.path.join(move_from, 'clickhouse_logs.tar.gz')
|
||||||
subprocess.call("mv {} {}".format(status, result_path), shell=True)
|
subprocess.call("mv {} {}".format(status, result_path), shell=True)
|
||||||
subprocess.call("mv {} {}".format(results, result_path), shell=True)
|
subprocess.call("mv {} {}".format(results, result_path), shell=True)
|
||||||
subprocess.call("mv {} {}".format(clickhouse_logs, result_path), shell=True)
|
subprocess.call("mv {} {}".format(clickhouse_logs, result_path), shell=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user