[gimp/wip/Jehan/distribute-meson-tarball] gitlab-ci: make gimp-meson-debian more robust to source updates.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/distribute-meson-tarball] gitlab-ci: make gimp-meson-debian more robust to source updates.
- Date: Mon, 1 Aug 2022 21:21:17 +0000 (UTC)
commit f69d333ad72e9ed13bffd18d5a6c0e3307795c41
Author: Jehan <jehan girinstud io>
Date: Mon Aug 1 23:17:00 2022 +0200
gitlab-ci: make gimp-meson-debian more robust to source updates.
The `ninja dist` step fails with:
> ERROR: Repository has uncommitted changes that will not be included in the dist tarball
> Use --allow-dirty to ignore the warning and proceed anyway
> FAILED: meson-dist
> /usr/bin/meson dist
Astonishingly if I run a `git diff` (or git status) in the CI, I saw no
changes and the dist suddenly succeeded. When I remove it, it fails
again. And of course, locally it's alright. No way to diagnose!
Anyway it's not a bad idea to leave some diagnostic logs in the CI so
here we go, properly outputting the diff and exiting the job with an
error when there is a diff. Because anyway, there should be none. It
would mean that there is likely some issue in versionned generated
files.
.gitlab-ci.yml | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d0816b8baa..a1104afbb3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -238,6 +238,10 @@ gimp-meson-debian:
--prefix="${INSTALL_PREFIX}"
- ninja -C _build
- ninja -C _build test
+ # The src should not be changed by the build. If it is, something is
+ # wrong. Let's print out the diff for debugging in such case, and
+ # exit to fail the CI.
+ - [ `git diff |wc -l` -eq 0 ] || (git diff && exit 1)
- ninja -C _build dist
gimp-clang-debian:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]