From beb1b5e9cbad7e33616835dbc913bdc1575ddd53 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 7 Nov 2023 14:40:08 +0800 Subject: [PATCH 01/91] add yml --- .github/workflows/pullrequesttarget.yml | 68 +++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/pullrequesttarget.yml diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml new file mode 100644 index 00000000000..33331a9b164 --- /dev/null +++ b/.github/workflows/pullrequesttarget.yml @@ -0,0 +1,68 @@ +name: Run tests from fork + +on: + pull_request_target: + types: [ opened, synchronize ] +jobs: + demo: + name: trigger sonar + runs-on: ubuntu-latest + steps: + - name: Get User Permission + id: checkAccess + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission + if: steps.checkAccess.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check + - name: Run tests + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + - name: Trigger sonar + uses: "buildkite/trigger-pipeline-action@v2.0.0" + with: + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE_2 }} + pipeline: "tronprotocol/sonar-check-and-checkstyle" + demo1: + name: trigger debian unit test + runs-on: ubuntu-latest + steps: + - name: Get User Permission2 + id: checkAccess2 + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission2 + if: steps.checkAccess2.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 + - name: Checkout code2 + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check + - name: Run tests2 + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + - name: Trigger debian + uses: "buildkite/trigger-pipeline-action@v2.0.0" + with: + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE_2 }} + pipeline: "tronprotocol/build-on-debian-9-dot-8" \ No newline at end of file From 884754237cb950867ae9851ea35c75a5b542ff74 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 7 Nov 2023 14:45:46 +0800 Subject: [PATCH 02/91] add yml --- .github/workflows/pullrequesttarget.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 33331a9b164..2a1e52d2d0f 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -33,7 +33,7 @@ jobs: - name: Trigger sonar uses: "buildkite/trigger-pipeline-action@v2.0.0" with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE_2 }} + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" demo1: name: trigger debian unit test @@ -64,5 +64,5 @@ jobs: - name: Trigger debian uses: "buildkite/trigger-pipeline-action@v2.0.0" with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE_2 }} + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/build-on-debian-9-dot-8" \ No newline at end of file From a577096317a85085a9869e36fc8cbe619570f28f Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 7 Nov 2023 15:36:39 +0800 Subject: [PATCH 03/91] add yml --- .github/workflows/pullrequesttarget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 2a1e52d2d0f..7a3aef896bc 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -5,7 +5,7 @@ on: types: [ opened, synchronize ] jobs: demo: - name: trigger sonar + name: trigger sonar1 runs-on: ubuntu-latest steps: - name: Get User Permission From 32a377389e532dd948618397e4bf2249116bce12 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 7 Nov 2023 15:43:42 +0800 Subject: [PATCH 04/91] change --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..8e93c1abff2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffailed: " + e.getMessage(), e); } return bytes; } From 1f87e0633c255800d01dae4c97f010987f63e2eb Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 10:47:26 +0800 Subject: [PATCH 05/91] change --- .github/workflows/pullrequesttarget.yml | 75 +++++++++++++++---------- 1 file changed, 45 insertions(+), 30 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 7a3aef896bc..084c1fd7c16 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -31,38 +31,53 @@ jobs: run: | echo "x${{ secrets.JUST_BUILD_KITE }}" - name: Trigger sonar + id: build uses: "buildkite/trigger-pipeline-action@v2.0.0" with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - demo1: - name: trigger debian unit test - runs-on: ubuntu-latest - steps: - - name: Get User Permission2 - id: checkAccess2 - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission2 - if: steps.checkAccess2.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - exit 1 - - name: Checkout code2 - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Run tests2 - run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - - name: Trigger debian - uses: "buildkite/trigger-pipeline-action@v2.0.0" + - name: Download Buildkite Artifacts + id: download + uses: EnricoMi/download-buildkite-artifact-action@v1 with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} - pipeline: "tronprotocol/build-on-debian-9-dot-8" \ No newline at end of file + buildkite_token: ${{ secrets.JUST_BUILD_KITE }} + buildkite_build_url: ${{ steps.build.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts + - name: check result + if: steps.download.build-state != 'passed' + run: | + echo "buildkite result is: ${{ steps.download.build-state }}" + exit 1 +# demo1: +# name: trigger debian unit test +# runs-on: ubuntu-latest +# steps: +# - name: Get User Permission2 +# id: checkAccess2 +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check User Permission2 +# if: steps.checkAccess2.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# exit 1 +# - name: Checkout code2 +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Run tests2 +# run: | +# echo "x${{ secrets.JUST_BUILD_KITE }}" +# - name: Trigger debian +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/build-on-debian-9-dot-8" \ No newline at end of file From 1c3a76fcf336af4c1ec77c32f97b4e628894d06e Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 10:49:51 +0800 Subject: [PATCH 06/91] aaaa --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 8e93c1abff2..7cb08768ecb 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffailed: " + e.getMessage(), e); + logger.error("objectToByteArray fffailed: " + e.getMessage(), e); } return bytes; } From 1e265eab33f9cd4b5a012b1d9f766c3615b12cd5 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 10:51:48 +0800 Subject: [PATCH 07/91] aaaa --- .github/workflows/pullrequesttarget.yml | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 084c1fd7c16..34a08dea65c 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -36,20 +36,20 @@ jobs: with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - - name: Download Buildkite Artifacts - id: download - uses: EnricoMi/download-buildkite-artifact-action@v1 - with: - buildkite_token: ${{ secrets.JUST_BUILD_KITE }} - buildkite_build_url: ${{ steps.build.outputs.url }} - ignore_build_states: blocked,canceled,skipped,not_run - ignore_job_states: timed_out,failed - output_path: artifacts - - name: check result - if: steps.download.build-state != 'passed' - run: | - echo "buildkite result is: ${{ steps.download.build-state }}" - exit 1 +# - name: Download Buildkite Artifacts +# id: download +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.JUST_BUILD_KITE }} +# buildkite_build_url: ${{ steps.build.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: check result +# if: steps.download.build-state != 'passed' +# run: | +# echo "buildkite result is: ${{ steps.download.build-state }}" +# exit 1 # demo1: # name: trigger debian unit test # runs-on: ubuntu-latest From c74cf3ba4f6900e2d563b65581565c6bb1b02efa Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 10:52:41 +0800 Subject: [PATCH 08/91] aaaa --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 7cb08768ecb..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffailed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 67f08e1c5bf8cfa6e31ab2cfd1f391978bd50d28 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 10:54:32 +0800 Subject: [PATCH 09/91] aaaa --- .github/workflows/pullrequesttarget.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 34a08dea65c..60e625a0975 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -36,15 +36,15 @@ jobs: with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" -# - name: Download Buildkite Artifacts -# id: download -# uses: EnricoMi/download-buildkite-artifact-action@v1 -# with: -# buildkite_token: ${{ secrets.JUST_BUILD_KITE }} -# buildkite_build_url: ${{ steps.build.outputs.url }} -# ignore_build_states: blocked,canceled,skipped,not_run -# ignore_job_states: timed_out,failed -# output_path: artifacts + - name: Download Buildkite Artifacts + id: download + uses: EnricoMi/download-buildkite-artifact-action@v1 + with: + buildkite_token: ${{ secrets.JUST_BUILD_KITE }} + buildkite_build_url: ${{ steps.build.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts # - name: check result # if: steps.download.build-state != 'passed' # run: | From 392cbdd6b5a93da461b2f128f4afbb6eb3ff20df Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 10:55:39 +0800 Subject: [PATCH 10/91] bbb --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..5851eacbb8c 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray fffffffailed: " + e.getMessage(), e); } return bytes; } From e19e4b86bb600aa5ff01323a3c800e14a5550e43 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 11:03:40 +0800 Subject: [PATCH 11/91] CCCC --- .github/workflows/pullrequesttarget.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 60e625a0975..7af068c8bb4 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -34,13 +34,13 @@ jobs: id: build uses: "buildkite/trigger-pipeline-action@v2.0.0" with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} + buildkite_api_access_token: ${{ secrets.BUILD_DOWNLOAD }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - name: Download Buildkite Artifacts id: download uses: EnricoMi/download-buildkite-artifact-action@v1 with: - buildkite_token: ${{ secrets.JUST_BUILD_KITE }} + buildkite_token: ${{ secrets.BUILD_DOWNLOAD }} buildkite_build_url: ${{ steps.build.outputs.url }} ignore_build_states: blocked,canceled,skipped,not_run ignore_job_states: timed_out,failed From 218eddc57e6c8938247eb5ee3199882bd147a5ca Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 11:04:54 +0800 Subject: [PATCH 12/91] DDDD --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 5851eacbb8c..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From c5ab3f0ca4e6ac2e2ea82913807cdda16538b07e Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 11:15:26 +0800 Subject: [PATCH 13/91] DDDD --- .github/workflows/pullrequesttarget.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 7af068c8bb4..4c820db4b34 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -30,17 +30,18 @@ jobs: - name: Run tests run: | echo "x${{ secrets.JUST_BUILD_KITE }}" + echo "x${{ secrets.READ_BUILD }}" - name: Trigger sonar id: build uses: "buildkite/trigger-pipeline-action@v2.0.0" with: - buildkite_api_access_token: ${{ secrets.BUILD_DOWNLOAD }} + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - name: Download Buildkite Artifacts id: download uses: EnricoMi/download-buildkite-artifact-action@v1 with: - buildkite_token: ${{ secrets.BUILD_DOWNLOAD }} + buildkite_token: ${{ secrets.READ_BUILD }} buildkite_build_url: ${{ steps.build.outputs.url }} ignore_build_states: blocked,canceled,skipped,not_run ignore_job_states: timed_out,failed From 3f460403e087b3a987de4be86733b565663f8491 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 11:17:16 +0800 Subject: [PATCH 14/91] SSS --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..d99e0255c8d 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray FFfailed: " + e.getMessage(), e); } return bytes; } From 62c8f5e4058f1a664379f396795806477dd1bb80 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 11:44:02 +0800 Subject: [PATCH 15/91] SSS --- .github/workflows/pullrequesttarget.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 4c820db4b34..9e10aca3045 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -46,11 +46,13 @@ jobs: ignore_build_states: blocked,canceled,skipped,not_run ignore_job_states: timed_out,failed output_path: artifacts -# - name: check result -# if: steps.download.build-state != 'passed' -# run: | -# echo "buildkite result is: ${{ steps.download.build-state }}" -# exit 1 + - name: check result + run: | + echo "buildkite result is: ${{ steps.download.build-state }}" + if: steps.download.build-state != 'passed' + run: | + echo "buildkite result is: ${{ steps.download.build-state }}" + exit 1 # demo1: # name: trigger debian unit test # runs-on: ubuntu-latest From ed8be42920a0f44229df7ab09a73a2510a0f3658 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 11:51:33 +0800 Subject: [PATCH 16/91] SSS --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index d99e0255c8d..3eeb69a4a1b 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray FFfailed: " + e.getMessage(), e); + logger.error("objectToByteArray FFffailed: " + e.getMessage(), e); } return bytes; } From 1ea5db3968f297b886586f9e79e73e3345505fb5 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:06:08 +0800 Subject: [PATCH 17/91] SSS --- .github/workflows/pullrequesttarget.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 9e10aca3045..d987bc0ddc9 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -49,10 +49,10 @@ jobs: - name: check result run: | echo "buildkite result is: ${{ steps.download.build-state }}" - if: steps.download.build-state != 'passed' - run: | - echo "buildkite result is: ${{ steps.download.build-state }}" - exit 1 +# if: steps.download.build-state != 'passed' +# run: | +# echo "buildkite result is: ${{ steps.download.build-state }}" +# exit 1 # demo1: # name: trigger debian unit test # runs-on: ubuntu-latest From 9b6c920a25994d9ac7f2c2c22d57c66b5c2e913e Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:16:47 +0800 Subject: [PATCH 18/91] xxx --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 3eeb69a4a1b..b6898fa2674 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray FFffailed: " + e.getMessage(), e); + logger.error("objectToByteArray FffFffailed: " + e.getMessage(), e); } return bytes; } From 69c718f7740f335b4fd59dbb6abafe4fc4a2afb7 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:26:52 +0800 Subject: [PATCH 19/91] xxx --- .github/workflows/pullrequesttarget.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index d987bc0ddc9..ff8d2b6bb82 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -48,11 +48,11 @@ jobs: output_path: artifacts - name: check result run: | - echo "buildkite result is: ${{ steps.download.build-state }}" -# if: steps.download.build-state != 'passed' -# run: | -# echo "buildkite result is: ${{ steps.download.build-state }}" -# exit 1 + echo "buildkite result is: ${{ steps.download.outputs.build-state }}" + if: steps.download.build-state != 'passed' + run: | + echo "buildkite result is: ${{ steps.download.outputs.build-state }}" + exit 1 # demo1: # name: trigger debian unit test # runs-on: ubuntu-latest From 95a7a2f2f4814d7e2124ced706de2069734bc72c Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:27:43 +0800 Subject: [PATCH 20/91] bbbb --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b6898fa2674..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray FffFffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 0dd6cad4ce69140987fb8969b95aa221451bc245 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:31:25 +0800 Subject: [PATCH 21/91] bbbb --- .github/workflows/pullrequesttarget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index ff8d2b6bb82..ac8ea2aff85 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -47,7 +47,7 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: check result - run: | + run: echo "buildkite result is: ${{ steps.download.outputs.build-state }}" if: steps.download.build-state != 'passed' run: | From e05e9a214a9b4dcfc1aea470a192ae9e9bedb3cc Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:32:38 +0800 Subject: [PATCH 22/91] bbbb --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 3504c7dc28f89a8430be88f6eca2c5bcc1bfe929 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:35:05 +0800 Subject: [PATCH 23/91] fff --- .github/workflows/pullrequesttarget.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index ac8ea2aff85..be6d62f4458 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -47,8 +47,8 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: check result - run: - echo "buildkite result is: ${{ steps.download.outputs.build-state }}" +# run: | +# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" if: steps.download.build-state != 'passed' run: | echo "buildkite result is: ${{ steps.download.outputs.build-state }}" From d254d9808b0c0b134075e2e2ac24c5dd7d43ea8d Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:36:12 +0800 Subject: [PATCH 24/91] fff --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 654c9671eba352501c6779dc7dd7dc69972f2f14 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:37:55 +0800 Subject: [PATCH 25/91] fff --- .github/workflows/pullrequesttarget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index be6d62f4458..19436543d3e 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -49,7 +49,7 @@ jobs: - name: check result # run: | # echo "buildkite result is: ${{ steps.download.outputs.build-state }}" - if: steps.download.build-state != 'passed' + if: steps.download.outputs.build-state != 'passed' run: | echo "buildkite result is: ${{ steps.download.outputs.build-state }}" exit 1 From c8419bbb852b5e6e429e4d4dcab441e736c6c5c1 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:41:27 +0800 Subject: [PATCH 26/91] fff --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..7cb08768ecb 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray fffailed: " + e.getMessage(), e); } return bytes; } From 157283d4dd1bb4bae521ee81313413e0abbdaf6b Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:43:07 +0800 Subject: [PATCH 27/91] fff --- .github/workflows/pullrequesttarget.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 19436543d3e..62357701aa6 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -47,12 +47,12 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: check result -# run: | -# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" - if: steps.download.outputs.build-state != 'passed' - run: | - echo "buildkite result is: ${{ steps.download.outputs.build-state }}" - exit 1 + run: | + echo "buildkite result is: ${{ steps.download.outputs.build-state }}" +# if: steps.download.outputs.build-state != 'passed' +# run: | +# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" +# exit 1 # demo1: # name: trigger debian unit test # runs-on: ubuntu-latest From 362b00839e4ddbcdc50e56c97464001ba25df700 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 14:43:50 +0800 Subject: [PATCH 28/91] fff --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 7cb08768ecb..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 9ffbf5b125cbc3b4577949f98346ebfa3e77ab5d Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 15:30:43 +0800 Subject: [PATCH 29/91] fff --- .github/workflows/pullrequesttarget.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 62357701aa6..0e94b2af7f9 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -47,12 +47,11 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: check result - run: | - echo "buildkite result is: ${{ steps.download.outputs.build-state }}" -# if: steps.download.outputs.build-state != 'passed' -# run: | -# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" -# exit 1 + if: steps.download.outputs.build-state != 'passed' + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download.outputs.build-state }}" + exit 1 # demo1: # name: trigger debian unit test # runs-on: ubuntu-latest From 4ac9f4fce34116b9564a318fdd629e80ac05abcf Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 15:31:26 +0800 Subject: [PATCH 30/91] fff --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..8e93c1abff2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffailed: " + e.getMessage(), e); } return bytes; } From 77b914efc0d213ed969b241dd5c711e4a35795ea Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 15:32:55 +0800 Subject: [PATCH 31/91] fff --- .github/workflows/pullrequesttarget.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 0e94b2af7f9..1fc2568742e 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -48,10 +48,10 @@ jobs: output_path: artifacts - name: check result if: steps.download.outputs.build-state != 'passed' - run: | - echo "failed !!!!" - echo "buildkite result is: ${{ steps.download.outputs.build-state }}" - exit 1 + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download.outputs.build-state }}" + exit 1 # demo1: # name: trigger debian unit test # runs-on: ubuntu-latest From 68c5e6c6409576634dac57215c1210928ad4811f Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Wed, 8 Nov 2023 15:35:01 +0800 Subject: [PATCH 32/91] fff --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 8e93c1abff2..aa30ba8b90d 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffailed: " + e.getMessage(), e); + logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); } return bytes; } From 4e19705d1b7244a457445c69dc037fd8a88f4f7c Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 15:36:40 +0800 Subject: [PATCH 33/91] fff --- .github/workflows/pullrequesttarget.yml | 167 +++++++++++++++++++++++- 1 file changed, 162 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 1fc2568742e..47e0f88dea3 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -52,8 +52,55 @@ jobs: echo "failed !!!!" echo "buildkite result is: ${{ steps.download.outputs.build-state }}" exit 1 -# demo1: -# name: trigger debian unit test + demo1: + name: trigger debian unit test + runs-on: ubuntu-latest + steps: + - name: Get User Permission2 + id: checkAccess1 + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission1 + if: steps.checkAccess1.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess1.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 + - name: Checkout code1 + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check + - name: Run tests2 + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + - name: Trigger debian + id: build1 + uses: "buildkite/trigger-pipeline-action@v2.0.0" + with: + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} + pipeline: "tronprotocol/build-on-debian-9-dot-8" + - name: Download Buildkite Artifacts1 + id: download1 + uses: EnricoMi/download-buildkite-artifact-action@v1 + with: + buildkite_token: ${{ secrets.READ_BUILD }} + buildkite_build_url: ${{ steps.build1.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts + - name: check result1 + if: steps.download1.outputs.build-state != 'passed' + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" + exit 1 +# demo2: +# name: trigger centos unit test # runs-on: ubuntu-latest # steps: # - name: Get User Permission2 @@ -68,7 +115,7 @@ jobs: # if: steps.checkAccess2.outputs.require-result == 'false' # run: | # echo "${{ github.triggering_actor }} does not have permissions on this repo." -# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" +# echo "Current permission level is ${{ steps.checkAccess2.outputs.user-permission }}" # echo "Job originally triggered by ${{ github.actor }}" # exit 1 # - name: Checkout code2 @@ -78,8 +125,118 @@ jobs: # - name: Run tests2 # run: | # echo "x${{ secrets.JUST_BUILD_KITE }}" -# - name: Trigger debian +# - name: Trigger centos +# id: build2 +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/build-on-centos-linux-release-7-dot-4-1708-core" +# - name: Download Buildkite Artifacts2 +# id: download2 +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build2.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: check result2 +# if: steps.download2.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download2.outputs.build-state }}" +# exit 1 +# demo3: +# name: trigger ubuntu unit test +# runs-on: ubuntu-latest +# steps: +# - name: Get User Permission3 +# id: checkAccess3 +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check User Permission3 +# if: steps.checkAccess3.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess3.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# exit 1 +# - name: Checkout code3 +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Run tests3 +# run: | +# echo "x${{ secrets.JUST_BUILD_KITE }}" +# - name: Trigger ubuntu +# id: build3 +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/build-on-ubuntu-18-dot-04-dot-2" +# - name: Download Buildkite Artifacts3 +# id: download3 +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build3.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: check result3 +# if: steps.download3.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download3.outputs.build-state }}" +# exit 1 +# demo4: +# name: trigger docker stest +# runs-on: ubuntu-latest +# steps: +# - name: Get User Permission4 +# id: checkAccess4 +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check User Permission4 +# if: steps.checkAccess4.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess4.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# exit 1 +# - name: Checkout code4 +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Run tests4 +# run: | +# echo "x${{ secrets.JUST_BUILD_KITE }}" +# - name: Trigger docker +# id: build4 # uses: "buildkite/trigger-pipeline-action@v2.0.0" # with: # buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} -# pipeline: "tronprotocol/build-on-debian-9-dot-8" \ No newline at end of file +# pipeline: "tronprotocol/interface-status-test-in-docker" +# - name: Download Buildkite Artifacts +# id: download4 +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build4.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: check result4 +# if: steps.download4.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download4.outputs.build-state }}" +# exit 1 \ No newline at end of file From dc95f356325c7986c2fe3bb7ccbd24691a9e3f9c Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 15:40:55 +0800 Subject: [PATCH 34/91] qqq --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index aa30ba8b90d..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From c53e6498db7151316dbd99e0b908164adda34d17 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 15:42:28 +0800 Subject: [PATCH 35/91] fix --- .github/workflows/pullrequesttarget.yml | 26 ++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 47e0f88dea3..df2813e4528 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -85,20 +85,20 @@ jobs: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/build-on-debian-9-dot-8" - name: Download Buildkite Artifacts1 - id: download1 - uses: EnricoMi/download-buildkite-artifact-action@v1 - with: - buildkite_token: ${{ secrets.READ_BUILD }} - buildkite_build_url: ${{ steps.build1.outputs.url }} - ignore_build_states: blocked,canceled,skipped,not_run - ignore_job_states: timed_out,failed - output_path: artifacts + id: download1 + uses: EnricoMi/download-buildkite-artifact-action@v1 + with: + buildkite_token: ${{ secrets.READ_BUILD }} + buildkite_build_url: ${{ steps.build1.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts - name: check result1 - if: steps.download1.outputs.build-state != 'passed' - run: | - echo "failed !!!!" - echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" - exit 1 + if: steps.download1.outputs.build-state != 'passed' + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" + exit 1 # demo2: # name: trigger centos unit test # runs-on: ubuntu-latest From 91d5f75a6ead2365ea6260d639068777ae7159de Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 15:43:11 +0800 Subject: [PATCH 36/91] test fix --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..8e93c1abff2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffailed: " + e.getMessage(), e); } return bytes; } From fcf665d72040d13097d48035ab930fcc4984bd6f Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 16:13:40 +0800 Subject: [PATCH 37/91] test fix --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 8e93c1abff2..aa30ba8b90d 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffailed: " + e.getMessage(), e); + logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); } return bytes; } From afe5aada0485999f64a5ea1b818cb9d08fa26f60 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 16:34:12 +0800 Subject: [PATCH 38/91] test fix --- .github/workflows/pullrequesttarget.yml | 113 +++++++++++------------- 1 file changed, 51 insertions(+), 62 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index df2813e4528..88725e3b387 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -7,22 +7,11 @@ jobs: demo: name: trigger sonar1 runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write steps: - - name: Get User Permission - id: checkAccess - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission - if: steps.checkAccess.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - exit 1 - name: Checkout code uses: actions/checkout@v3 with: @@ -52,53 +41,53 @@ jobs: echo "failed !!!!" echo "buildkite result is: ${{ steps.download.outputs.build-state }}" exit 1 - demo1: - name: trigger debian unit test - runs-on: ubuntu-latest - steps: - - name: Get User Permission2 - id: checkAccess1 - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission1 - if: steps.checkAccess1.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess1.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - exit 1 - - name: Checkout code1 - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Run tests2 - run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - - name: Trigger debian - id: build1 - uses: "buildkite/trigger-pipeline-action@v2.0.0" - with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} - pipeline: "tronprotocol/build-on-debian-9-dot-8" - - name: Download Buildkite Artifacts1 - id: download1 - uses: EnricoMi/download-buildkite-artifact-action@v1 - with: - buildkite_token: ${{ secrets.READ_BUILD }} - buildkite_build_url: ${{ steps.build1.outputs.url }} - ignore_build_states: blocked,canceled,skipped,not_run - ignore_job_states: timed_out,failed - output_path: artifacts - - name: check result1 - if: steps.download1.outputs.build-state != 'passed' - run: | - echo "failed !!!!" - echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" - exit 1 +# demo1: +# name: trigger debian unit test +# runs-on: ubuntu-latest +# steps: +# - name: Get User Permission2 +# id: checkAccess1 +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check User Permission1 +# if: steps.checkAccess1.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess1.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# exit 1 +# - name: Checkout code1 +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Run tests2 +# run: | +# echo "x${{ secrets.JUST_BUILD_KITE }}" +# - name: Trigger debian +# id: build1 +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/build-on-debian-9-dot-8" +# - name: Download Buildkite Artifacts1 +# id: download1 +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build1.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: check result1 +# if: steps.download1.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" +# exit 1 # demo2: # name: trigger centos unit test # runs-on: ubuntu-latest From e70a2be01472d7889a439d8a511a793d3205521e Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 16:35:21 +0800 Subject: [PATCH 39/91] test fix 11111 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index aa30ba8b90d..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 5a7bb5b502845f68db70793ccf8615206612bed8 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 16:55:05 +0800 Subject: [PATCH 40/91] test fix 222 --- .github/workflows/pullrequesttarget.yml | 113 +++++++++++++----------- 1 file changed, 62 insertions(+), 51 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 88725e3b387..df2813e4528 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -7,11 +7,22 @@ jobs: demo: name: trigger sonar1 runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write steps: + - name: Get User Permission + id: checkAccess + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission + if: steps.checkAccess.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 - name: Checkout code uses: actions/checkout@v3 with: @@ -41,53 +52,53 @@ jobs: echo "failed !!!!" echo "buildkite result is: ${{ steps.download.outputs.build-state }}" exit 1 -# demo1: -# name: trigger debian unit test -# runs-on: ubuntu-latest -# steps: -# - name: Get User Permission2 -# id: checkAccess1 -# uses: actions-cool/check-user-permission@v2 -# with: -# require: write -# username: ${{ github.triggering_actor }} -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# - name: Check User Permission1 -# if: steps.checkAccess1.outputs.require-result == 'false' -# run: | -# echo "${{ github.triggering_actor }} does not have permissions on this repo." -# echo "Current permission level is ${{ steps.checkAccess1.outputs.user-permission }}" -# echo "Job originally triggered by ${{ github.actor }}" -# exit 1 -# - name: Checkout code1 -# uses: actions/checkout@v3 -# with: -# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check -# - name: Run tests2 -# run: | -# echo "x${{ secrets.JUST_BUILD_KITE }}" -# - name: Trigger debian -# id: build1 -# uses: "buildkite/trigger-pipeline-action@v2.0.0" -# with: -# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} -# pipeline: "tronprotocol/build-on-debian-9-dot-8" -# - name: Download Buildkite Artifacts1 -# id: download1 -# uses: EnricoMi/download-buildkite-artifact-action@v1 -# with: -# buildkite_token: ${{ secrets.READ_BUILD }} -# buildkite_build_url: ${{ steps.build1.outputs.url }} -# ignore_build_states: blocked,canceled,skipped,not_run -# ignore_job_states: timed_out,failed -# output_path: artifacts -# - name: check result1 -# if: steps.download1.outputs.build-state != 'passed' -# run: | -# echo "failed !!!!" -# echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" -# exit 1 + demo1: + name: trigger debian unit test + runs-on: ubuntu-latest + steps: + - name: Get User Permission2 + id: checkAccess1 + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission1 + if: steps.checkAccess1.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess1.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 + - name: Checkout code1 + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check + - name: Run tests2 + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + - name: Trigger debian + id: build1 + uses: "buildkite/trigger-pipeline-action@v2.0.0" + with: + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} + pipeline: "tronprotocol/build-on-debian-9-dot-8" + - name: Download Buildkite Artifacts1 + id: download1 + uses: EnricoMi/download-buildkite-artifact-action@v1 + with: + buildkite_token: ${{ secrets.READ_BUILD }} + buildkite_build_url: ${{ steps.build1.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts + - name: check result1 + if: steps.download1.outputs.build-state != 'passed' + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" + exit 1 # demo2: # name: trigger centos unit test # runs-on: ubuntu-latest From c28f55b61b294998fd3b3df87babc5f062e3867c Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Thu, 9 Nov 2023 16:59:43 +0800 Subject: [PATCH 41/91] test fix 333 --- .github/workflows/pullrequesttarget.yml | 282 ++++++++++++------------ 1 file changed, 141 insertions(+), 141 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index df2813e4528..28a8276b9db 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -99,144 +99,144 @@ jobs: echo "failed !!!!" echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" exit 1 -# demo2: -# name: trigger centos unit test -# runs-on: ubuntu-latest -# steps: -# - name: Get User Permission2 -# id: checkAccess2 -# uses: actions-cool/check-user-permission@v2 -# with: -# require: write -# username: ${{ github.triggering_actor }} -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# - name: Check User Permission2 -# if: steps.checkAccess2.outputs.require-result == 'false' -# run: | -# echo "${{ github.triggering_actor }} does not have permissions on this repo." -# echo "Current permission level is ${{ steps.checkAccess2.outputs.user-permission }}" -# echo "Job originally triggered by ${{ github.actor }}" -# exit 1 -# - name: Checkout code2 -# uses: actions/checkout@v3 -# with: -# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check -# - name: Run tests2 -# run: | -# echo "x${{ secrets.JUST_BUILD_KITE }}" -# - name: Trigger centos -# id: build2 -# uses: "buildkite/trigger-pipeline-action@v2.0.0" -# with: -# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} -# pipeline: "tronprotocol/build-on-centos-linux-release-7-dot-4-1708-core" -# - name: Download Buildkite Artifacts2 -# id: download2 -# uses: EnricoMi/download-buildkite-artifact-action@v1 -# with: -# buildkite_token: ${{ secrets.READ_BUILD }} -# buildkite_build_url: ${{ steps.build2.outputs.url }} -# ignore_build_states: blocked,canceled,skipped,not_run -# ignore_job_states: timed_out,failed -# output_path: artifacts -# - name: check result2 -# if: steps.download2.outputs.build-state != 'passed' -# run: | -# echo "failed !!!!" -# echo "buildkite result is: ${{ steps.download2.outputs.build-state }}" -# exit 1 -# demo3: -# name: trigger ubuntu unit test -# runs-on: ubuntu-latest -# steps: -# - name: Get User Permission3 -# id: checkAccess3 -# uses: actions-cool/check-user-permission@v2 -# with: -# require: write -# username: ${{ github.triggering_actor }} -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# - name: Check User Permission3 -# if: steps.checkAccess3.outputs.require-result == 'false' -# run: | -# echo "${{ github.triggering_actor }} does not have permissions on this repo." -# echo "Current permission level is ${{ steps.checkAccess3.outputs.user-permission }}" -# echo "Job originally triggered by ${{ github.actor }}" -# exit 1 -# - name: Checkout code3 -# uses: actions/checkout@v3 -# with: -# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check -# - name: Run tests3 -# run: | -# echo "x${{ secrets.JUST_BUILD_KITE }}" -# - name: Trigger ubuntu -# id: build3 -# uses: "buildkite/trigger-pipeline-action@v2.0.0" -# with: -# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} -# pipeline: "tronprotocol/build-on-ubuntu-18-dot-04-dot-2" -# - name: Download Buildkite Artifacts3 -# id: download3 -# uses: EnricoMi/download-buildkite-artifact-action@v1 -# with: -# buildkite_token: ${{ secrets.READ_BUILD }} -# buildkite_build_url: ${{ steps.build3.outputs.url }} -# ignore_build_states: blocked,canceled,skipped,not_run -# ignore_job_states: timed_out,failed -# output_path: artifacts -# - name: check result3 -# if: steps.download3.outputs.build-state != 'passed' -# run: | -# echo "failed !!!!" -# echo "buildkite result is: ${{ steps.download3.outputs.build-state }}" -# exit 1 -# demo4: -# name: trigger docker stest -# runs-on: ubuntu-latest -# steps: -# - name: Get User Permission4 -# id: checkAccess4 -# uses: actions-cool/check-user-permission@v2 -# with: -# require: write -# username: ${{ github.triggering_actor }} -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# - name: Check User Permission4 -# if: steps.checkAccess4.outputs.require-result == 'false' -# run: | -# echo "${{ github.triggering_actor }} does not have permissions on this repo." -# echo "Current permission level is ${{ steps.checkAccess4.outputs.user-permission }}" -# echo "Job originally triggered by ${{ github.actor }}" -# exit 1 -# - name: Checkout code4 -# uses: actions/checkout@v3 -# with: -# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check -# - name: Run tests4 -# run: | -# echo "x${{ secrets.JUST_BUILD_KITE }}" -# - name: Trigger docker -# id: build4 -# uses: "buildkite/trigger-pipeline-action@v2.0.0" -# with: -# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} -# pipeline: "tronprotocol/interface-status-test-in-docker" -# - name: Download Buildkite Artifacts -# id: download4 -# uses: EnricoMi/download-buildkite-artifact-action@v1 -# with: -# buildkite_token: ${{ secrets.READ_BUILD }} -# buildkite_build_url: ${{ steps.build4.outputs.url }} -# ignore_build_states: blocked,canceled,skipped,not_run -# ignore_job_states: timed_out,failed -# output_path: artifacts -# - name: check result4 -# if: steps.download4.outputs.build-state != 'passed' -# run: | -# echo "failed !!!!" -# echo "buildkite result is: ${{ steps.download4.outputs.build-state }}" -# exit 1 \ No newline at end of file + demo2: + name: trigger centos unit test + runs-on: ubuntu-latest + steps: + - name: Get User Permission2 + id: checkAccess2 + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission2 + if: steps.checkAccess2.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess2.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 + - name: Checkout code2 + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check + - name: Run tests2 + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + - name: Trigger centos + id: build2 + uses: "buildkite/trigger-pipeline-action@v2.0.0" + with: + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} + pipeline: "tronprotocol/build-on-centos-linux-release-7-dot-4-1708-core" + - name: Download Buildkite Artifacts2 + id: download2 + uses: EnricoMi/download-buildkite-artifact-action@v1 + with: + buildkite_token: ${{ secrets.READ_BUILD }} + buildkite_build_url: ${{ steps.build2.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts + - name: check result2 + if: steps.download2.outputs.build-state != 'passed' + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download2.outputs.build-state }}" + exit 1 + demo3: + name: trigger ubuntu unit test + runs-on: ubuntu-latest + steps: + - name: Get User Permission3 + id: checkAccess3 + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission3 + if: steps.checkAccess3.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess3.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 + - name: Checkout code3 + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check + - name: Run tests3 + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + - name: Trigger ubuntu + id: build3 + uses: "buildkite/trigger-pipeline-action@v2.0.0" + with: + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} + pipeline: "tronprotocol/build-on-ubuntu-18-dot-04-dot-2" + - name: Download Buildkite Artifacts3 + id: download3 + uses: EnricoMi/download-buildkite-artifact-action@v1 + with: + buildkite_token: ${{ secrets.READ_BUILD }} + buildkite_build_url: ${{ steps.build3.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts + - name: check result3 + if: steps.download3.outputs.build-state != 'passed' + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download3.outputs.build-state }}" + exit 1 + demo4: + name: trigger docker stest + runs-on: ubuntu-latest + steps: + - name: Get User Permission4 + id: checkAccess4 + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check User Permission4 + if: steps.checkAccess4.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess4.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + exit 1 + - name: Checkout code4 + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check + - name: Run tests4 + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + - name: Trigger docker + id: build4 + uses: "buildkite/trigger-pipeline-action@v2.0.0" + with: + buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} + pipeline: "tronprotocol/interface-status-test-in-docker" + - name: Download Buildkite Artifacts + id: download4 + uses: EnricoMi/download-buildkite-artifact-action@v1 + with: + buildkite_token: ${{ secrets.READ_BUILD }} + buildkite_build_url: ${{ steps.build4.outputs.url }} + ignore_build_states: blocked,canceled,skipped,not_run + ignore_job_states: timed_out,failed + output_path: artifacts + - name: check result4 + if: steps.download4.outputs.build-state != 'passed' + run: | + echo "failed !!!!" + echo "buildkite result is: ${{ steps.download4.outputs.build-state }}" + exit 1 \ No newline at end of file From 24dd8d1392b379365603c9237d4554903d790b83 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 14:53:17 +0800 Subject: [PATCH 42/91] hhhh --- .github/workflows/pullrequesttarget.yml | 335 ++++++++++++------------ 1 file changed, 162 insertions(+), 173 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 28a8276b9db..df9745d5395 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -1,14 +1,14 @@ -name: Run tests from fork +name: Buildkite on: pull_request_target: types: [ opened, synchronize ] jobs: - demo: - name: trigger sonar1 + sonarScan: + name: Sonar Scan runs-on: ubuntu-latest steps: - - name: Get User Permission + - name: Check Access id: checkAccess uses: actions-cool/check-user-permission@v2 with: @@ -16,28 +16,25 @@ jobs: username: ${{ github.triggering_actor }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission + - name: Check Permission if: steps.checkAccess.outputs.require-result == 'false' run: | echo "${{ github.triggering_actor }} does not have permissions on this repo." echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" echo "Job originally triggered by ${{ github.actor }}" + echo "Please contact organizational account to Re-run all jobs" exit 1 - - name: Checkout code + - name: Checkout Code uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Run tests - run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - echo "x${{ secrets.READ_BUILD }}" - - name: Trigger sonar + - name: Trigger Sonar Scan id: build uses: "buildkite/trigger-pipeline-action@v2.0.0" with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - - name: Download Buildkite Artifacts + - name: Waitting Buildkite Artifacts id: download uses: EnricoMi/download-buildkite-artifact-action@v1 with: @@ -46,197 +43,189 @@ jobs: ignore_build_states: blocked,canceled,skipped,not_run ignore_job_states: timed_out,failed output_path: artifacts - - name: check result + - name: Check Result if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" echo "buildkite result is: ${{ steps.download.outputs.build-state }}" exit 1 - demo1: - name: trigger debian unit test + debianUnitTest: + name: Debian Unit Test runs-on: ubuntu-latest steps: - - name: Get User Permission2 - id: checkAccess1 + - name: Check Access + id: checkAccess uses: actions-cool/check-user-permission@v2 with: require: write username: ${{ github.triggering_actor }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission1 - if: steps.checkAccess1.outputs.require-result == 'false' + - name: Check Permission + if: steps.checkAccess.outputs.require-result == 'false' run: | echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess1.outputs.user-permission }}" + echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" echo "Job originally triggered by ${{ github.actor }}" + echo "Please contact organizational account to Re-run all jobs" exit 1 - - name: Checkout code1 + - name: Checkout Code uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Run tests2 - run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - - name: Trigger debian - id: build1 + - name: Trigger Debian Unit Test + id: build uses: "buildkite/trigger-pipeline-action@v2.0.0" with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/build-on-debian-9-dot-8" - - name: Download Buildkite Artifacts1 - id: download1 - uses: EnricoMi/download-buildkite-artifact-action@v1 - with: - buildkite_token: ${{ secrets.READ_BUILD }} - buildkite_build_url: ${{ steps.build1.outputs.url }} - ignore_build_states: blocked,canceled,skipped,not_run - ignore_job_states: timed_out,failed - output_path: artifacts - - name: check result1 - if: steps.download1.outputs.build-state != 'passed' - run: | - echo "failed !!!!" - echo "buildkite result is: ${{ steps.download1.outputs.build-state }}" - exit 1 - demo2: - name: trigger centos unit test - runs-on: ubuntu-latest - steps: - - name: Get User Permission2 - id: checkAccess2 - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission2 - if: steps.checkAccess2.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess2.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - exit 1 - - name: Checkout code2 - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Run tests2 - run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - - name: Trigger centos - id: build2 - uses: "buildkite/trigger-pipeline-action@v2.0.0" - with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} - pipeline: "tronprotocol/build-on-centos-linux-release-7-dot-4-1708-core" - - name: Download Buildkite Artifacts2 - id: download2 - uses: EnricoMi/download-buildkite-artifact-action@v1 - with: - buildkite_token: ${{ secrets.READ_BUILD }} - buildkite_build_url: ${{ steps.build2.outputs.url }} - ignore_build_states: blocked,canceled,skipped,not_run - ignore_job_states: timed_out,failed - output_path: artifacts - - name: check result2 - if: steps.download2.outputs.build-state != 'passed' - run: | - echo "failed !!!!" - echo "buildkite result is: ${{ steps.download2.outputs.build-state }}" - exit 1 - demo3: - name: trigger ubuntu unit test - runs-on: ubuntu-latest - steps: - - name: Get User Permission3 - id: checkAccess3 - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission3 - if: steps.checkAccess3.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess3.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - exit 1 - - name: Checkout code3 - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Run tests3 - run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - - name: Trigger ubuntu - id: build3 - uses: "buildkite/trigger-pipeline-action@v2.0.0" - with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} - pipeline: "tronprotocol/build-on-ubuntu-18-dot-04-dot-2" - - name: Download Buildkite Artifacts3 - id: download3 + - name: Waitting Buildkite Artifacts + id: download uses: EnricoMi/download-buildkite-artifact-action@v1 with: buildkite_token: ${{ secrets.READ_BUILD }} - buildkite_build_url: ${{ steps.build3.outputs.url }} + buildkite_build_url: ${{ steps.build.outputs.url }} ignore_build_states: blocked,canceled,skipped,not_run ignore_job_states: timed_out,failed output_path: artifacts - - name: check result3 - if: steps.download3.outputs.build-state != 'passed' + - name: Check Result + if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" - echo "buildkite result is: ${{ steps.download3.outputs.build-state }}" - exit 1 - demo4: - name: trigger docker stest - runs-on: ubuntu-latest - steps: - - name: Get User Permission4 - id: checkAccess4 - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check User Permission4 - if: steps.checkAccess4.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess4.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" + echo "buildkite result is: ${{ steps.download.outputs.build-state }}" exit 1 - - name: Checkout code4 - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Run tests4 - run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - - name: Trigger docker - id: build4 - uses: "buildkite/trigger-pipeline-action@v2.0.0" - with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} - pipeline: "tronprotocol/interface-status-test-in-docker" - - name: Download Buildkite Artifacts - id: download4 - uses: EnricoMi/download-buildkite-artifact-action@v1 - with: - buildkite_token: ${{ secrets.READ_BUILD }} - buildkite_build_url: ${{ steps.build4.outputs.url }} - ignore_build_states: blocked,canceled,skipped,not_run - ignore_job_states: timed_out,failed - output_path: artifacts - - name: check result4 - if: steps.download4.outputs.build-state != 'passed' - run: | - echo "failed !!!!" - echo "buildkite result is: ${{ steps.download4.outputs.build-state }}" - exit 1 \ No newline at end of file +# centosUnitTest: +# name: Centos Unit Test +# runs-on: ubuntu-latest +# steps: +# - name: Check Access +# id: checkAccess +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check Permission +# if: steps.checkAccess.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# echo "Please contact organizational account to Re-run all jobs" +# exit 1 +# - name: Checkout Code +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Trigger Centos Unit Test +# id: build +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/build-on-centos-linux-release-7-dot-4-1708-core" +# - name: Waitting Buildkite Artifacts +# id: download +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: Check Result +# if: steps.download.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" +# exit 1 +# ubuntuUnitTest: +# name: Ubuntu Unit Test +# runs-on: ubuntu-latest +# steps: +# - name: Check Access +# id: checkAccess +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check Permission +# if: steps.checkAccess.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# echo "Please contact organizational account to Re-run all jobs" +# exit 1 +# - name: Checkout Code +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Trigger Ubuntu Unit Test +# id: build +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/build-on-ubuntu-18-dot-04-dot-2" +# - name: Waitting Buildkite Artifacts +# id: download +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: Check Result +# if: steps.download.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" +# exit 1 +# apiSmokeTesting: +# name: API Smoke Testing +# runs-on: ubuntu-latest +# steps: +# - name: Check Access +# id: checkAccess +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check Permission +# if: steps.checkAccess.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# echo "Please contact organizational account to Re-run all jobs" +# exit 1 +# - name: Checkout Code +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Trigger API Smoke Testing +# id: build +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/interface-status-test-in-docker" +# - name: Waitting Buildkite Artifacts +# id: download +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: Check Result +# if: steps.download.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" +# exit 1 \ No newline at end of file From 6e37f3437093b4b6fb3e28acb635aab7a4716653 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:22:20 +0800 Subject: [PATCH 43/91] hhhh --- .github/workflows/pullrequesttarget.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index df9745d5395..ba8bb6a38e1 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -44,6 +44,8 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result + run: + echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" @@ -89,6 +91,8 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result + run: + echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" From 7e0486a3f673d52f59434dfe6e021b6e55aacc36 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:23:32 +0800 Subject: [PATCH 44/91] xxx --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..aa30ba8b90d 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); } return bytes; } From f8fd01d3637ef14497849da7d0e31bfaa31f44de Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:26:23 +0800 Subject: [PATCH 45/91] xxx --- .github/workflows/pullrequesttarget.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index ba8bb6a38e1..967c0326852 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -44,7 +44,7 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result - run: + run: | echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | @@ -91,7 +91,7 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result - run: + run: | echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | From 53bda25aee0337e6b9838eb9695e4abb9c120a99 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:27:09 +0800 Subject: [PATCH 46/91] aaa --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index aa30ba8b90d..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 64c5e63eac177288c75090bcba0d7a66aad35576 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:29:12 +0800 Subject: [PATCH 47/91] aaa --- .github/workflows/pullrequesttarget.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 967c0326852..6f6c0bf55cd 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -44,8 +44,8 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result - run: | - echo "buildkite link is: ${{ steps.build.outputs.url }}" +# run: | +# echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" @@ -91,8 +91,8 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result - run: | - echo "buildkite link is: ${{ steps.build.outputs.url }}" +# run: | +# echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" From dd5a8769371c10341ca89650816523dbc168b554 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:30:23 +0800 Subject: [PATCH 48/91] wwww --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 58ef5b798a5a4cf5b7c54d988f19ae1e9fe162a7 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:40:00 +0800 Subject: [PATCH 49/91] wwww --- .github/workflows/pullrequesttarget.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 6f6c0bf55cd..fe1ae9d57e6 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -34,6 +34,9 @@ jobs: with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" + - name: Get URL + run: | + echo "buildkite link is: ${{ steps.build.outputs.url }}" - name: Waitting Buildkite Artifacts id: download uses: EnricoMi/download-buildkite-artifact-action@v1 From 31222c8228d1284814ac78c02210a66433b9b7fd Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:42:09 +0800 Subject: [PATCH 50/91] wwww --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 4e6f2fb803397309a7b7d15f273b40a65fe30fa1 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:43:06 +0800 Subject: [PATCH 51/91] wwww --- .github/workflows/pullrequesttarget.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index fe1ae9d57e6..597133c8bac 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -35,8 +35,8 @@ jobs: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - name: Get URL - run: | - echo "buildkite link is: ${{ steps.build.outputs.url }}" + run: | + echo "buildkite link is: ${{ steps.build.outputs.url }}" - name: Waitting Buildkite Artifacts id: download uses: EnricoMi/download-buildkite-artifact-action@v1 From ce7eb707463308f9331713895d5b5648e32ff48d Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:43:51 +0800 Subject: [PATCH 52/91] wwww --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 6d2b2ece548d5fac770b5533e62ea3af9b8c5b83 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:50:30 +0800 Subject: [PATCH 53/91] wwww --- .github/workflows/pullrequesttarget.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 597133c8bac..c73f89a82fc 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -47,8 +47,9 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result -# run: | -# echo "buildkite link is: ${{ steps.build.outputs.url }}" + run: | + echo "buildkite link is: ${{ steps.build.outputs.url }}" + echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" From 376882c60e68104d79d7f2ca5a6d9b958978fcca Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:51:21 +0800 Subject: [PATCH 54/91] wwwwiiii --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 1c9167a69df3c035768d9672a5819b64b25378da Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 15:54:53 +0800 Subject: [PATCH 55/91] wwwwiiii --- .github/workflows/pullrequesttarget.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index c73f89a82fc..3935dc5a25c 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -47,9 +47,7 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result - run: | - echo "buildkite link is: ${{ steps.build.outputs.url }}" - echo "buildkite link is: ${{ steps.build.outputs.url }}" + run: "echo \"buildkite link is: ${{ steps.build.outputs.url }}\"" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" From bf6d5aaa07c3cda32adbfff9b9a49269d090a7e5 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 16:01:05 +0800 Subject: [PATCH 56/91] wwwwiiii --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 067146e3b81a3dd1a8037015217398d0b2a5e78f Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 16:03:08 +0800 Subject: [PATCH 57/91] wwwwiiii --- .github/workflows/pullrequesttarget.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 3935dc5a25c..43c46e28e47 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -34,7 +34,7 @@ jobs: with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - - name: Get URL + - name: Get Build Kite URL run: | echo "buildkite link is: ${{ steps.build.outputs.url }}" - name: Waitting Buildkite Artifacts @@ -47,7 +47,6 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result - run: "echo \"buildkite link is: ${{ steps.build.outputs.url }}\"" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" From e1ea3d8c373560d0d0140ff971c241f87130f233 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 16:04:08 +0800 Subject: [PATCH 58/91] wwwwiiii --- .github/workflows/pullrequesttarget.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 43c46e28e47..9ecf314930e 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -82,6 +82,9 @@ jobs: with: buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} pipeline: "tronprotocol/build-on-debian-9-dot-8" + - name: Get Build Kite URL + run: | + echo "buildkite link is: ${{ steps.build.outputs.url }}" - name: Waitting Buildkite Artifacts id: download uses: EnricoMi/download-buildkite-artifact-action@v1 @@ -92,8 +95,6 @@ jobs: ignore_job_states: timed_out,failed output_path: artifacts - name: Check Result -# run: | -# echo "buildkite link is: ${{ steps.build.outputs.url }}" if: steps.download.outputs.build-state != 'passed' run: | echo "failed !!!!" From b6ad8ebf2b3a5ade5dd1315596e949d0fec2e2d4 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Fri, 10 Nov 2023 16:05:08 +0800 Subject: [PATCH 59/91] wwwwiiii --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 4dcf44f544ae8cfaf92d03c3ff71c9945d12f798 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 10:56:15 +0800 Subject: [PATCH 60/91] fix --- .github/workflows/pullrequesttarget.yml | 135 ++++++++++++------------ 1 file changed, 69 insertions(+), 66 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 9ecf314930e..0a83ea0457e 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -1,29 +1,32 @@ name: Buildkite on: - pull_request_target: - types: [ opened, synchronize ] + push: + branches: [ 'develop', 'master', 'release_**' ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ 'develop' ] jobs: sonarScan: name: Sonar Scan runs-on: ubuntu-latest steps: - - name: Check Access - id: checkAccess - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check Permission - if: steps.checkAccess.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - echo "Please contact organizational account to Re-run all jobs" - exit 1 +# - name: Check Access +# id: checkAccess +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check Permission +# if: steps.checkAccess.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# echo "Please contact organizational account to Re-run all jobs" +# exit 1 - name: Checkout Code uses: actions/checkout@v3 with: @@ -52,54 +55,54 @@ jobs: echo "failed !!!!" echo "buildkite result is: ${{ steps.download.outputs.build-state }}" exit 1 - debianUnitTest: - name: Debian Unit Test - runs-on: ubuntu-latest - steps: - - name: Check Access - id: checkAccess - uses: actions-cool/check-user-permission@v2 - with: - require: write - username: ${{ github.triggering_actor }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check Permission - if: steps.checkAccess.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - echo "Please contact organizational account to Re-run all jobs" - exit 1 - - name: Checkout Code - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check - - name: Trigger Debian Unit Test - id: build - uses: "buildkite/trigger-pipeline-action@v2.0.0" - with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} - pipeline: "tronprotocol/build-on-debian-9-dot-8" - - name: Get Build Kite URL - run: | - echo "buildkite link is: ${{ steps.build.outputs.url }}" - - name: Waitting Buildkite Artifacts - id: download - uses: EnricoMi/download-buildkite-artifact-action@v1 - with: - buildkite_token: ${{ secrets.READ_BUILD }} - buildkite_build_url: ${{ steps.build.outputs.url }} - ignore_build_states: blocked,canceled,skipped,not_run - ignore_job_states: timed_out,failed - output_path: artifacts - - name: Check Result - if: steps.download.outputs.build-state != 'passed' - run: | - echo "failed !!!!" - echo "buildkite result is: ${{ steps.download.outputs.build-state }}" - exit 1 +# debianUnitTest: +# name: Debian Unit Test +# runs-on: ubuntu-latest +# steps: +# - name: Check Access +# id: checkAccess +# uses: actions-cool/check-user-permission@v2 +# with: +# require: write +# username: ${{ github.triggering_actor }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Check Permission +# if: steps.checkAccess.outputs.require-result == 'false' +# run: | +# echo "${{ github.triggering_actor }} does not have permissions on this repo." +# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" +# echo "Job originally triggered by ${{ github.actor }}" +# echo "Please contact organizational account to Re-run all jobs" +# exit 1 +# - name: Checkout Code +# uses: actions/checkout@v3 +# with: +# ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check +# - name: Trigger Debian Unit Test +# id: build +# uses: "buildkite/trigger-pipeline-action@v2.0.0" +# with: +# buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} +# pipeline: "tronprotocol/build-on-debian-9-dot-8" +# - name: Get Build Kite URL +# run: | +# echo "buildkite link is: ${{ steps.build.outputs.url }}" +# - name: Waitting Buildkite Artifacts +# id: download +# uses: EnricoMi/download-buildkite-artifact-action@v1 +# with: +# buildkite_token: ${{ secrets.READ_BUILD }} +# buildkite_build_url: ${{ steps.build.outputs.url }} +# ignore_build_states: blocked,canceled,skipped,not_run +# ignore_job_states: timed_out,failed +# output_path: artifacts +# - name: Check Result +# if: steps.download.outputs.build-state != 'passed' +# run: | +# echo "failed !!!!" +# echo "buildkite result is: ${{ steps.download.outputs.build-state }}" +# exit 1 # centosUnitTest: # name: Centos Unit Test # runs-on: ubuntu-latest From a1475352547f1ee1bc62b589fe55db632781372e Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 10:59:19 +0800 Subject: [PATCH 61/91] fix --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From e3f751a02c0053f668806743b96f23c31451fcec Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 14:11:51 +0800 Subject: [PATCH 62/91] fix --- .github/workflows/pullrequesttarget.yml | 36 ++++++++++++++----------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 0a83ea0457e..ecbaa71482d 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -11,22 +11,26 @@ jobs: name: Sonar Scan runs-on: ubuntu-latest steps: -# - name: Check Access -# id: checkAccess -# uses: actions-cool/check-user-permission@v2 -# with: -# require: write -# username: ${{ github.triggering_actor }} -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# - name: Check Permission -# if: steps.checkAccess.outputs.require-result == 'false' -# run: | -# echo "${{ github.triggering_actor }} does not have permissions on this repo." -# echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" -# echo "Job originally triggered by ${{ github.actor }}" -# echo "Please contact organizational account to Re-run all jobs" -# exit 1 + - name: Check Access + id: checkAccess + uses: actions-cool/check-user-permission@v2 + with: + require: write + username: ${{ github.triggering_actor }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check Permission + if: steps.checkAccess.outputs.require-result == 'false' + run: | + echo "${{ github.triggering_actor }} does not have permissions on this repo." + echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" + echo "Please contact organizational account to Re-run all jobs" + exit 1 + - name: Run tests + run: | + echo "x${{ secrets.JUST_BUILD_KITE }}" + echo "x${{ secrets.READ_BUILD }}" - name: Checkout Code uses: actions/checkout@v3 with: From 040951058920388f23536d080cd6e620bb5a5928 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 14:14:23 +0800 Subject: [PATCH 63/91] fix --- .github/workflows/pullrequesttarget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index ecbaa71482d..a9ba9554ce0 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -28,7 +28,7 @@ jobs: echo "Please contact organizational account to Re-run all jobs" exit 1 - name: Run tests - run: | + run: | echo "x${{ secrets.JUST_BUILD_KITE }}" echo "x${{ secrets.READ_BUILD }}" - name: Checkout Code From e00b842e8c9579002d4994a5153b5727f7868861 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 14:15:53 +0800 Subject: [PATCH 64/91] fix --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 6f44064b54a89bbab071427e35798f44d6916fe7 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 14:27:53 +0800 Subject: [PATCH 65/91] fix --- .github/workflows/pullrequesttarget.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index a9ba9554ce0..df6702223d0 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -29,8 +29,8 @@ jobs: exit 1 - name: Run tests run: | - echo "x${{ secrets.JUST_BUILD_KITE }}" - echo "x${{ secrets.READ_BUILD }}" + echo "n${{ secrets.BUILD_KITE_READ_TOKEN }}" + echo "n${{ secrets.BUILD_KITE_WRITE_TOKEN }}" - name: Checkout Code uses: actions/checkout@v3 with: @@ -39,7 +39,7 @@ jobs: id: build uses: "buildkite/trigger-pipeline-action@v2.0.0" with: - buildkite_api_access_token: ${{ secrets.JUST_BUILD_KITE }} + buildkite_api_access_token: ${{ secrets.BUILD_KITE_WRITE_TOKEN }} pipeline: "tronprotocol/sonar-check-and-checkstyle" - name: Get Build Kite URL run: | @@ -48,7 +48,7 @@ jobs: id: download uses: EnricoMi/download-buildkite-artifact-action@v1 with: - buildkite_token: ${{ secrets.READ_BUILD }} + buildkite_token: ${{ secrets.BUILD_KITE_READ_TOKEN }} buildkite_build_url: ${{ steps.build.outputs.url }} ignore_build_states: blocked,canceled,skipped,not_run ignore_job_states: timed_out,failed From 8aced7a7e059bae950851108b6183c1a1153c2f3 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 14:29:29 +0800 Subject: [PATCH 66/91] xxx --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 4738a60b4561caaa8ec77c68973e5a2733683bec Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 14:39:45 +0800 Subject: [PATCH 67/91] xxx --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From f3b49bdf01f7fc0a1aa28c4fb516e1ec2bb9e892 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Mon, 20 Nov 2023 17:03:53 +0800 Subject: [PATCH 68/91] ddd --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From f91d93bc29ebf6ee0640def8d8d8d57c8a4867de Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 10:30:08 +0800 Subject: [PATCH 69/91] q --- .github/workflows/pullrequesttarget.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index df6702223d0..862107bc6d3 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -1,11 +1,8 @@ name: Buildkite on: - push: - branches: [ 'develop', 'master', 'release_**' ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ 'develop' ] + pull_request_target: + types: [ opened, synchronize ] jobs: sonarScan: name: Sonar Scan From 83e22dc92d4520fa3a09a565459e328b6ad3190a Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 10:34:00 +0800 Subject: [PATCH 70/91] w --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 0c1c07320290ad549e60aec922583ce29a576455 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 10:44:53 +0800 Subject: [PATCH 71/91] w1 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..7cb08768ecb 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray fffailed: " + e.getMessage(), e); } return bytes; } From 703961e1cb2685c7411abd5c48dfa98b62fdb0ef Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 11:28:58 +0800 Subject: [PATCH 72/91] w2 --- .github/workflows/pullrequesttarget.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 862107bc6d3..df6702223d0 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -1,8 +1,11 @@ name: Buildkite on: - pull_request_target: - types: [ opened, synchronize ] + push: + branches: [ 'develop', 'master', 'release_**' ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ 'develop' ] jobs: sonarScan: name: Sonar Scan From 8b0de3748245e5985fa9fea8c189ee2e2d271053 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 11:45:19 +0800 Subject: [PATCH 73/91] e --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 7cb08768ecb..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 025128e0ee0d64f052c1e99d8c086c98a98a5342 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 11:52:29 +0800 Subject: [PATCH 74/91] e1 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..aa30ba8b90d 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); } return bytes; } From f87a176d0d1be4cf0deb2dcd7e7f2585958c03d4 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 11:57:02 +0800 Subject: [PATCH 75/91] e2 --- .github/workflows/pullrequesttarget.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index df6702223d0..80602cc06e2 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -10,6 +10,7 @@ jobs: sonarScan: name: Sonar Scan runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Check Access id: checkAccess From cbbb94dfe66affddc290ce6dc75070f66926ece4 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 11:57:57 +0800 Subject: [PATCH 76/91] r --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index aa30ba8b90d..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray fffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 44dc1ad7b98b53404ff565ab5ff54214a524b2e0 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 15:19:04 +0800 Subject: [PATCH 77/91] t --- .github/workflows/pullrequesttarget.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 80602cc06e2..77fa82ee405 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -6,6 +6,7 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ 'develop' ] + workflow_dispatch: jobs: sonarScan: name: Sonar Scan From aabed7ff4ff0c03617bf545501b4b36e0671d3f6 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 15:20:18 +0800 Subject: [PATCH 78/91] t1 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 5209079d9e566d72d5fae5f49aded4f444efc0db Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 15:38:09 +0800 Subject: [PATCH 79/91] t2 --- .github/workflows/pullrequesttarget.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 77fa82ee405..c1429e9ec37 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -11,7 +11,6 @@ jobs: sonarScan: name: Sonar Scan runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Check Access id: checkAccess @@ -31,8 +30,9 @@ jobs: exit 1 - name: Run tests run: | - echo "n${{ secrets.BUILD_KITE_READ_TOKEN }}" - echo "n${{ secrets.BUILD_KITE_WRITE_TOKEN }}" + echo "n${{ github.actor }}" + echo "n${{ secrets.BUILD_KITE_READ_TOKEN }}" + echo "n${{ secrets.BUILD_KITE_WRITE_TOKEN }}" - name: Checkout Code uses: actions/checkout@v3 with: From fe89d1859862bb2e93e07f0b3eb2cfe98254c646 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 15:41:24 +0800 Subject: [PATCH 80/91] t3 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From 84c07beb60ac2a3896597e6941b239f280de91f7 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 15:56:27 +0800 Subject: [PATCH 81/91] t4 --- .github/workflows/pullrequesttarget.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index c1429e9ec37..5c51b303b60 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -6,7 +6,6 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ 'develop' ] - workflow_dispatch: jobs: sonarScan: name: Sonar Scan @@ -27,7 +26,12 @@ jobs: echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" echo "Job originally triggered by ${{ github.actor }}" echo "Please contact organizational account to Re-run all jobs" - exit 1 + uses: myrotvorets/set-commit-status-action@master + if: steps.checkAccess.outputs.require-result == 'false' + with: + sha: ${{ steps.comment-branch.outputs.head_sha }} + token: ${{ secrets.GITHUB_TOKEN }} + status: pending - name: Run tests run: | echo "n${{ github.actor }}" From e0827109d88f3023e9c39428283c2235fae3a619 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 15:57:43 +0800 Subject: [PATCH 82/91] y1 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 651af656fb1aaa8ee69f1c597a9bd12394580357 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:00:06 +0800 Subject: [PATCH 83/91] y2 --- .github/workflows/pullrequesttarget.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 5c51b303b60..0cfcf32ef18 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -3,7 +3,7 @@ name: Buildkite on: push: branches: [ 'develop', 'master', 'release_**' ] - pull_request: + pull_request_target: # The branches below must be a subset of the branches above branches: [ 'develop' ] jobs: @@ -20,14 +20,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Check Permission + uses: myrotvorets/set-commit-status-action@master if: steps.checkAccess.outputs.require-result == 'false' run: | echo "${{ github.triggering_actor }} does not have permissions on this repo." echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" echo "Job originally triggered by ${{ github.actor }}" echo "Please contact organizational account to Re-run all jobs" - uses: myrotvorets/set-commit-status-action@master - if: steps.checkAccess.outputs.require-result == 'false' with: sha: ${{ steps.comment-branch.outputs.head_sha }} token: ${{ secrets.GITHUB_TOKEN }} From 0b4f6f53107c9105b06396c480d1ab26b0e6eec7 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:00:47 +0800 Subject: [PATCH 84/91] y2 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..15846b45ed4 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray ailed: " + e.getMessage(), e); } return bytes; } From 87f5c45dfa8619c9efe9f2e1e6dab65ca6925bf3 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:02:46 +0800 Subject: [PATCH 85/91] y2 --- .github/workflows/pullrequesttarget.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 0cfcf32ef18..5e48caadf45 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -22,11 +22,6 @@ jobs: - name: Check Permission uses: myrotvorets/set-commit-status-action@master if: steps.checkAccess.outputs.require-result == 'false' - run: | - echo "${{ github.triggering_actor }} does not have permissions on this repo." - echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" - echo "Job originally triggered by ${{ github.actor }}" - echo "Please contact organizational account to Re-run all jobs" with: sha: ${{ steps.comment-branch.outputs.head_sha }} token: ${{ secrets.GITHUB_TOKEN }} From b0dc149328b9448ca8ee538e3de3291bbf7a3f15 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:03:55 +0800 Subject: [PATCH 86/91] y2 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 15846b45ed4..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ailed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From a913615a3f85cf20fc9fc501dbac15b32277a337 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:09:51 +0800 Subject: [PATCH 87/91] y2 --- .github/workflows/pullrequesttarget.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 5e48caadf45..29593135261 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -11,6 +11,9 @@ jobs: name: Sonar Scan runs-on: ubuntu-latest steps: + - name: Get PR branch + uses: xt0rted/pull-request-comment-branch@v1 + id: comment-branch - name: Check Access id: checkAccess uses: actions-cool/check-user-permission@v2 From 8270ee5738ea5ad5df931d8b95b6f99de8fd8198 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:10:47 +0800 Subject: [PATCH 88/91] y2 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index 4840ad42eb2..b77dd310380 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); + logger.error("objectToByteArray failed: " + e.getMessage(), e); } return bytes; } From f9c8a833d9d88f408c6866d254cab162a5b98209 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:15:09 +0800 Subject: [PATCH 89/91] y2 --- .github/workflows/pullrequesttarget.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 29593135261..80e47f35f6f 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -28,6 +28,7 @@ jobs: with: sha: ${{ steps.comment-branch.outputs.head_sha }} token: ${{ secrets.GITHUB_TOKEN }} + allowForks: true status: pending - name: Run tests run: | From c006993eb842e62356aa9f53d8a18d8c9460a460 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 16:15:58 +0800 Subject: [PATCH 90/91] y2 --- common/src/main/java/org/tron/common/utils/ByteArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/tron/common/utils/ByteArray.java b/common/src/main/java/org/tron/common/utils/ByteArray.java index b77dd310380..4840ad42eb2 100644 --- a/common/src/main/java/org/tron/common/utils/ByteArray.java +++ b/common/src/main/java/org/tron/common/utils/ByteArray.java @@ -103,7 +103,7 @@ public static byte[] fromObject(Object obj) { objectOutputStream.flush(); bytes = byteArrayOutputStream.toByteArray(); } catch (IOException e) { - logger.error("objectToByteArray failed: " + e.getMessage(), e); + logger.error("objectToByteArray ffffailed: " + e.getMessage(), e); } return bytes; } From 357dd6fe7c4cb4a211b24a2efaa527b47bb28126 Mon Sep 17 00:00:00 2001 From: sophiawang <1975054324@qq.com> Date: Tue, 21 Nov 2023 17:21:39 +0800 Subject: [PATCH 91/91] y2 --- .github/workflows/pullrequesttarget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pullrequesttarget.yml b/.github/workflows/pullrequesttarget.yml index 80e47f35f6f..768d994d3f1 100644 --- a/.github/workflows/pullrequesttarget.yml +++ b/.github/workflows/pullrequesttarget.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Get PR branch - uses: xt0rted/pull-request-comment-branch@v1 + uses: xt0rted/pull-request-comment-branch@v2 id: comment-branch - name: Check Access id: checkAccess