Commit 60646cd5 authored by Andrejs Cunskis's avatar Andrejs Cunskis Committed by Rémy Coutable

Create MR comment with allure test report urls

parent 327e6c3e
...@@ -144,18 +144,20 @@ review-stop: ...@@ -144,18 +144,20 @@ review-stop:
.allure-report-base: .allure-report-base:
image: image:
name: ${GITLAB_DEPENDENCY_PROXY}andrcuns/allure-report-publisher:0.0.6 name: ${GITLAB_DEPENDENCY_PROXY}andrcuns/allure-report-publisher:0.3.1
entrypoint: [""] entrypoint: [""]
stage: post-qa stage: post-qa
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
STORAGE_CREDENTIALS: $QA_ALLURE_REPORT_GCS_CREDENTIALS STORAGE_CREDENTIALS: $QA_ALLURE_REPORT_GCS_CREDENTIALS
GITLAB_AUTH_TOKEN: $GITLAB_QA_MR_ALLURE_REPORT_TOKEN
script: script:
- | - |
allure-report-publisher upload gcs \ allure-report-publisher upload gcs \
--results-glob="qa/gitlab-qa-run-*/**/allure-results/*" \ --results-glob="qa/gitlab-qa-run-*/**/allure-results/*" \
--bucket="gitlab-qa-allure-reports" \ --bucket="gitlab-qa-allure-reports" \
--prefix="$ALLURE_REPORT_PATH_PREFIX/$CI_COMMIT_REF_SLUG" \ --prefix="$ALLURE_REPORT_PATH_PREFIX/$CI_COMMIT_REF_SLUG" \
--update-pr="comment" \
--copy-latest \ --copy-latest \
--color --color
...@@ -231,18 +233,20 @@ parallel-spec-reports: ...@@ -231,18 +233,20 @@ parallel-spec-reports:
allure-report-qa-smoke: allure-report-qa-smoke:
extends: extends:
- .allure-report-base - .allure-report-base
- .review:rules:review-qa-smoke - .review:rules:review-qa-smoke-report
needs: ["review-qa-smoke"] needs: ["review-qa-smoke"]
variables: variables:
ALLURE_REPORT_PATH_PREFIX: gitlab-review-smoke ALLURE_REPORT_PATH_PREFIX: gitlab-review-smoke
ALLURE_JOB_NAME: review-qa-smoke
allure-report-qa-all: allure-report-qa-all:
extends: extends:
- .allure-report-base - .allure-report-base
- .review:rules:review-qa-all - .review:rules:review-qa-all-report
needs: ["review-qa-all"] needs: ["review-qa-all"]
variables: variables:
ALLURE_REPORT_PATH_PREFIX: gitlab-review-all ALLURE_REPORT_PATH_PREFIX: gitlab-review-all
ALLURE_JOB_NAME: review-qa-all
danger-review: danger-review:
extends: extends:
......
...@@ -1130,6 +1130,22 @@ ...@@ -1130,6 +1130,22 @@
changes: *code-qa-patterns changes: *code-qa-patterns
allow_failure: true allow_failure: true
.review:rules:review-qa-smoke-report:
rules:
- <<: *if-not-ee
when: never
- <<: *if-dot-com-gitlab-org-merge-request
changes: *ci-review-patterns
when: always
- <<: *if-dot-com-gitlab-org-merge-request
changes: *frontend-patterns
allow_failure: true
when: always
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-qa-patterns
allow_failure: true
when: always
.review:rules:review-qa-all: .review:rules:review-qa-all:
rules: rules:
- <<: *if-not-ee - <<: *if-not-ee
...@@ -1142,6 +1158,19 @@ ...@@ -1142,6 +1158,19 @@
changes: *qa-patterns changes: *qa-patterns
allow_failure: true allow_failure: true
.review:rules:review-qa-all-report:
rules:
- <<: *if-not-ee
when: never
- <<: *if-dot-com-gitlab-org-merge-request
changes: *code-patterns
when: manual
allow_failure: true
- <<: *if-dot-com-gitlab-org-merge-request
changes: *qa-patterns
allow_failure: true
when: always
.review:rules:review-cleanup: .review:rules:review-cleanup:
rules: rules:
- <<: *if-not-ee - <<: *if-not-ee
......
...@@ -132,6 +132,9 @@ the QA smoke suite. ...@@ -132,6 +132,9 @@ the QA smoke suite.
You can also manually start the `review-qa-all`: it runs the full QA suite. You can also manually start the `review-qa-all`: it runs the full QA suite.
After the end-to-end test runs have finished, [Allure reports](https://github.com/allure-framework/allure2) are generated and published by
the `allure-report-qa-smoke` and `allure-report-qa-all` jobs. A comment with links to the reports are added to the merge request.
## Performance Metrics ## Performance Metrics
On every [pipeline](https://gitlab.com/gitlab-org/gitlab/pipelines/125315730) in the `qa` stage, the On every [pipeline](https://gitlab.com/gitlab-org/gitlab/pipelines/125315730) in the `qa` stage, the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment