[e2e tests] Remove BuildKite reporter (#47449)

* Remove BuildKite reporter

* Changelog

* Remove BuildKite reporter from api tests
This commit is contained in:
Adrian Moldovan 2024-05-14 12:25:17 +03:00 committed by GitHub
parent 35f07934a4
commit 7b96dfca67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 36 deletions

View File

@ -116,29 +116,12 @@ jobs:
install: '${{ matrix.projectName }}...' install: '${{ matrix.projectName }}...'
build: '${{ matrix.projectName }}' build: '${{ matrix.projectName }}'
- name: Get commit message
id: get_commit_message
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
COMMIT_MESSAGE=`echo "${{ github.event.head_commit.message }}" | head -1`
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
COMMIT_MESSAGE="${{ github.event.pull_request.title }}"
else
COMMIT_MESSAGE="${{ github.event_name }}"
fi
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"
shell: bash
- name: 'Prepare Test Environment' - name: 'Prepare Test Environment'
id: 'prepare-test-environment' id: 'prepare-test-environment'
if: ${{ matrix.testEnv.shouldCreate }} if: ${{ matrix.testEnv.shouldCreate }}
run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.testEnv.start }}' run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.testEnv.start }}'
- name: 'Run tests' - name: 'Run tests'
env:
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
BUILDKITE_ANALYTICS_MESSAGE: ${{ steps.get_commit_message.outputs.COMMIT_MESSAGE }}
run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.command }}' run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.command }}'
- name: 'Upload artifacts' - name: 'Upload artifacts'
@ -170,29 +153,12 @@ jobs:
install: '${{ matrix.projectName }}...' install: '${{ matrix.projectName }}...'
build: '${{ matrix.projectName }}' build: '${{ matrix.projectName }}'
- name: Get commit message
id: get_commit_message
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
COMMIT_MESSAGE=`echo "${{ github.event.head_commit.message }}" | head -1`
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
COMMIT_MESSAGE="${{ github.event.pull_request.title }}"
else
COMMIT_MESSAGE="${{ github.event_name }}"
fi
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"
shell: bash
- name: 'Prepare Test Environment' - name: 'Prepare Test Environment'
id: 'prepare-test-environment' id: 'prepare-test-environment'
if: ${{ matrix.testEnv.shouldCreate }} if: ${{ matrix.testEnv.shouldCreate }}
run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.testEnv.start }}' run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.testEnv.start }}'
- name: 'Run tests' - name: 'Run tests'
env:
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_API_ANALYTICS_TOKEN }}
BUILDKITE_ANALYTICS_MESSAGE: ${{ steps.get_commit_message.outputs.COMMIT_MESSAGE }}
run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.command }}' run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.command }}'
- name: 'Upload artifacts' - name: 'Upload artifacts'

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Remove BuildKite reporter from e2e tests

View File

@ -48,7 +48,6 @@ const config = {
'./test-results/test-results.json', './test-results/test-results.json',
}, },
], ],
[ 'buildkite-test-collector/playwright/reporter' ],
], ],
use: { use: {
screenshot: 'only-on-failure', screenshot: 'only-on-failure',

View File

@ -31,7 +31,6 @@ const reporter = [
if ( process.env.CI ) { if ( process.env.CI ) {
reporter.push( [ 'github' ] ); reporter.push( [ 'github' ] );
reporter.push( [ 'buildkite-test-collector/playwright/reporter' ] );
} else { } else {
reporter.push( [ reporter.push( [
'html', 'html',