Skip to content

Commit

Permalink
Add log stage
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Aug 1, 2024
1 parent 115e3c7 commit 2062a0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ stages:
- end-to-end-setup-arango
- end-to-end-setup
- end-to-end-test
- log
- deploy-pypi-package

# WARNING
Expand Down
6 changes: 1 addition & 5 deletions .gitlab/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,13 @@
- docker push "${REGISTRY}/${IMAGE_TAG}-${BRANCH_LOWER}"

.error_logs_client_end_to_end:
stage: end-to-end-test
stage: log
script:
- BRANCH_LOWER=$(echo "$CI_COMMIT_REF_NAME" | tr '[:upper:]' '[:lower:]')
- docker logs $(docker ps --filter "ancestor=${REGISTRY}/${IMAGE_TAG}${BRANCH_LOWER}" --format "{{.Names}}")
needs:
- job: end_to_end_client-test
artifacts: false
rules:
- if: '$CI_JOB_STATUS == "failed" && $CI_JOB_NAME == "end_to_end_client-test"'
when: always
- when: never



Expand Down
6 changes: 1 addition & 5 deletions .gitlab/end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,14 @@ end_to_end_client-test:
- cmake --build build --target test

end_to_end_error_discovery_arango:
stage: end-to-end-test
stage: log
tags:
- ci-datafed-arango
script:
- sudo journalctl --no-pager -u arangodb3.service
needs:
- job: end_to_end_client-test
artifacts: false
rules:
- if: '$CI_JOB_STATUS == "failed" && $CI_JOB_NAME == "end_to_end_client-test"'
when: always
- when: never

end_to_end_error_discovery_gcs:
extends: .error_logs_client_end_to_end
Expand Down

0 comments on commit 2062a0b

Please sign in to comment.