Skip to content

Commit

Permalink
chore(dp): Show timestamps in integrations_tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromowski <tomasz@freedomfi.com>
  • Loading branch information
sklgromek committed Jun 1, 2022
1 parent 43a3da2 commit b4f92d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dp-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ jobs:
for pod in $(kubectl get pods -o custom-columns=NAME:.metadata.name --no-headers);
do
if [[ "$pod" == "postgres-database-0" ]]; then
kubectl logs $pod --container postgres-test > ${TEST_DIR}/k8s-pods-logs/${pod}.log;
kubectl logs --timestamps=true $pod --container postgres-test > ${TEST_DIR}/k8s-pods-logs/${pod}.log;
else
kubectl logs $pod > ${TEST_DIR}/k8s-pods-logs/${pod}.log;
kubectl logs --timestamps=true $pod > ${TEST_DIR}/k8s-pods-logs/${pod}.log;
fi;
done
- name: Collect Elasticsearch data
Expand Down
4 changes: 2 additions & 2 deletions dp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ _generate_harness_config:
.PHONY: _ci_integration_tests_no_orc8r
_ci_integration_tests_no_orc8r: _install_skaffold_ci
skaffold run -p integration-tests-no-orc8
kubectl logs test-runner -f | tee /tmp/integration-tests-results/$@.txt
kubectl logs test-runner --timestamps=true -f | tee /tmp/integration-tests-results/$@.txt
@set -e;\
sleep 2;\
SUCCESS=$$(kubectl get pods test-runner -o jsonpath='{.status.phase}');\
Expand All @@ -156,7 +156,7 @@ _ci_integration_tests_no_orc8r: _install_skaffold_ci
.PHONY: _ci_integration_tests_orc8r
_ci_integration_tests_orc8r: _install_skaffold_ci
skaffold run -p orc8r-deployment,integration-tests-no-orc8,integration-tests-orc8r-only
kubectl logs test-runner-orc8r -f | tee /tmp/integration-tests-results/$@.txt
kubectl logs test-runner-orc8r --timestamps=true -f | tee /tmp/integration-tests-results/$@.txt
@set -e;\
sleep 2;\
SUCCESS=$$(kubectl get pods test-runner-orc8r -o jsonpath='{.status.phase}');\
Expand Down
2 changes: 2 additions & 0 deletions dp/cloud/python/magma/test_runner/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ markers =
local: integration tests without orc8r
log_cli = True
log_level = DEBUG
log_file_format = %(asctime)s %(levelname)s %(message)s
log_date_format = %Y-%m-%d %H:%M:%S

0 comments on commit b4f92d1

Please sign in to comment.