Build jobs should never take more than 1-3 minutes.
These jobs are never slow, either they finish within reasonable time or
something has gone wrong and the job will never terminate, so we should
instead timeout and retry.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24995>
extends: .build-rules
# Cancel job if a newer commit is pushed to the same branch
interruptible: true
+ # Build jobs don't take more than 1-3 minutes. 5-8 min max on a fresh runner
+ # without a populated ccache.
+ # These jobs are never slow, either they finish within reasonable time or
+ # something has gone wrong and the job will never terminate, so we should
+ # instead timeout so that the retry mechanism can kick in.
+ # A few exception are made, see `timeout:` overrides in the rest of this
+ # file.
+ timeout: 30m
artifacts:
name: "mesa_${CI_JOB_NAME}"
when: always