Message ID | 20220112001431.1280749-1-trini@konsulko.com |
---|---|
State | Accepted |
Commit | 67d3e67dd8c2784fc618b4cd4f4e8a810c220211 |
Delegated to: | Tom Rini |
Headers | show |
Series | [1/4] ci: azure: Update to use stages | expand |
On Tue, Jan 11, 2022 at 07:14:28PM -0500, Tom Rini wrote: > Follow what we do in GitLab CI where we break the jobs up in to stages > such that if earlier and often quicker sanity tests fail we don't run > everything else. > > Signed-off-by: Tom Rini <trini@konsulko.com> > --- > .azure-pipelines.yml | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) I want to note that in my testing this didn't change the overall run-time of the CI job.
On Tue, Jan 11, 2022 at 07:14:28PM -0500, Tom Rini wrote: > Follow what we do in GitLab CI where we break the jobs up in to stages > such that if earlier and often quicker sanity tests fail we don't run > everything else. > > Signed-off-by: Tom Rini <trini@konsulko.com> Applied to u-boot/master, thanks!
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 670bbc0e1636..d97115668167 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -9,7 +9,9 @@ variables: container_option: -u 0 work_dir: /u -jobs: +stages: +- stage: testsuites + jobs: - job: tools_only_windows displayName: 'Ensure host tools build for Windows' pool: @@ -199,6 +201,8 @@ jobs: export PATH=/opt/gcc-11.1.0-nolibc/arm-linux-gnueabi/bin:$PATH test/nokia_rx51_test.sh +- stage: test_py + jobs: - job: test_py displayName: 'test.py' pool: @@ -381,6 +385,8 @@ jobs: # Some tests using libguestfs-tools need the fuse device to run docker run "$@" --device /dev/fuse:/dev/fuse -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh +- stage: world_build + jobs: - job: build_the_world displayName: 'Build the World' pool:
Follow what we do in GitLab CI where we break the jobs up in to stages such that if earlier and often quicker sanity tests fail we don't run everything else. Signed-off-by: Tom Rini <trini@konsulko.com> --- .azure-pipelines.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)