Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

[JENKINS-51300] Dump container logs before shutting them down #73

Merged
merged 2 commits into from
May 14, 2018

Conversation

batmat
Copy link
Collaborator

@batmat batmat commented May 14, 2018

JENKINS-51300

Should create a directory like this:

image

@batmat batmat requested a review from rtyler May 14, 2018 20:53
@jenkinsadmin
Copy link

Build failed; the context from the latest run is:

Expand to view
6e6f0848c9c7: Verifying Checksum
6e6f0848c9c7: Download complete
4317f356dab4: Verifying Checksum
4317f356dab4: Download complete
a3ed95caeb02: Pull complete
4317f356dab4: Pull complete
5ba1f428cec5: Pull complete
6e6f0848c9c7: Pull complete
Digest: sha256:e0a4ef30634c982ef395a1a4bdf221df06b3def015f79536fa2d658d5bce9c88
Status: Downloaded newer image for realguess/jq:1.4
ASSERT:null should contain the log from the Essentials Jenkins plugin expected:<0> but was:<1>
shunit2:ERROR test_logs_are_propagated() returned non-zero return code.

Retrieving container logs before shutdown... Logs will be in the build/tests-logs-2018-05-14_21:04:09 directoryDone getting logs for infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1
infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1
infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1
Cleaning up... Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... 
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... 
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... 
�[3A�[2K
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... �[32mdone�[0m
�[3B�[2A�[2K
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... �[32mdone�[0m
�[2B�[1A�[2K
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... �[32mdone�[0m
�[1BRemoving infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... 
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... 
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... 
�[3A�[2K
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... �[32mdone�[0m
�[3B�[1A�[2K
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... �[32mdone�[0m
�[1B�[2A�[2K
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... �[32mdone�[0m
�[2BRemoving network infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_default
G'day!

Ran 11 tests.

FAILED (failures=22)
Makefile:25: recipe for target 'container-check' failed
make: *** [container-check] Error 1
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Publish jenkins/evergreen)
Stage 'Publish jenkins/evergreen' skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

GitHub has been notified of this commit’s build result

ERROR: script returned exit code 2
Finished: FAILURE

Powered by the Comment Logger

@jenkinsadmin
Copy link

Build failed; the context from the latest run is:

Expand to view
ASSERT:expected:<200> but was:<000>
./tests/tests.sh: line 100: /tmp/output19425.json: No such file or directory
ASSERT:expected:<0> but was:<1>
./tests/tests.sh: line 104: /tmp/output19425.json: No such file or directory
ASSERT:expected:<true> but was:<>
shunit2:ERROR test_metrics_health_check() returned non-zero return code.
test_logs_are_propagated
ASSERT:null should contain the log from the Essentials Jenkins plugin expected:<0> but was:<1>
shunit2:ERROR test_logs_are_propagated() returned non-zero return code.

Retrieving container logs before shutdown... Logs will be in the build/tests-logs-2018-05-14_21:16:53 directoryDone getting logs for infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1
infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1
infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1
Cleaning up... Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... 
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... 
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... 
�[3A�[2K
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... �[32mdone�[0m
�[3B�[2A�[2K
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... �[32mdone�[0m
�[2B�[1A�[2K
Stopping infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... �[32mdone�[0m
�[1BRemoving infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... 
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... 
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... 
Post stage
�[3A�[2K
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_instance_1 ... �[32mdone�[0m
�[3B�[1A�[2K
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_db_1       ... �[32mdone�[0m
�[1B�[2A�[2K
Removing infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_backend_1  ... �[32mdone�[0m
�[2BRemoving network infraevergreenpr73pmd34ulknw5eavqyu6lvgyq2bgvswafuoqv3vypizuhaaai7ouga_default
G'day!

Ran 11 tests.

FAILED (failures=22)
Makefile:25: recipe for target 'container-check' failed
make: *** [container-check] Error 1
[Pipeline] archiveArtifacts
Archiving artifacts
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Publish jenkins/evergreen)
Stage 'Publish jenkins/evergreen' skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

GitHub has been notified of this commit’s build result

ERROR: script returned exit code 2
Finished: FAILURE

Powered by the Comment Logger

Copy link
Member

@rtyler rtyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woop

@rtyler rtyler merged commit fe5c278 into jenkins-infra:update-levels May 14, 2018
@batmat batmat deleted the dump-test-logs branch May 14, 2018 21:20
@batmat batmat changed the title Dump container logs before shutting them down [JENKINS-51300] Dump container logs before shutting them down May 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants