ci(jenkins): persist gate rc and stabilize slow uploader test

This commit is contained in:
Brad Stein 2026-04-18 17:29:50 -03:00
parent 9d5cda94ca
commit aab0efadb8
2 changed files with 10 additions and 4 deletions

12
Jenkinsfile vendored
View File

@ -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
'''
}
}

View File

@ -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(