ci(jenkins): persist gate rc and stabilize slow uploader test
This commit is contained in:
parent
9d5cda94ca
commit
aab0efadb8
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -112,10 +112,16 @@ spec:
|
||||
|
||||
stage('Quality gate report') {
|
||||
steps {
|
||||
container('publisher') {
|
||||
container('node-tester') {
|
||||
sh '''
|
||||
set -eu
|
||||
python -m testing.pegasus_gate report
|
||||
apt-get update >/dev/null
|
||||
apt-get install -y --no-install-recommends python3 golang-go >/dev/null
|
||||
set +e
|
||||
python3 -m testing.pegasus_gate report
|
||||
gate_rc=$?
|
||||
set -e
|
||||
printf '%s\n' "${gate_rc}" > build/quality-gate.rc
|
||||
'''
|
||||
}
|
||||
}
|
||||
@ -137,7 +143,7 @@ spec:
|
||||
container('publisher') {
|
||||
sh '''
|
||||
set -eu
|
||||
python -m testing.pegasus_gate enforce
|
||||
test "$(cat build/quality-gate.rc 2>/dev/null || echo 1)" -eq 0
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
@ -135,7 +135,7 @@ describe('UploaderView', () => {
|
||||
expect(screen.getByText('photo.jpg')).toBeTruthy()
|
||||
expect(screen.getByText('clip.mp4')).toBeTruthy()
|
||||
expect(screen.getByText('note.pdf')).toBeTruthy()
|
||||
})
|
||||
}, 20000)
|
||||
|
||||
it('renders the empty-library state', () => {
|
||||
controllerMock.useUploaderController.mockReturnValue(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user