This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 9af1d684e0f NO-ISSUE: Add an extra check on CI for uncommitted files
right after `bootstrap` (#2878)
9af1d684e0f is described below
commit 9af1d684e0fb4cf3469fbade862b7044697c25f1
Author: Tiago Bento <[email protected]>
AuthorDate: Tue Feb 4 19:35:19 2025 -0500
NO-ISSUE: Add an extra check on CI for uncommitted files right after
`bootstrap` (#2878)
---
.github/workflows/ci_build.yml | 9 ++++++++-
packages/sonataflow-operator/hack/bump-version.sh | 1 -
packages/sonataflow-operator/package.json | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml
index 17daf65de0c..9e3ce64ce5d 100644
--- a/.github/workflows/ci_build.yml
+++ b/.github/workflows/ci_build.yml
@@ -114,6 +114,13 @@ jobs:
with:
pnpm_filter_string: ${{
steps.setup_build_mode.outputs.bootstrapPnpmFilterString }}
+ - name: "Check hanging uncommitted files after bootstrapping (you should
either commit or not modify those!)"
+ if: steps.setup_build_mode.outputs.mode != 'none'
+ shell: bash
+ run: |
+ git diff
+ [ "0" == "$(git diff | wc -l | tr -d ' ')" ]
+
- name: "FULL → Build"
if: steps.setup_build_mode.outputs.mode == 'full'
shell: bash
@@ -184,7 +191,7 @@ jobs:
cat "$BUILD_ENV__accessErrorsLogFileAbsolutePath"
[ "0" == "$(cat "$BUILD_ENV__accessErrorsLogFileAbsolutePath" | wc
-l | tr -d ' ')" ]
- - name: "Check hanging uncommitted files (you should commit those!)"
+ - name: "Check hanging uncommitted files after building (you should
either commit or not modify those!)"
if: always() && !cancelled() && steps.setup_build_mode.outputs.mode !=
'none'
shell: bash
run: |
diff --git a/packages/sonataflow-operator/hack/bump-version.sh
b/packages/sonataflow-operator/hack/bump-version.sh
index ca7e4b92bad..68c7b8585a6 100755
--- a/packages/sonataflow-operator/hack/bump-version.sh
+++ b/packages/sonataflow-operator/hack/bump-version.sh
@@ -45,6 +45,5 @@ node -p "require('replace-in-file').sync({ from:
/\boperatorVersion = .*/g, to:
node -p "require('replace-in-file').sync({ from: /\btagVersion = .*/g, to:
'tagVersion = \"${imageTag}\"', files: ['version/version.go'] });"
make generate-all
-make vet
echo "Version bumped to ${version}"
diff --git a/packages/sonataflow-operator/package.json
b/packages/sonataflow-operator/package.json
index 655c7e6cac0..f957906c8b6 100644
--- a/packages/sonataflow-operator/package.json
+++ b/packages/sonataflow-operator/package.json
@@ -31,7 +31,7 @@
"image:bundle:build:darwin:win32": "echo 'Build Operator bundle image not
supported on Windows and macOS'",
"image:bundle:build:linux": ".
./node_modules/@kie-tools/python-venv/venv/bin/activate && run-script-if --bool
\"$(build-env containerImages.build)\" --then \"make bundle bundle-build\"",
"install": "run-script-os",
- "install:darwin:linux": "rimraf bin && go work sync && go mod tidy && pnpm
controllers:update:cfg && pnpm bump-version && pnpm format",
+ "install:darwin:linux": "rimraf bin && go work sync && go mod tidy && pnpm
controllers:update:cfg && pnpm format && pnpm bump-version && pnpm format",
"install:win32": "echo 'Install not supported on Windows'",
"test": "run-script-os",
"test:darwin:linux": ".
./node_modules/@kie-tools/python-venv/venv/bin/activate && run-script-if
--ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env
tests.run)\" --then \"make test\"",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]