Add some timestamps in CI build+test output (#6643)

Summary:
When Travis times out, it's hard to determine whether
the last executing thing took an excessively long time or the
sum of all the work just exceeded the time limit. This
change inserts some timestamps in the output that should
make this easier to determine.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6643

Test Plan: CI (Travis mostly)

Reviewed By: anand1976

Differential Revision: D20843901

Pulled By: pdillinger

fbshipit-source-id: e7aae5434b0c609931feddf238ce4355964488b7
This commit is contained in:
Peter Dillinger 2020-04-04 10:00:31 -07:00 committed by Facebook GitHub Bot
parent 00f8016b36
commit a67fb4c9bd
2 changed files with 4 additions and 4 deletions

View File

@ -201,7 +201,7 @@ before_script:
- ulimit -n 8192 - ulimit -n 8192
script: script:
- ${CXX} --version - date; ${CXX} --version
- if [ `command -v ccache` ]; then ccache -C; fi - if [ `command -v ccache` ]; then ccache -C; fi
- case $TEST_GROUP in - case $TEST_GROUP in
platform_dependent) platform_dependent)

View File

@ -946,7 +946,7 @@ check: all
$(MAKE) T="$$t" TMPD=$(TMPD) check_0; \ $(MAKE) T="$$t" TMPD=$(TMPD) check_0; \
else \ else \
for t in $(TESTS); do \ for t in $(TESTS); do \
echo "===== Running $$t"; ./$$t || exit 1; done; \ echo "===== Running $$t (`date`)"; ./$$t || exit 1; done; \
fi fi
rm -rf $(TMPD) rm -rf $(TMPD)
ifneq ($(PLATFORM), OS_AIX) ifneq ($(PLATFORM), OS_AIX)
@ -959,7 +959,7 @@ endif
# TODO add ldb_tests # TODO add ldb_tests
check_some: $(SUBSET) check_some: $(SUBSET)
for t in $(SUBSET); do echo "===== Running $$t"; ./$$t || exit 1; done for t in $(SUBSET); do echo "===== Running $$t (`date`)"; ./$$t || exit 1; done
.PHONY: ldb_tests .PHONY: ldb_tests
ldb_tests: ldb ldb_tests: ldb
@ -1065,7 +1065,7 @@ ifneq ($(PAR_TEST),)
parloop: parloop:
ret_bad=0; \ ret_bad=0; \
for t in $(PAR_TEST); do \ for t in $(PAR_TEST); do \
echo "===== Running $$t in parallel $(NUM_PAR)";\ echo "===== Running $$t in parallel $(NUM_PAR) (`date`)";\
if [ $(db_test) -eq 1 ]; then \ if [ $(db_test) -eq 1 ]; then \
seq $(J) | v="$$t" build_tools/gnu_parallel --gnu --plain 's=$(TMPD)/rdb-{}; export TEST_TMPDIR=$$s;' \ seq $(J) | v="$$t" build_tools/gnu_parallel --gnu --plain 's=$(TMPD)/rdb-{}; export TEST_TMPDIR=$$s;' \
'timeout 2m ./db_test --gtest_filter=$$v >> $$s/log-{} 2>1'; \ 'timeout 2m ./db_test --gtest_filter=$$v >> $$s/log-{} 2>1'; \