ci: removed ui artifacts (#5400)

This change removes the go mod download process for the UI tests, removes the commented out code block that once called the UI tests, and the duplicate web/wasm build step. The Build step for the web/wasm is now executed via a shell script and called much earlier in the tests.
This commit is contained in:
Antonio Franco (He/Him) 2022-12-12 08:15:16 -05:00 committed by GitHub
parent c575a21509
commit 9671851ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 59 deletions

View File

@ -31,7 +31,6 @@ pipeline {
// download dependencies
sh 'go mod download'
sh 'cd testsuite/ui && go mod download'
// pre-check that we cannot do at a later stage reliably
sh 'check-large-files'

View File

@ -31,7 +31,6 @@ pipeline {
// download dependencies
sh 'go mod download'
sh 'cd testsuite/ui && go mod download'
// pre-check that we cannot do at a later stage reliably
sh 'check-large-files'
@ -134,16 +133,6 @@ pipeline {
sh 'make test-wasm-size'
sh 'protolock status'
dir("testsuite/ui") {
sh 'check-imports ./...'
sh 'check-atomic-align ./...'
sh 'check-monkit ./...'
sh 'check-errs ./...'
sh 'staticcheck ./...'
sh 'golangci-lint --config /go/ci/.golangci.yml -j=2 run'
}
sh './scripts/check-package-lock.sh'
}
}
@ -292,43 +281,6 @@ pipeline {
sh 'cockroach sql --insecure --host=localhost:26257 -e \'drop database testcockroach5;\''
}
}
/*
stage('UI') {
when {
anyOf {
branch 'main'
branch pattern: "release-.*", comparator: "REGEXP"
changeset "testsuite/ui/**"
changeset "web/**"
changeset "satellite/console/**"
changeset "storagenode/console/**"
changeset "multinode/console/**"
}
}
environment {
STORJ_TEST_COCKROACH = 'omit'
STORJ_TEST_POSTGRES = 'postgres://postgres@localhost/testui?sslmode=disable'
STORJ_TEST_BROWSER = '/usr/bin/chromium'
STORJ_TEST_SATELLITE_WEB = "${pwd()}/web/satellite"
STORJ_TEST_EDGE_HOST = '127.0.0.10'
}
steps {
sh 'psql -U postgres -c \'create database testui;\''
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'cd testsuite/ui && go test -parallel 1 -p 1 -short -vet=off -timeout 5m -json -race ./... 2>&1 | tee ../../.build/ui-tests.json | xunit -out ../../.build/ui-tests.xml'
}
}
post {
always {
archiveArtifacts artifacts: '.build/ui-tests.json'
sh script: 'cat .build/ui-tests.json | tparse -all -top -slow 100', returnStatus: true
junit '.build/ui-tests.xml'
}
}
}
*/
stage('Post') {
parallel {
stage('Lint') {

View File

@ -31,7 +31,7 @@ pipeline {
// download dependencies
sh 'go mod download'
sh 'cd testsuite/ui && go mod download'
// pre-check that we cannot do at a later stage reliably
sh 'check-large-files'
@ -133,15 +133,6 @@ pipeline {
sh 'protolock status'
dir("testsuite/ui") {
sh 'check-imports ./...'
sh 'check-atomic-align ./...'
sh 'check-monkit ./...'
sh 'check-errs ./...'
sh 'staticcheck ./...'
sh 'golangci-lint --config /go/ci/.golangci.yml -j=2 run'
}
sh './scripts/check-package-lock.sh'
}
}