From f8beaa81ad604a7c1fcdbc8e9a580c6d420c4ca7 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 2 May 2025 16:05:34 +0100 Subject: [PATCH 01/14] HZG-188 `git bisect` reproducer --- .github/actions/build-test/unix/action.yml | 8 ++ .github/config.env | 3 +- .github/workflows/git-bisect.yml | 90 ++++++++++++++++++++++ 3 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/git-bisect.yml diff --git a/.github/actions/build-test/unix/action.yml b/.github/actions/build-test/unix/action.yml index c77a55677..bb05abb72 100644 --- a/.github/actions/build-test/unix/action.yml +++ b/.github/actions/build-test/unix/action.yml @@ -34,6 +34,14 @@ env: runs: using: composite steps: + - name: Local build + shell: ${{ env.shell }} + working-directory: hazelcast-repo + run: | + ./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout + echo "HAZELCAST_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ${GITHUB_ENV} + echo "HZ_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ${GITHUB_ENV} + - name: Download hazelcast-enterprise-tests.jar shell: ${{ env.shell }} run: | diff --git a/.github/config.env b/.github/config.env index b6f995aac..0f8472f38 100644 --- a/.github/config.env +++ b/.github/config.env @@ -1,4 +1,3 @@ JAVA_VERSION=17 JAVA_DISTRIBUTION=temurin -MAVEN_VERSION=3.9.9 -HAZELCAST_VERSION=5.4.0 \ No newline at end of file +MAVEN_VERSION=3.9.9 \ No newline at end of file diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml new file mode 100644 index 000000000..9ef9ab90f --- /dev/null +++ b/.github/workflows/git-bisect.yml @@ -0,0 +1,90 @@ +name: Git Bisect Test +on: + + # automatic on every pull request + pull_request: + +env: + boost_version: 1.78.0 + boost_archive_name: 'boost_1_78_0.tar.gz' + boost_folder_name: 'boost_1_78_0' + boost_include_folder: 'C:\Boost\include\boost-1_78' + boost_url: 'https://archives.boost.io/release/1.78.0/source/boost_1_78_0.tar.gz' + thrift_version: 0.13.0 + run_tests: false + +jobs: + # get + get-refs: + name: Get Refs + runs-on: ubuntu-latest + outputs: + ref: ${{ steps.get-refs.outputs.ref }} + merged-ref: ${{ steps.get-refs.outputs.merged-ref }} + + steps: + - name: Get Refs + id: get-refs + shell: bash + run: | + echo "EVENT: ${{ github.event_name }}" + if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then + echo "PR_NUMBER: ${{ inputs.pr_number }}" + echo "PR_COMMIT: ${{ inputs.pr_commit }}" + echo "ref=refs/pull/${{ inputs.pr_number }}/merge" >> $GITHUB_OUTPUT + echo "merged-ref=${{ inputs.pr_commit }}" >> $GITHUB_OUTPUT + else + echo "PR_NUMBER: ${{ github.event.pull_request.number }}" + echo "ref=refs/pull/${{ github.event.pull_request.number }}/merge" >> $GITHUB_OUTPUT + echo "merged-ref=''" >> $GITHUB_OUTPUT + fi + + Ubuntu-x86_64: + needs: get-refs + strategy: + fail-fast: false + matrix: + + build_type: + - type: Debug + warn_as_err: ON + + shared_libs: + - toggle: OFF + name: Static + + with_openssl: + - toggle: ON + name: SSL + + runs-on: ubuntu-latest + + name: ubuntu-x64-(${{ matrix.build_type.type }}, ${{ matrix.shared_libs.name }}, ${{ matrix.with_openssl.name }}) + steps: + + - uses: actions/checkout@v4 + with: + ref: ${{ needs.get-refs.outputs.ref }} + token: ${{ secrets.GH_TOKEN }} + + - uses: actions/checkout@v4 + with: + repository: 'hazelcast/hazelcast-mono' + ref: '1ac9c7eaea720a82fbe6800ca768eae064f71155' + path: 'hazelcast-repo' + token: ${{ secrets.GH_TOKEN }} + + - uses: ./.github/actions/build-test/ubuntu-x86_64 + with: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + BOOST_VERSION: ${{ env.boost_version }} + THRIFT_VERSION: ${{ env.thrift_version }} + WARN_AS_ERR: ${{ matrix.build_type.warn_as_err }} + BUILD_TYPE: ${{ matrix.build_type.type }} + SHARED_LIBS_TOGGLE: ${{ matrix.shared_libs.toggle }} + OPENSSL_TOGGLE: ${{ matrix.with_openssl.toggle }} + RUN_TESTS: ${{ env.run_tests }} + HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }} From 7f3398fe31720fd6da6d7419c8761f87fc68b85d Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 16:39:36 +0100 Subject: [PATCH 02/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index 9ef9ab90f..cb932d3e8 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '1ac9c7eaea720a82fbe6800ca768eae064f71155' + ref: '959cec512229c6b7919dcf4f0f2ac5e1ee4af422' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From d3c40a2aa760d963f08fb34a7c04388e6c93d620 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 18:28:33 +0100 Subject: [PATCH 03/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index cb932d3e8..858dbea3d 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '959cec512229c6b7919dcf4f0f2ac5e1ee4af422' + ref: '32c0a22d7a4d8628c4ba632918ca5c30ae6d676b' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From f4574a3a9e5927d331e36ccf1ca42584b3c037c2 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 18:45:38 +0100 Subject: [PATCH 04/14] Update action.yml --- .github/actions/build-test/unix/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build-test/unix/action.yml b/.github/actions/build-test/unix/action.yml index bb05abb72..e9aaf45b7 100644 --- a/.github/actions/build-test/unix/action.yml +++ b/.github/actions/build-test/unix/action.yml @@ -38,7 +38,7 @@ runs: shell: ${{ env.shell }} working-directory: hazelcast-repo run: | - ./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout + ./mvnw install -Pquick --batch-mode --no-transfer-progress echo "HAZELCAST_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ${GITHUB_ENV} echo "HZ_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ${GITHUB_ENV} From a26cb35a2e3c8b5dd4f197b99c2a9a6477a4e2b4 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 19:10:27 +0100 Subject: [PATCH 05/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index 858dbea3d..c8de3783c 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '32c0a22d7a4d8628c4ba632918ca5c30ae6d676b' + ref: '705444c7935f4cc42b50b9df7622745559a27f17' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From 09e59d16145cd2868a0e9f1c43d3712c6a32c2bd Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 19:56:41 +0100 Subject: [PATCH 06/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index c8de3783c..f7b8a2f61 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '705444c7935f4cc42b50b9df7622745559a27f17' + ref: '0164d113f832d53a897bc72569c284a17272cde0' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From 869be3449c6ee5a12de2e5ff07a8156542458ac6 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 20:39:23 +0100 Subject: [PATCH 07/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index f7b8a2f61..264346de0 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '0164d113f832d53a897bc72569c284a17272cde0' + ref: 'd9f22552aebe868a597a2edca1d02247df3183c0' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From 1a1085f61777beeb72ce5152053ea5d968ffd01b Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 21:09:05 +0100 Subject: [PATCH 08/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index 264346de0..f5e7b0ed4 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: 'd9f22552aebe868a597a2edca1d02247df3183c0' + ref: '795c7ec74fd0bf297394434efc5ef386c07a8d5b' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From adcc50fc0d1abc3ce1bd2a30abdeb8888528a538 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 21:32:13 +0100 Subject: [PATCH 09/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index f5e7b0ed4..0f5d8a495 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '795c7ec74fd0bf297394434efc5ef386c07a8d5b' + ref: '61a34c0b5b2db066173933eaefa37af84a64cd84' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From a4e9590fd72accdf9d823e58f697bb00f53a16f7 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 21:55:07 +0100 Subject: [PATCH 10/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index 0f5d8a495..994e6aba1 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '61a34c0b5b2db066173933eaefa37af84a64cd84' + ref: '12690c982b18762bc656aec010f3e1fb30b047d1' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From c75bc6a490b16edfbd8a29c276613db297efc26e Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 22:15:48 +0100 Subject: [PATCH 11/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index 994e6aba1..71ad5eee0 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '12690c982b18762bc656aec010f3e1fb30b047d1' + ref: '24ac70a09b90df6d53e2ba6957bffcc3a41d6028' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From 13748db4c7571b3c0feb084fa7c56180ecfee736 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 22:54:02 +0100 Subject: [PATCH 12/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index 71ad5eee0..4771ad9b8 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '24ac70a09b90df6d53e2ba6957bffcc3a41d6028' + ref: '9ef2025fbbd8bbeb5c8271a2dd0788659a377fd9' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From aa29b9698f2d7175145217618db8bdb63b0fd8ab Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 23:24:16 +0100 Subject: [PATCH 13/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index 4771ad9b8..e5772d40a 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: '9ef2025fbbd8bbeb5c8271a2dd0788659a377fd9' + ref: 'c2d2246a63d3c95c4a1489e92416272f637750da' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }} From d92031b3487f1e7c981d06f7dbb659e525ff8476 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 2 May 2025 23:46:17 +0100 Subject: [PATCH 14/14] Update git-bisect.yml --- .github/workflows/git-bisect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-bisect.yml b/.github/workflows/git-bisect.yml index e5772d40a..4d4bc1951 100644 --- a/.github/workflows/git-bisect.yml +++ b/.github/workflows/git-bisect.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: repository: 'hazelcast/hazelcast-mono' - ref: 'c2d2246a63d3c95c4a1489e92416272f637750da' + ref: '1ca4d14c8674585850e9062e3e850ee9f44a59a7' path: 'hazelcast-repo' token: ${{ secrets.GH_TOKEN }}