mirror of
https://github.com/status-im/consul.git
synced 2025-01-20 18:50:04 +00:00
CI: do not upload test metrics to datadog on forks (#17448)
* bypass uploading testmetrics to datadog on forks / when api is not available * add exclusions to upgrade tests
This commit is contained in:
parent
7166582b3e
commit
b8eb98fcac
2
.github/workflows/reusable-unit-split.yml
vendored
2
.github/workflows/reusable-unit-split.yml
vendored
@ -157,6 +157,8 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: ${{ env.DATADOG_API_KEY}}
|
||||||
env:
|
env:
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
||||||
|
2
.github/workflows/reusable-unit.yml
vendored
2
.github/workflows/reusable-unit.yml
vendored
@ -125,6 +125,8 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: ${{ env.DATADOG_API_KEY}}
|
||||||
env:
|
env:
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
||||||
|
14
.github/workflows/test-integrations.yml
vendored
14
.github/workflows/test-integrations.yml
vendored
@ -121,6 +121,8 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
@ -200,18 +202,24 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" "${{ env.TEST_RESULTS_DIR }}/gotestsum-report.xml"
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" "${{ env.TEST_RESULTS_DIR }}/gotestsum-report.xml"
|
||||||
|
|
||||||
- name: upload leader coverage
|
- name: upload leader coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" "${{ env.TEST_RESULTS_DIR }}/gotestsum-report-leader.xml"
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" "${{ env.TEST_RESULTS_DIR }}/gotestsum-report-leader.xml"
|
||||||
|
|
||||||
- name: upload agent coverage
|
- name: upload agent coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
@ -338,6 +346,8 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
@ -442,6 +452,8 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
@ -555,6 +567,8 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/datadog-ci
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
|
# do not run on forks
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
Loading…
x
Reference in New Issue
Block a user