]> xenbits.xensource.com Git - xen-guest-agent.git/commitdiff
ci/everycommit: adjust "git status" call to investigate build failures
authorYann Dirson <yann.dirson@vates.fr>
Mon, 29 Jan 2024 15:30:30 +0000 (16:30 +0100)
committerYann Dirson <yann.dirson@vates.fr>
Mon, 29 Jan 2024 16:02:58 +0000 (17:02 +0100)
This is a more useful version of of 9b16ce355debd105b65bb841b300e585e80aefad.

This allows to diagnose errors like forgetting to update Cargo.lock when
Cargo.toml is updated, as errors is reported by git-rebase before a second
`--exec` can be run.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
.gitlab-ci.yml

index 0d4d164536cad734f012366ee5f809eadd7630b5..d48b6498c3f7ab49f77d62856128bba8d74e5b2f 100644 (file)
@@ -183,8 +183,7 @@ build-linux-everycommit:
     # to switch a PR back to draft, mitigating the risk to push a
     # failing commit)
     - git rebase --rebase-merges $CI_MERGE_REQUEST_DIFF_BASE_SHA
-      --exec 'devscripts/gitlab-ci-runbuild.sh cargo build ${FEATURES} ${CARGO_FLAGS}'
-      --exec 'git status'
+      --exec 'devscripts/gitlab-ci-runbuild.sh cargo build ${FEATURES} ${CARGO_FLAGS} && git status'
   after_script:
     # since Git Strategy is "fetch", avoid poluting subsequent runs
     # (but as of v16.9 it still won't be run on timeout or cancel)