From 71eb455fa8abc9026353f539897a840e1e9b2b79 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Fri, 14 Feb 2025 10:34:44 +0800 Subject: [PATCH 01/79] Update Github Actions publish preview --- .github/workflows/publish-preview.yml | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/publish-preview.yml diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml new file mode 100644 index 0000000000..bef5de2152 --- /dev/null +++ b/.github/workflows/publish-preview.yml @@ -0,0 +1,44 @@ +name: GitHub Actions build preview + +on: + workflow_run: + workflows: ["Continuous Integration"] + types: + - completed + +jobs: + deploy: + name: deploy to github action + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '11' + + - name: Download deployment artifacts + uses: dawidd6/action-download-artifact@v6 + with: + workflow: integration.yml + run_id: ${{ github.event.workflow_run.id }} + name: reposense-deployment + path: . + + - name: Unzip deployment artifacts + run: | + unzip ./reposense-deployment.zip + + - name: Deploy GitHub pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./reposense-report + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' + commit_message: Rebuild pages at \ No newline at end of file From a1ac1001ed087756452a12ae149f947c40294fc5 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Fri, 14 Feb 2025 10:37:44 +0800 Subject: [PATCH 02/79] Add newline at yml --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index bef5de2152..167ad60869 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -41,4 +41,4 @@ jobs: publish_dir: ./reposense-report user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - commit_message: Rebuild pages at \ No newline at end of file + commit_message: Rebuild pages at From 94a6bf99a8247f05966262a5c663a44ed6a0d1c8 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 08:18:35 +0800 Subject: [PATCH 03/79] Add manual dispatch --- .github/workflows/publish-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 167ad60869..949d3032c8 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -5,6 +5,7 @@ on: workflows: ["Continuous Integration"] types: - completed + workflow_dispatch: jobs: deploy: From d3b114a6a4ce2e76d9919638f3915d46e3822231 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 08:36:48 +0800 Subject: [PATCH 04/79] Update publish-preview.yml --- .github/workflows/publish-preview.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 949d3032c8..167ad60869 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -5,7 +5,6 @@ on: workflows: ["Continuous Integration"] types: - completed - workflow_dispatch: jobs: deploy: From 0157e84f1cb61ab665839ed12525be3ea5721ea5 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 09:21:31 +0800 Subject: [PATCH 05/79] Remove redundant unzip --- .github/workflows/publish-preview.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 167ad60869..bdd798774c 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -30,10 +30,6 @@ jobs: name: reposense-deployment path: . - - name: Unzip deployment artifacts - run: | - unzip ./reposense-deployment.zip - - name: Deploy GitHub pages uses: peaceiris/actions-gh-pages@v3 with: From 0bc09b34e1b79a5933c650608ed361932ba49e8d Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 09:29:28 +0800 Subject: [PATCH 06/79] Trigger another PR --- .github/workflows/publish-preview.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index bdd798774c..a1986a62fd 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -30,6 +30,9 @@ jobs: name: reposense-deployment path: . + - name: Check existence of files + run: ls -al + - name: Deploy GitHub pages uses: peaceiris/actions-gh-pages@v3 with: From 40a097151199b2491348a4e230d2dad10454e619 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 09:46:02 +0800 Subject: [PATCH 07/79] Add test for connection --- .github/workflows/publish-preview.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index a1986a62fd..227a2140b4 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -41,3 +41,6 @@ jobs: user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' commit_message: Rebuild pages at + + - name: Test connection to deployed website + run: wget -S https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} \ No newline at end of file From 21cce129f89279282bd9cd36b9ac04033a70aee3 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 09:49:48 +0800 Subject: [PATCH 08/79] Correct formatting errors --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 227a2140b4..5ca86c22ac 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -43,4 +43,4 @@ jobs: commit_message: Rebuild pages at - name: Test connection to deployed website - run: wget -S https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} \ No newline at end of file + run: wget -S https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} From 7cc8ead6c71ecda7e850c7124178ea79c7de45a2 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 10:01:38 +0800 Subject: [PATCH 09/79] Add lighthouse ci to audit url --- .github/workflows/publish-preview.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 5ca86c22ac..5c94ab2dc4 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -43,4 +43,13 @@ jobs: commit_message: Rebuild pages at - name: Test connection to deployed website - run: wget -S https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + + - name: Test deployed web page + uses: treosh/lighthouse-ci-action@v12 + with: + urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + uploadArtifacts: true + + - name: Display Lighthouse summary + run: cat .lighthouseci/manifest.json | jq '.' From 39308eb923425bb9e8f4155364d4ff86d900a63e Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 10:02:24 +0800 Subject: [PATCH 10/79] Update target URL --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 5c94ab2dc4..535784d73f 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -43,12 +43,12 @@ jobs: commit_message: Rebuild pages at - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + urls: https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} uploadArtifacts: true - name: Display Lighthouse summary From e3dffbe681321c0a3eef0270dff3a09310a62a56 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 10:19:17 +0800 Subject: [PATCH 11/79] Update target URL again --- .github/workflows/publish-preview.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 535784d73f..994bda6ed8 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -42,8 +42,12 @@ jobs: user_email: 'github-actions[bot]@users.noreply.github.com' commit_message: Rebuild pages at + - name: Extract PR number + id: pr-number + run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT + - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/pull/${{ steps.pr-number.outputs.ACTIONS_PR_NUMBER }} - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 From 347936423b9b1bfaf58e2ec315bff295e994efff Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Sun, 16 Feb 2025 10:26:58 +0800 Subject: [PATCH 12/79] Attempt to add URL auditting (#5) * Add lighthouse ci to audit url * Update target URL * Update target URL again --- .github/workflows/publish-preview.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 5ca86c22ac..994bda6ed8 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -42,5 +42,18 @@ jobs: user_email: 'github-actions[bot]@users.noreply.github.com' commit_message: Rebuild pages at + - name: Extract PR number + id: pr-number + run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT + - name: Test connection to deployed website - run: wget -S https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/pull/${{ steps.pr-number.outputs.ACTIONS_PR_NUMBER }} + + - name: Test deployed web page + uses: treosh/lighthouse-ci-action@v12 + with: + urls: https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} + uploadArtifacts: true + + - name: Display Lighthouse summary + run: cat .lighthouseci/manifest.json | jq '.' From 10b6c305fa1c1578a11903d15956f46418c940d6 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 10:43:07 +0800 Subject: [PATCH 13/79] Update URL once again --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 994bda6ed8..633f962957 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -47,12 +47,12 @@ jobs: run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/pull/${{ steps.pr-number.outputs.ACTIONS_PR_NUMBER }} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} + urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} uploadArtifacts: true - name: Display Lighthouse summary From bed772263bbeb29524f859e02a609c471f44a8aa Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Sun, 16 Feb 2025 10:48:22 +0800 Subject: [PATCH 14/79] Trigger CI runs again (#6) * Add lighthouse ci to audit url * Update target URL * Update target URL again * Update URL once again --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 994bda6ed8..633f962957 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -47,12 +47,12 @@ jobs: run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/pull/${{ steps.pr-number.outputs.ACTIONS_PR_NUMBER }} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: https://${{github.repository_owner}}.github.io/${{github.repository}}/pull/${{github.event.number}} + urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} uploadArtifacts: true - name: Display Lighthouse summary From e7ef71912bf997b72775357b48b6d9c00c87c828 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 11:06:26 +0800 Subject: [PATCH 15/79] Update target with correct publish dir --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 633f962957..7797bc737e 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -47,12 +47,12 @@ jobs: run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/public - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/public uploadArtifacts: true - name: Display Lighthouse summary From 01b2f754305c9f2f3cb80dd72904d286cd88d1a6 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Sun, 16 Feb 2025 11:17:00 +0800 Subject: [PATCH 16/79] Test whether the URL is correct (#7) * Add lighthouse ci to audit url * Update target URL * Update target URL again * Update URL once again * Update target with correct publish dir --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 633f962957..7797bc737e 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -47,12 +47,12 @@ jobs: run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/public - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}} + urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/public uploadArtifacts: true - name: Display Lighthouse summary From cf9a583651106d33a3d2b6f9deb1576920490a78 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 11:31:16 +0800 Subject: [PATCH 17/79] Update target with correct publish dir --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 7797bc737e..9f5bf67347 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -47,12 +47,12 @@ jobs: run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/public + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/public + urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ uploadArtifacts: true - name: Display Lighthouse summary From 47c2072f5bbb1b3fb0fdd42cec78c8384c2c774e Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sun, 16 Feb 2025 11:48:33 +0800 Subject: [PATCH 18/79] Remove redundant step --- .github/workflows/publish-preview.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 9f5bf67347..ad04a0b662 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -42,10 +42,6 @@ jobs: user_email: 'github-actions[bot]@users.noreply.github.com' commit_message: Rebuild pages at - - name: Extract PR number - id: pr-number - run: echo 'ACTIONS_PR_NUMBER='$(cat ./pr/NUMBER) >> $GITHUB_OUTPUT - - name: Test connection to deployed website run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ From 28226fda51d6342de0a88871b77409cdecb77474 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Mon, 17 Feb 2025 08:26:19 +0800 Subject: [PATCH 19/79] Update publish-preview.yml --- .github/workflows/publish-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 21f0daff2b..3ffe618ef7 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -54,3 +54,4 @@ jobs: - name: Display Lighthouse summary run: cat .lighthouseci/manifest.json | jq '.' + From 4c19fb4e93cdeb88d9283554eb715b084318d5b9 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 09:58:15 +0800 Subject: [PATCH 20/79] Add undoing of preview deployment --- .github/workflows/publish-preview.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 21f0daff2b..3b47262139 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -1,5 +1,9 @@ name: GitHub Actions build preview +concurrency: + group: publish_reposense_preview + cancel-in-progress: false + on: workflow_run: workflows: ["Continuous Integration"] @@ -54,3 +58,17 @@ jobs: - name: Display Lighthouse summary run: cat .lighthouseci/manifest.json | jq '.' + + - name: Checkout gh-pages branch + uses: actions/checkout@v4 + with: + ref: gh-pages + fetch-depth: 2 + + - name: Revert last two deploy commits + run: | + echo "Reverting the last two deploy commits..." + git revert --no-edit HEAD~1..HEAD + git push origin gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 053c5fe08040203a0e5cff59630b9e026858eb56 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 09:59:56 +0800 Subject: [PATCH 21/79] Add conditions for redo --- .github/workflows/publish-preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 3b47262139..e63266f6e6 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -60,12 +60,14 @@ jobs: run: cat .lighthouseci/manifest.json | jq '.' - name: Checkout gh-pages branch + if: always() uses: actions/checkout@v4 with: ref: gh-pages fetch-depth: 2 - name: Revert last two deploy commits + if: always() run: | echo "Reverting the last two deploy commits..." git revert --no-edit HEAD~1..HEAD From 22db1d0e6e61d8d4b282797747c6e10af6badbf5 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Mon, 17 Feb 2025 10:13:13 +0800 Subject: [PATCH 22/79] Test after enabling github pages (#9) * Update Github Actions publish preview * Add newline at yml * Add manual dispatch * Update publish-preview.yml * Remove redundant unzip * Trigger another PR * Add test for connection * Correct formatting errors * Add lighthouse ci to audit url * Update target URL * Update target URL again * Attempt to add URL auditting (#5) * Add lighthouse ci to audit url * Update target URL * Update target URL again * Update URL once again * Trigger CI runs again (#6) * Add lighthouse ci to audit url * Update target URL * Update target URL again * Update URL once again * Update target with correct publish dir * Test whether the URL is correct (#7) * Add lighthouse ci to audit url * Update target URL * Update target URL again * Update URL once again * Update target with correct publish dir * Update target with correct publish dir * Remove redundant step * Update publish-preview.yml * Add undoing of preview deployment * Add conditions for redo --- .github/workflows/publish-preview.yml | 76 +++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/publish-preview.yml diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml new file mode 100644 index 0000000000..e63266f6e6 --- /dev/null +++ b/.github/workflows/publish-preview.yml @@ -0,0 +1,76 @@ +name: GitHub Actions build preview + +concurrency: + group: publish_reposense_preview + cancel-in-progress: false + +on: + workflow_run: + workflows: ["Continuous Integration"] + types: + - completed + +jobs: + deploy: + name: deploy to github action + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '11' + + - name: Download deployment artifacts + uses: dawidd6/action-download-artifact@v6 + with: + workflow: integration.yml + run_id: ${{ github.event.workflow_run.id }} + name: reposense-deployment + path: . + + - name: Check existence of files + run: ls -al + + - name: Deploy GitHub pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./reposense-report + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' + commit_message: Rebuild pages at + + - name: Test connection to deployed website + run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ + + + - name: Test deployed web page + uses: treosh/lighthouse-ci-action@v12 + with: + urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ + uploadArtifacts: true + + - name: Display Lighthouse summary + run: cat .lighthouseci/manifest.json | jq '.' + + - name: Checkout gh-pages branch + if: always() + uses: actions/checkout@v4 + with: + ref: gh-pages + fetch-depth: 2 + + - name: Revert last two deploy commits + if: always() + run: | + echo "Reverting the last two deploy commits..." + git revert --no-edit HEAD~1..HEAD + git push origin gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 134e5175601d4a221fd92ad5704360f7fc3e7d14 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 10:32:24 +0800 Subject: [PATCH 23/79] Add user email and name --- .github/workflows/publish-preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index e63266f6e6..4ee6f4a80f 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -70,6 +70,8 @@ jobs: if: always() run: | echo "Reverting the last two deploy commits..." + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" git revert --no-edit HEAD~1..HEAD git push origin gh-pages env: From b225995b855850f5b8929b4f24b48cd77587f0f9 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 11:21:41 +0800 Subject: [PATCH 24/79] Add testing for existence of files --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 4ee6f4a80f..ecf8c7b7ac 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -35,7 +35,7 @@ jobs: path: . - name: Check existence of files - run: ls -al + run: ls -al ./reposense-report - name: Deploy GitHub pages uses: peaceiris/actions-gh-pages@v3 From 698327e45d81a950895acb570822527142dad72e Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 11:28:20 +0800 Subject: [PATCH 25/79] Add empty commit --- .github/workflows/publish-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index ecf8c7b7ac..d8152f6a50 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -45,6 +45,7 @@ jobs: user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' commit_message: Rebuild pages at + allow-empty-commit: true - name: Test connection to deployed website run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ From 647bfccb86b8771477b54fac85298b3923f11f7d Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 11:56:21 +0800 Subject: [PATCH 26/79] Trigger rerun of github actions --- .github/workflows/publish-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index d8152f6a50..3094c0813a 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -12,6 +12,7 @@ on: jobs: deploy: + name: deploy to github action runs-on: ubuntu-latest if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} From 4e037c396a5f8d703fba912fd45db95d76317bae Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 12:11:54 +0800 Subject: [PATCH 27/79] Remove setting up java env --- .github/workflows/publish-preview.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 3094c0813a..e0d0fa5a2b 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -21,11 +21,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: '11' + - name: Display current directory + run: pwd - name: Download deployment artifacts uses: dawidd6/action-download-artifact@v6 From 160a99e30167df185b097fd50c4816025501aa41 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 12:19:23 +0800 Subject: [PATCH 28/79] Upgrade action version --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index e0d0fa5a2b..a425e2e1e1 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -36,7 +36,7 @@ jobs: run: ls -al ./reposense-report - name: Deploy GitHub pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./reposense-report From bb3371df0b989cffbfaa8a3b33eec3da9c3cd91e Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 12:24:30 +0800 Subject: [PATCH 29/79] Upgrade action version --- .github/workflows/publish-preview.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index a425e2e1e1..f4431ce819 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -48,7 +48,6 @@ jobs: - name: Test connection to deployed website run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ - - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: From a9349deea4ebdb1efd32ac1950f91fe1bca8bf11 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Feb 2025 12:45:38 +0800 Subject: [PATCH 30/79] Remove unwanted flag --- .github/workflows/publish-preview.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index f4431ce819..3b87f24f7b 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -43,7 +43,6 @@ jobs: user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' commit_message: Rebuild pages at - allow-empty-commit: true - name: Test connection to deployed website run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ From cda4bb5b04ab0269a31e3e921c2428f1a692f427 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 20 Feb 2025 18:51:09 +0800 Subject: [PATCH 31/79] Audit websites on gh-pages containers --- .github/workflows/publish-preview.yml | 66 ++++++++++++++++----------- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 3b87f24f7b..e49c4869f3 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -35,41 +35,53 @@ jobs: - name: Check existence of files run: ls -al ./reposense-report - - name: Deploy GitHub pages - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./reposense-report - user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com' - commit_message: Rebuild pages at + - name: Build docker container + run: | + git clone https://github.com/github/pages-gem + cd pages-gem + git checkout v232 + make image + + - name: Run local website on action runner + run: | + $SITE=./reposense-report + docker run --rm -it -p 4000:4000 -v ${SITE}:/src/site gh-pages + +# - name: Deploy GitHub pages +# uses: peaceiris/actions-gh-pages@v4 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# publish_dir: ./reposense-report +# user_name: 'github-actions[bot]' +# user_email: 'github-actions[bot]@users.noreply.github.com' +# commit_message: Rebuild pages at - name: Test connection to deployed website - run: curl -L https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ + run: curl -L http://localhost:4000/ - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: https://${{github.repository_owner}}.github.io/${{github.event.repository.name}}/ + urls: http://localhost:4000/ uploadArtifacts: true - name: Display Lighthouse summary run: cat .lighthouseci/manifest.json | jq '.' - - name: Checkout gh-pages branch - if: always() - uses: actions/checkout@v4 - with: - ref: gh-pages - fetch-depth: 2 - - - name: Revert last two deploy commits - if: always() - run: | - echo "Reverting the last two deploy commits..." - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" - git revert --no-edit HEAD~1..HEAD - git push origin gh-pages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Checkout gh-pages branch +# if: always() +# uses: actions/checkout@v4 +# with: +# ref: gh-pages +# fetch-depth: 2 +# +# - name: Revert last two deploy commits +# if: always() +# run: | +# echo "Reverting the last two deploy commits..." +# git config --global user.email "github-actions[bot]@users.noreply.github.com" +# git config --global user.name "github-actions[bot]" +# git revert --no-edit HEAD~1..HEAD +# git push origin gh-pages +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 433a2d9de72a905b3fdfab8550f77ac87bc87efe Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 20 Feb 2025 18:53:30 +0800 Subject: [PATCH 32/79] Remove trailing whitespace --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index e49c4869f3..d275358301 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -40,7 +40,7 @@ jobs: git clone https://github.com/github/pages-gem cd pages-gem git checkout v232 - make image + make image - name: Run local website on action runner run: | From f7b04f360b4afe0712b7ea184905dbb014cf4c1b Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Thu, 20 Feb 2025 19:01:22 +0800 Subject: [PATCH 33/79] Update GitHub actions (#15) --- .github/workflows/publish-preview.yml | 87 +++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 .github/workflows/publish-preview.yml diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml new file mode 100644 index 0000000000..d275358301 --- /dev/null +++ b/.github/workflows/publish-preview.yml @@ -0,0 +1,87 @@ +name: GitHub Actions build preview + +concurrency: + group: publish_reposense_preview + cancel-in-progress: false + +on: + workflow_run: + workflows: ["Continuous Integration"] + types: + - completed + +jobs: + deploy: + + name: deploy to github action + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Display current directory + run: pwd + + - name: Download deployment artifacts + uses: dawidd6/action-download-artifact@v6 + with: + workflow: integration.yml + run_id: ${{ github.event.workflow_run.id }} + name: reposense-deployment + path: . + + - name: Check existence of files + run: ls -al ./reposense-report + + - name: Build docker container + run: | + git clone https://github.com/github/pages-gem + cd pages-gem + git checkout v232 + make image + + - name: Run local website on action runner + run: | + $SITE=./reposense-report + docker run --rm -it -p 4000:4000 -v ${SITE}:/src/site gh-pages + +# - name: Deploy GitHub pages +# uses: peaceiris/actions-gh-pages@v4 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# publish_dir: ./reposense-report +# user_name: 'github-actions[bot]' +# user_email: 'github-actions[bot]@users.noreply.github.com' +# commit_message: Rebuild pages at + + - name: Test connection to deployed website + run: curl -L http://localhost:4000/ + + - name: Test deployed web page + uses: treosh/lighthouse-ci-action@v12 + with: + urls: http://localhost:4000/ + uploadArtifacts: true + + - name: Display Lighthouse summary + run: cat .lighthouseci/manifest.json | jq '.' + +# - name: Checkout gh-pages branch +# if: always() +# uses: actions/checkout@v4 +# with: +# ref: gh-pages +# fetch-depth: 2 +# +# - name: Revert last two deploy commits +# if: always() +# run: | +# echo "Reverting the last two deploy commits..." +# git config --global user.email "github-actions[bot]@users.noreply.github.com" +# git config --global user.name "github-actions[bot]" +# git revert --no-edit HEAD~1..HEAD +# git push origin gh-pages +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 211eafdf8389507ce93968ebcc226c395b0a1838 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Thu, 20 Feb 2025 19:18:45 +0800 Subject: [PATCH 34/79] Update publish-preview.yml --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index d275358301..388c5e52b5 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -44,7 +44,7 @@ jobs: - name: Run local website on action runner run: | - $SITE=./reposense-report + export SITE=./reposense-report docker run --rm -it -p 4000:4000 -v ${SITE}:/src/site gh-pages # - name: Deploy GitHub pages From 971a0e978255c64834b725ee5cb58a54f163767b Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Thu, 20 Feb 2025 20:09:23 +0800 Subject: [PATCH 35/79] Update publish-preview.yml --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 388c5e52b5..c75e01660b 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -45,7 +45,7 @@ jobs: - name: Run local website on action runner run: | export SITE=./reposense-report - docker run --rm -it -p 4000:4000 -v ${SITE}:/src/site gh-pages + docker run --rm -i -p 4000:4000 -v ${SITE}:/src/site gh-pages # - name: Deploy GitHub pages # uses: peaceiris/actions-gh-pages@v4 From 81a8b3a9b9fa4f92ab531218ab0d669ba3b25d01 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Thu, 20 Feb 2025 20:22:41 +0800 Subject: [PATCH 36/79] Update publish-preview.yml --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index c75e01660b..824dab33b1 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -45,7 +45,7 @@ jobs: - name: Run local website on action runner run: | export SITE=./reposense-report - docker run --rm -i -p 4000:4000 -v ${SITE}:/src/site gh-pages + docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages # - name: Deploy GitHub pages # uses: peaceiris/actions-gh-pages@v4 From 438b43df8f529335e64c30615792e02427424765 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 20 Feb 2025 20:23:17 +0800 Subject: [PATCH 37/79] Correct publish preview script --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index d275358301..824dab33b1 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -44,8 +44,8 @@ jobs: - name: Run local website on action runner run: | - $SITE=./reposense-report - docker run --rm -it -p 4000:4000 -v ${SITE}:/src/site gh-pages + export SITE=./reposense-report + docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages # - name: Deploy GitHub pages # uses: peaceiris/actions-gh-pages@v4 From 4af9766fbad2781ba665ac338e47d68f44c53a1f Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 20 Feb 2025 20:38:13 +0800 Subject: [PATCH 38/79] Update url --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 824dab33b1..a21358ebcc 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -57,12 +57,12 @@ jobs: # commit_message: Rebuild pages at - name: Test connection to deployed website - run: curl -L http://localhost:4000/ + run: curl -L http://0.0.0.0:4000/ - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: http://localhost:4000/ + urls: http://0.0.0.0:4000/ uploadArtifacts: true - name: Display Lighthouse summary From 303c6bbdf7e12ce97ce2644e1e45f6eb42e9b715 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Thu, 20 Feb 2025 20:38:48 +0800 Subject: [PATCH 39/79] Update GitHub actions (#18) --- .github/workflows/publish-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 824dab33b1..a21358ebcc 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -57,12 +57,12 @@ jobs: # commit_message: Rebuild pages at - name: Test connection to deployed website - run: curl -L http://localhost:4000/ + run: curl -L http://0.0.0.0:4000/ - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: http://localhost:4000/ + urls: http://0.0.0.0:4000/ uploadArtifacts: true - name: Display Lighthouse summary From 36cc8cf4caf6df187af315abab281988b39ec93e Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 20 Feb 2025 20:49:19 +0800 Subject: [PATCH 40/79] Combine steps --- .github/workflows/publish-preview.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index a21358ebcc..8f6dc884bb 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -46,18 +46,7 @@ jobs: run: | export SITE=./reposense-report docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages - -# - name: Deploy GitHub pages -# uses: peaceiris/actions-gh-pages@v4 -# with: -# github_token: ${{ secrets.GITHUB_TOKEN }} -# publish_dir: ./reposense-report -# user_name: 'github-actions[bot]' -# user_email: 'github-actions[bot]@users.noreply.github.com' -# commit_message: Rebuild pages at - - - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/ + curl -L http://0.0.0.0:4000/ - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 From d96d533cf4f85fe6906d7ab9b4193679f6414500 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 20 Feb 2025 22:10:48 +0800 Subject: [PATCH 41/79] Update test time --- .github/workflows/publish-preview.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 8f6dc884bb..e227082cb0 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -44,9 +44,21 @@ jobs: - name: Run local website on action runner run: | - export SITE=./reposense-report docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages - curl -L http://0.0.0.0:4000/ + env: + SITE: ${{github.workspace}}/reposense-report + +# - name: Deploy GitHub pages +# uses: peaceiris/actions-gh-pages@v4 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# publish_dir: ./reposense-report +# user_name: 'github-actions[bot]' +# user_email: 'github-actions[bot]@users.noreply.github.com' +# commit_message: Rebuild pages at + + - name: Wait for the service to start + run: sleep 10 - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 From 8f3ea86a23a8ba0ac7c02f36b59ba55e54677c23 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 20 Feb 2025 22:31:40 +0800 Subject: [PATCH 42/79] Remove uncessary lines --- .github/workflows/publish-preview.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index ca9e2b54fd..a70aca1ef6 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -54,7 +54,6 @@ jobs: - name: Test connection to deployed website run: curl -L http://0.0.0.0:4000/ - - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: From cc5081c32a2653e1c269cace8fbe221889dedd7f Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 13:58:26 +0800 Subject: [PATCH 43/79] Remove redundant files --- .github/workflows/publish-preview.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index a70aca1ef6..8ba42f8092 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -21,9 +21,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Display current directory - run: pwd - - name: Download deployment artifacts uses: dawidd6/action-download-artifact@v6 with: @@ -32,9 +29,6 @@ jobs: name: reposense-deployment path: . - - name: Check existence of files - run: ls -al ./reposense-report - - name: Build docker container run: | git clone https://github.com/github/pages-gem From 3b226dbf3d75e7ce90dbea2018675059046a12cc Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 19:41:45 +0800 Subject: [PATCH 44/79] Update manual check --- .github/workflows/publish-preview-manual.yml | 76 ++++++++++++++++++++ .github/workflows/publish-preview.yml | 3 +- docs/dg/devOpsGuide.md | 7 ++ 3 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-preview-manual.yml diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml new file mode 100644 index 0000000000..370eac5691 --- /dev/null +++ b/.github/workflows/publish-preview-manual.yml @@ -0,0 +1,76 @@ +name: GitHub Actions preview build manual + +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: ${{ env.JAVA_DISTRIBUTION }} + java-version: ${{ env.JAVA_VER }} + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VER }} + + - name: Set up Gradle caching + uses: actions/cache@v3 + with: + path: | + $HOME/.gradle/caches + $HOME/.gradle/wrapper + key: ${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ matrix.os }}-gradle- + + - name: Set up Node caching + uses: actions/cache@v3 + with: + path: $HOME/.npm + key: ${{ matrix.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ matrix.os }}-node- + + - name: Grant execute permission for gradlew + if: ${{ runner.os != 'Windows' }} + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew run + + - name: Build docker container + run: | + git clone https://github.com/github/pages-gem + cd pages-gem + git checkout v232 + make image + + - name: Run local website on action runner + run: | + docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages + env: + SITE: ${{github.workspace}}/reposense-report + + - name: Wait for the service to start + run: sleep 10 + + - name: Test connection to deployed website + run: curl -L http://0.0.0.0:4000/ + + - name: Test deployed web page + uses: treosh/lighthouse-ci-action@v12 + with: + urls: http://0.0.0.0:4000/ + uploadArtifacts: true + + - name: Display Lighthouse summary + run: cat .lighthouseci/manifest.json | jq '.' \ No newline at end of file diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 8ba42f8092..fe256c5408 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -8,11 +8,10 @@ on: workflow_run: workflows: ["Continuous Integration"] types: - - completed + - completed jobs: deploy: - name: deploy to github action runs-on: ubuntu-latest if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} diff --git a/docs/dg/devOpsGuide.md b/docs/dg/devOpsGuide.md index 52ccf5157b..0484d43b25 100644 --- a/docs/dg/devOpsGuide.md +++ b/docs/dg/devOpsGuide.md @@ -84,3 +84,10 @@ For authentication, two secrets are stored and used in GitHub Actions: The `surge` command automatically detects the existence of these two environment variables and use them for authentication when deploying the RepoSense report and documentation build previews. Currently, deployments are kept forever, even after the pull request is merged or closed. There is currently no existing functionality to automatically clean up deployments after they are no longer useful. + + + +## Post-deployment test +Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](ttps://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). + +The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments. From 6d9cfd5f9c6d31e9390d3f27100922c051bfeb26 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 19:43:58 +0800 Subject: [PATCH 45/79] Correct environmental checks errors --- .github/workflows/publish-preview-manual.yml | 2 +- docs/dg/devOpsGuide.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 370eac5691..ae44163b81 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -73,4 +73,4 @@ jobs: uploadArtifacts: true - name: Display Lighthouse summary - run: cat .lighthouseci/manifest.json | jq '.' \ No newline at end of file + run: cat .lighthouseci/manifest.json | jq '.' diff --git a/docs/dg/devOpsGuide.md b/docs/dg/devOpsGuide.md index 0484d43b25..8b172194ab 100644 --- a/docs/dg/devOpsGuide.md +++ b/docs/dg/devOpsGuide.md @@ -90,4 +90,4 @@ Currently, deployments are kept forever, even after the pull request is merged o ## Post-deployment test Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](ttps://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). -The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments. +The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments. From f22b93469a4b2a0c6d2de9729f9ea2e60963da99 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:00:00 +0800 Subject: [PATCH 46/79] Add environment variables --- .github/workflows/publish-preview-manual.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index ae44163b81..3d6b009baf 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -3,6 +3,11 @@ name: GitHub Actions preview build manual on: workflow_dispatch: +env: + NODE_VER: '20.x' + JAVA_DISTRIBUTION: 'zulu' + JAVA_VER: 11 + jobs: deploy: runs-on: ubuntu-latest From 156e8891b594d67e7da2aebcca6d2a8d04dd7cc3 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:14:31 +0800 Subject: [PATCH 47/79] Squash merge --- .github/workflows/publish-preview-manual.yml | 81 +++++++ .github/workflows/publish-preview.yml | 58 +++++ docs/dg/devOpsGuide.md | 7 + reposense-logs/reposense.log.0 | 210 +++++++++++++++++++ reposense-logs/reposense.log.0.lck | 0 5 files changed, 356 insertions(+) create mode 100644 .github/workflows/publish-preview-manual.yml create mode 100644 .github/workflows/publish-preview.yml create mode 100644 reposense-logs/reposense.log.0 create mode 100644 reposense-logs/reposense.log.0.lck diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml new file mode 100644 index 0000000000..3d6b009baf --- /dev/null +++ b/.github/workflows/publish-preview-manual.yml @@ -0,0 +1,81 @@ +name: GitHub Actions preview build manual + +on: + workflow_dispatch: + +env: + NODE_VER: '20.x' + JAVA_DISTRIBUTION: 'zulu' + JAVA_VER: 11 + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: ${{ env.JAVA_DISTRIBUTION }} + java-version: ${{ env.JAVA_VER }} + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VER }} + + - name: Set up Gradle caching + uses: actions/cache@v3 + with: + path: | + $HOME/.gradle/caches + $HOME/.gradle/wrapper + key: ${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ matrix.os }}-gradle- + + - name: Set up Node caching + uses: actions/cache@v3 + with: + path: $HOME/.npm + key: ${{ matrix.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ matrix.os }}-node- + + - name: Grant execute permission for gradlew + if: ${{ runner.os != 'Windows' }} + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew run + + - name: Build docker container + run: | + git clone https://github.com/github/pages-gem + cd pages-gem + git checkout v232 + make image + + - name: Run local website on action runner + run: | + docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages + env: + SITE: ${{github.workspace}}/reposense-report + + - name: Wait for the service to start + run: sleep 10 + + - name: Test connection to deployed website + run: curl -L http://0.0.0.0:4000/ + + - name: Test deployed web page + uses: treosh/lighthouse-ci-action@v12 + with: + urls: http://0.0.0.0:4000/ + uploadArtifacts: true + + - name: Display Lighthouse summary + run: cat .lighthouseci/manifest.json | jq '.' diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml new file mode 100644 index 0000000000..fe256c5408 --- /dev/null +++ b/.github/workflows/publish-preview.yml @@ -0,0 +1,58 @@ +name: GitHub Actions build preview + +concurrency: + group: publish_reposense_preview + cancel-in-progress: false + +on: + workflow_run: + workflows: ["Continuous Integration"] + types: + - completed + +jobs: + deploy: + name: deploy to github action + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Download deployment artifacts + uses: dawidd6/action-download-artifact@v6 + with: + workflow: integration.yml + run_id: ${{ github.event.workflow_run.id }} + name: reposense-deployment + path: . + + - name: Build docker container + run: | + git clone https://github.com/github/pages-gem + cd pages-gem + git checkout v232 + make image + + - name: Run local website on action runner + run: | + docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages + env: + SITE: ${{github.workspace}}/reposense-report + + - name: Wait for the service to start + run: sleep 10 + + - name: Test connection to deployed website + run: curl -L http://0.0.0.0:4000/ + + - name: Test deployed web page + uses: treosh/lighthouse-ci-action@v12 + with: + urls: http://0.0.0.0:4000/ + uploadArtifacts: true + + - name: Display Lighthouse summary + run: cat .lighthouseci/manifest.json | jq '.' + diff --git a/docs/dg/devOpsGuide.md b/docs/dg/devOpsGuide.md index 52ccf5157b..8b172194ab 100644 --- a/docs/dg/devOpsGuide.md +++ b/docs/dg/devOpsGuide.md @@ -84,3 +84,10 @@ For authentication, two secrets are stored and used in GitHub Actions: The `surge` command automatically detects the existence of these two environment variables and use them for authentication when deploying the RepoSense report and documentation build previews. Currently, deployments are kept forever, even after the pull request is merged or closed. There is currently no existing functionality to automatically clean up deployments after they are no longer useful. + + + +## Post-deployment test +Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](ttps://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). + +The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments. diff --git a/reposense-logs/reposense.log.0 b/reposense-logs/reposense.log.0 new file mode 100644 index 0000000000..557468aba3 --- /dev/null +++ b/reposense-logs/reposense.log.0 @@ -0,0 +1,210 @@ +3月 06, 2025 8:11:11 下午 reposense.system.LogsManager addFileHandler +信息: Log temp folder has been successfully created +3月 06, 2025 8:11:11 下午 reposense.parser.ArgsParser parse +信息: Config path not provided, using the config folder as default. +3月 06, 2025 8:11:11 下午 reposense.parser.BlurbMarkdownParser parse +信息: Parsing Blurbs... +3月 06, 2025 8:11:11 下午 reposense.parser.BlurbMarkdownParser parse +信息: Blurbs parsed successfully! +3月 06, 2025 8:11:11 下午 reposense.parser.CsvParser validateHeader +信息: Parsed header of CSV file, repo-config.csv, and recognized columns: Ignore Standalone Config, Repository's Location, Branch, Shallow Cloning, File formats, Ignore Glob List, Ignore Authors List, Find Previous Authors, Since Date, Ignore Commits List, Until Date +3月 06, 2025 8:11:11 下午 reposense.parser.CsvParser validateHeader +信息: Parsed header of CSV file, author-config.csv, and recognized columns: Author's Emails, Repository's Location, Branch, Author's Git Host ID, Author's Display Name, Ignore Glob List, Author's Git Author Name +3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases +警告: Duplicate alias skyblaise found. The alias will belong to the last author - skyblaise +3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases +警告: Duplicate alias luo zhijie found. The alias will belong to the last author - luozhijie-tom +3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases +警告: Duplicate alias skyblaise found. The alias will belong to the last author - skyblaise +3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases +警告: Duplicate alias luo zhijie found. The alias will belong to the last author - luozhijie-tom +3月 06, 2025 8:11:11 下午 reposense.parser.CsvParser validateHeader +信息: Parsed header of CSV file, group-config.csv, and recognized columns: Globs, Repository's Location, Group Name +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://bitbucket.org/skyblaise/testrepo-bitbucket.git... +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://github.com/reposense/RepoSense.git... +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://github.com/reposense/testrepo-Delta.git... +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code... +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code to complete... +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://github.com/reposense/RepoSense.git to complete... +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://github.com/reposense/testrepo-Delta.git to complete... +3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://bitbucket.org/skyblaise/testrepo-bitbucket.git to complete... +3月 06, 2025 8:11:13 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Cloning of https://bitbucket.org/skyblaise/testrepo-bitbucket.git completed! +3月 06, 2025 8:11:13 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://github.com/reposense/testrepo-Alpha.git... +3月 06, 2025 8:11:13 下午 reposense.report.ReportGenerator analyzeRepos +信息: [1/12] Analyzing https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... +3月 06, 2025 8:11:13 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://github.com/reposense/testrepo-Alpha.git to complete... +3月 06, 2025 8:11:14 下午 reposense.report.ReportGenerator updateRepoConfig +信息: https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master) does not contain a standalone config file. +3月 06, 2025 8:11:14 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos +信息: Extracting relevant file info from https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... +3月 06, 2025 8:11:14 下午 reposense.commits.CommitInfoExtractor extractCommitInfos +信息: Extracting commits info for https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... +3月 06, 2025 8:11:14 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits +信息: Analyzing commits info for https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... +3月 06, 2025 8:11:14 下午 reposense.report.ReportGenerator analyzeRepo +信息: Analysis of https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master) completed! +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Cloning of https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code completed! +3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator analyzeRepos +信息: [2/12] Analyzing https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://github.com/reposense/testrepo-Empty.git... +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://github.com/reposense/testrepo-Empty.git to complete... +3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator updateRepoConfig +信息: https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master) does not contain a standalone config file. +3月 06, 2025 8:11:15 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos +信息: Extracting relevant file info from https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Cloning of https://github.com/reposense/testrepo-Alpha.git completed! +3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator analyzeRepos +信息: [3/12] Analyzing https://github.com/reposense/testrepo-Alpha.git (master)... +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner spawnCloneProcess +警告: Exception met while trying to clone the repo "reposense/RepoSense[master]", will skip this repo. +java.io.IOException: Fail to delete directory repos\reposense_RepoSense\RepoSense_bare\objects\pack + at reposense.util.FileUtil.deleteDirectory(FileUtil.java:162) + at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) + at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) + at reposense.report.RepoCloner.spawnCloneProcess(RepoCloner.java:171) + at reposense.report.RepoCloner.cloneBare(RepoCloner.java:82) + at reposense.report.ReportGenerator.cloneRepo(ReportGenerator.java:275) + at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$0(ReportGenerator.java:219) + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) + at java.base/java.lang.Thread.run(Thread.java:834) + +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://gitlab.com/reposense/testrepo-gitlab.git... +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner deleteDirectory +警告: Error deleting report directory. +java.io.IOException: Fail to delete directory repos\reposense_RepoSense\RepoSense_bare\objects\pack + at reposense.util.FileUtil.deleteDirectory(FileUtil.java:162) + at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) + at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) + at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) + at reposense.report.RepoCloner.deleteDirectory(RepoCloner.java:352) + at reposense.report.RepoCloner.cleanupRepo(RepoCloner.java:151) + at reposense.report.ReportGenerator.analyzeRepos(ReportGenerator.java:304) + at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$1(ReportGenerator.java:226) + at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642) + at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) + at java.base/java.lang.Thread.run(Thread.java:834) + +3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://gitlab.com/reposense/testrepo-gitlab.git to complete... +3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator updateRepoConfig +警告: The provided commit hash, , contains illegal characters. Ignoring the config provided by https://github.com/reposense/testrepo-Alpha.git (master). +3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator updateAuthorList +信息: https://github.com/reposense/testrepo-Alpha.git (master) has no authors specified, using all authors by default. +3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator analyzeRepos +警告: No authors found with commits for https://github.com/reposense/testrepo-Alpha.git (master). +3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Cloning of https://github.com/reposense/testrepo-Empty.git completed! +3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner getClonedRepoLocation +警告: Exception met while trying to get current branch of https://github.com/reposense/testrepo-Empty.git (master), will skip this repo. +reposense.git.exception.GitBranchException: Index 1 out of bounds for length 1 + at reposense.git.GitBranch.getCurrentBranch(GitBranch.java:29) + at reposense.report.RepoCloner.getClonedRepoLocation(RepoCloner.java:133) + at reposense.report.ReportGenerator.cloneRepo(ReportGenerator.java:276) + at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$0(ReportGenerator.java:219) + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) + at java.base/java.lang.Thread.run(Thread.java:834) + +3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner spawnCloneProcess +信息: Cloning in parallel from https://github.com/reposense/testrepo-Beta.git... +3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Waiting for cloning of https://github.com/reposense/testrepo-Beta.git to complete... +3月 06, 2025 8:11:17 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Cloning of https://gitlab.com/reposense/testrepo-gitlab.git completed! +3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepos +信息: [4/12] Analyzing https://gitlab.com/reposense/testrepo-gitlab.git (main)... +3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator updateRepoConfig +信息: https://gitlab.com/reposense/testrepo-gitlab.git (main) does not contain a standalone config file. +3月 06, 2025 8:11:17 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos +信息: Extracting relevant file info from https://gitlab.com/reposense/testrepo-gitlab.git (main)... +3月 06, 2025 8:11:17 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Cloning of https://github.com/reposense/testrepo-Delta.git completed! +3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepos +信息: [5/12] Analyzing https://github.com/reposense/testrepo-Delta.git (master)... +3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoExtractor extractCommitInfos +信息: Extracting commits info for https://gitlab.com/reposense/testrepo-gitlab.git (main)... +3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits +信息: Analyzing commits info for https://gitlab.com/reposense/testrepo-gitlab.git (main)... +3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepo +信息: Analysis of https://gitlab.com/reposense/testrepo-gitlab.git (main) completed! +3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoExtractor extractCommitInfos +信息: Extracting commits info for https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... +3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits +信息: Analyzing commits info for https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... +3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepo +信息: Analysis of https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master) completed! +3月 06, 2025 8:11:17 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos +信息: Extracting relevant file info from https://github.com/reposense/testrepo-Delta.git (master)... +3月 06, 2025 8:11:18 下午 reposense.commits.CommitInfoExtractor extractCommitInfos +信息: Extracting commits info for https://github.com/reposense/testrepo-Delta.git (master)... +3月 06, 2025 8:11:18 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits +信息: Analyzing commits info for https://github.com/reposense/testrepo-Delta.git (master)... +3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepo +信息: Analysis of https://github.com/reposense/testrepo-Delta.git (master) completed! +3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepos +信息: [6/12] Analyzing https://github.com/reposense/testrepo-Delta.git (nonExistentBranch)... +3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepos +严重: Branch nonExistentBranch does not exist in https://github.com/reposense/testrepo-Delta.git! Analysis terminated. +reposense.git.exception.GitBranchException: reposense.system.CommandRunnerProcessException: Error returned from command git rev-parse --verify nonExistentBranch on path repos\reposense_testrepo-Delta\testrepo-Delta_bare : +fatal: Needed a single revision + + at reposense.git.GitRevParse.assertBranchExists(GitRevParse.java:24) + at reposense.report.ReportGenerator.analyzeRepos(ReportGenerator.java:317) + at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$1(ReportGenerator.java:226) + at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642) + at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) + at java.base/java.lang.Thread.run(Thread.java:834) + +3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepos +信息: [7/12] Analyzing https://github.com/reposense/testrepo-Delta.git (add-binary-file)... +3月 06, 2025 8:11:19 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos +信息: Extracting relevant file info from https://github.com/reposense/testrepo-Delta.git (add-binary-file)... +3月 06, 2025 8:11:19 下午 reposense.report.RepoCloner waitForCloneProcess +信息: Cloning of https://github.com/reposense/testrepo-Beta.git completed! +3月 06, 2025 8:11:19 下午 reposense.report.ReportGenerator analyzeRepos +信息: [8/12] Analyzing https://github.com/reposense/testrepo-Beta.git (master)... +3月 06, 2025 8:11:19 下午 reposense.report.ReportGenerator updateRepoConfig +信息: Ignoring standalone config file in https://github.com/reposense/testrepo-Beta.git (master). +3月 06, 2025 8:11:19 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos +信息: Extracting relevant file info from https://github.com/reposense/testrepo-Beta.git (master)... +3月 06, 2025 8:11:20 下午 reposense.commits.CommitInfoExtractor extractCommitInfos +信息: Extracting commits info for https://github.com/reposense/testrepo-Beta.git (master)... +3月 06, 2025 8:11:20 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits +信息: Analyzing commits info for https://github.com/reposense/testrepo-Beta.git (master)... +3月 06, 2025 8:11:20 下午 reposense.report.ReportGenerator analyzeRepo +信息: Analysis of https://github.com/reposense/testrepo-Beta.git (master) completed! +3月 06, 2025 8:11:20 下午 reposense.report.ReportGenerator analyzeRepos +信息: [9/12] Analyzing https://github.com/reposense/testrepo-Beta.git (add-config-json)... +3月 06, 2025 8:11:21 下午 reposense.report.ReportGenerator updateRepoConfig +信息: Ignoring standalone config file in https://github.com/reposense/testrepo-Beta.git (add-config-json). +3月 06, 2025 8:11:21 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos +信息: Extracting relevant file info from https://github.com/reposense/testrepo-Beta.git (add-config-json)... +3月 06, 2025 8:11:21 下午 reposense.commits.CommitInfoExtractor extractCommitInfos +信息: Extracting commits info for https://github.com/reposense/testrepo-Beta.git (add-config-json)... +3月 06, 2025 8:11:21 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits +信息: Analyzing commits info for https://github.com/reposense/testrepo-Beta.git (add-config-json)... +3月 06, 2025 8:11:21 下午 reposense.report.ReportGenerator analyzeRepo +信息: Analysis of https://github.com/reposense/testrepo-Beta.git (add-config-json) completed! diff --git a/reposense-logs/reposense.log.0.lck b/reposense-logs/reposense.log.0.lck new file mode 100644 index 0000000000..e69de29bb2 From d2a8e2d636b26eacf4473c0b1e07dc0b689b1534 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:34:42 +0800 Subject: [PATCH 48/79] Add input for PR number --- .github/workflows/publish-preview-manual.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 3d6b009baf..d6c4f2d50d 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -2,6 +2,11 @@ name: GitHub Actions preview build manual on: workflow_dispatch: + inputs: + pr_number: + description: 'PR number' + required: true + type: string env: NODE_VER: '20.x' @@ -15,6 +20,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + ref: ref/pull/${{ github.event.inputs.pr_number }}/merge + fetch-depth: 0 - name: Set up JDK 11 uses: actions/setup-java@v3 From a775635070a1dd1db2a66471776ee110ae690ed1 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:35:52 +0800 Subject: [PATCH 49/79] Squash merge with master --- .github/workflows/publish-preview-manual.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 3d6b009baf..d6c4f2d50d 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -2,6 +2,11 @@ name: GitHub Actions preview build manual on: workflow_dispatch: + inputs: + pr_number: + description: 'PR number' + required: true + type: string env: NODE_VER: '20.x' @@ -15,6 +20,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + ref: ref/pull/${{ github.event.inputs.pr_number }}/merge + fetch-depth: 0 - name: Set up JDK 11 uses: actions/setup-java@v3 From 292a90dd2c288dfcdd48617461ffa752e9cc24a1 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:40:14 +0800 Subject: [PATCH 50/79] Modify pr fake commit name --- .github/workflows/publish-preview-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index d6c4f2d50d..376cc4fba0 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 with: - ref: ref/pull/${{ github.event.inputs.pr_number }}/merge + ref: refs/pull/${{ github.event.inputs.pr_number }}/merge fetch-depth: 0 - name: Set up JDK 11 From b8541de308f532f87bd8b236f67736a9841cfb95 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:41:32 +0800 Subject: [PATCH 51/79] Squash merge again --- .github/workflows/publish-preview-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index d6c4f2d50d..376cc4fba0 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 with: - ref: ref/pull/${{ github.event.inputs.pr_number }}/merge + ref: refs/pull/${{ github.event.inputs.pr_number }}/merge fetch-depth: 0 - name: Set up JDK 11 From d5e81df361c280e9c5507a424e34206a324a30a3 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:45:36 +0800 Subject: [PATCH 52/79] Update devOps guide --- docs/dg/devOpsGuide.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/dg/devOpsGuide.md b/docs/dg/devOpsGuide.md index 8b172194ab..0ef2010894 100644 --- a/docs/dg/devOpsGuide.md +++ b/docs/dg/devOpsGuide.md @@ -90,4 +90,6 @@ Currently, deployments are kept forever, even after the pull request is merged o ## Post-deployment test Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](ttps://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). +There is a manual action named `GitHub Actions preview build manual`. It takes in an input of the PR number and run the test on the branch referring to the PR. + The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments. From 8be1bd42f4476db70dcac141fb0b97555ad5939d Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Thu, 6 Mar 2025 20:52:46 +0800 Subject: [PATCH 53/79] Update devOps guide --- docs/dg/devOpsGuide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/dg/devOpsGuide.md b/docs/dg/devOpsGuide.md index 0ef2010894..35fe011df7 100644 --- a/docs/dg/devOpsGuide.md +++ b/docs/dg/devOpsGuide.md @@ -88,8 +88,8 @@ Currently, deployments are kept forever, even after the pull request is merged o ## Post-deployment test -Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](ttps://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). +Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](https://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). -There is a manual action named `GitHub Actions preview build manual`. It takes in an input of the PR number and run the test on the branch referring to the PR. +There is a manual action named `GitHub Actions preview build manual` using the [`publish-preview-manual.yml`](https://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview-manual.yml). It takes in an input of the PR number and run the test on the branch referring to the PR. The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments. From e384314975cdecbf8f4015eefdbf74f31f519048 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 15:31:58 +0800 Subject: [PATCH 54/79] Add setting for vite env --- .github/workflows/publish-preview-manual.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 376cc4fba0..2941907e92 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -24,6 +24,11 @@ jobs: ref: refs/pull/${{ github.event.inputs.pr_number }}/merge fetch-depth: 0 + - name: Set up Vite environment + run: | + export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" + echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Set up JDK 11 uses: actions/setup-java@v3 with: From 270643731ac4a5ecabdf210c725be539b4fd89ce Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Mon, 17 Mar 2025 15:35:53 +0800 Subject: [PATCH 55/79] Update GitHub actions (#29) --- .github/workflows/publish-preview-manual.yml | 5 +++++ docs/dg/devOpsGuide.md | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 376cc4fba0..e0334947ce 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -23,6 +23,11 @@ jobs: with: ref: refs/pull/${{ github.event.inputs.pr_number }}/merge fetch-depth: 0 + + - name: Set up Vite environment + run: | + export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" + echo "VITE_BASE_DIR: $VITE_BASE_DIR" - name: Set up JDK 11 uses: actions/setup-java@v3 diff --git a/docs/dg/devOpsGuide.md b/docs/dg/devOpsGuide.md index 8b172194ab..35fe011df7 100644 --- a/docs/dg/devOpsGuide.md +++ b/docs/dg/devOpsGuide.md @@ -88,6 +88,8 @@ Currently, deployments are kept forever, even after the pull request is merged o ## Post-deployment test -Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](ttps://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). +Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](https://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). + +There is a manual action named `GitHub Actions preview build manual` using the [`publish-preview-manual.yml`](https://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview-manual.yml). It takes in an input of the PR number and run the test on the branch referring to the PR. The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments. From 74edf854394d892c1f4a8b51e1a1546095ffb28c Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 15:38:14 +0800 Subject: [PATCH 56/79] Remove trailing spaces --- .github/workflows/publish-preview-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index e0334947ce..2941907e92 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -23,7 +23,7 @@ jobs: with: ref: refs/pull/${{ github.event.inputs.pr_number }}/merge fetch-depth: 0 - + - name: Set up Vite environment run: | export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" From 78eb4398504acabf8004050e63688d83e75882c0 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 15:52:12 +0800 Subject: [PATCH 57/79] Update test condition to test URL routing --- .github/workflows/integration.yml | 5 +++++ .github/workflows/publish-preview-manual.yml | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 96681724ee..5b768ffa43 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -64,6 +64,11 @@ jobs: restore-keys: | ${{ matrix.os }}-node- + - name: Set up Vite environment + run: | + export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" + echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Grant execute permission for gradlew if: ${{ runner.os != 'Windows' }} run: chmod +x gradlew # Windows does not need this diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 2941907e92..50a3df0f04 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -65,16 +65,18 @@ jobs: - name: Build with Gradle run: ./gradlew run - - name: Build docker container - run: | - git clone https://github.com/github/pages-gem - cd pages-gem - git checkout v232 - make image +# - name: Build docker container +# run: | +# git clone https://github.com/github/pages-gem +# cd pages-gem +# git checkout v232 +# make image - name: Run local website on action runner run: | - docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages + cd ${SITE} + bundle install + bundle exec jekyll serve env: SITE: ${{github.workspace}}/reposense-report @@ -82,7 +84,7 @@ jobs: run: sleep 10 - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/ + run: curl -L http://0.0.0.0:4000/$GITHUB_REPOSITORY - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 From 955512908530dd9f9643d163d00b1da880c1a837 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Mon, 17 Mar 2025 15:53:17 +0800 Subject: [PATCH 58/79] Update GitHub actions (#30) --- .github/workflows/integration.yml | 5 +++++ .github/workflows/publish-preview-manual.yml | 23 +++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 96681724ee..5b768ffa43 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -64,6 +64,11 @@ jobs: restore-keys: | ${{ matrix.os }}-node- + - name: Set up Vite environment + run: | + export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" + echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Grant execute permission for gradlew if: ${{ runner.os != 'Windows' }} run: chmod +x gradlew # Windows does not need this diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index e0334947ce..995937bce5 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -29,6 +29,11 @@ jobs: export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Set up Vite environment + run: | + export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" + echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Set up JDK 11 uses: actions/setup-java@v3 with: @@ -65,16 +70,18 @@ jobs: - name: Build with Gradle run: ./gradlew run - - name: Build docker container - run: | - git clone https://github.com/github/pages-gem - cd pages-gem - git checkout v232 - make image +# - name: Build docker container +# run: | +# git clone https://github.com/github/pages-gem +# cd pages-gem +# git checkout v232 +# make image - name: Run local website on action runner run: | - docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages + cd ${SITE} + bundle install + bundle exec jekyll serve env: SITE: ${{github.workspace}}/reposense-report @@ -82,7 +89,7 @@ jobs: run: sleep 10 - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/ + run: curl -L http://0.0.0.0:4000/$GITHUB_REPOSITORY - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 From fa170bcd2a55af09c6c00b52abedac8eecafa52e Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 20:26:56 +0800 Subject: [PATCH 59/79] Install bundler --- .github/workflows/publish-preview-manual.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 50a3df0f04..3b85d311e8 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -74,6 +74,7 @@ jobs: - name: Run local website on action runner run: | + gem install bundler cd ${SITE} bundle install bundle exec jekyll serve From 6c499e35e1be026e15a747b5f02b140961029b91 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 20:29:12 +0800 Subject: [PATCH 60/79] Update deployed URL --- .github/workflows/publish-preview-manual.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 3b85d311e8..19ef36fb25 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -85,12 +85,12 @@ jobs: run: sleep 10 - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/$GITHUB_REPOSITORY + run: curl -L http://0.0.0.0:4000/$(basename $GITHUB_REPOSITORY) - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: http://0.0.0.0:4000/ + urls: http://0.0.0.0:4000/$(basename $GITHUB_REPOSITORY) uploadArtifacts: true - name: Display Lighthouse summary From cb289a0adb1e1109a2b83962450583b62a513f40 Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Mon, 17 Mar 2025 20:31:09 +0800 Subject: [PATCH 61/79] Update GitHub actions (#31) --- .github/workflows/publish-preview-manual.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 995937bce5..6231552fef 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -34,6 +34,11 @@ jobs: export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Set up Vite environment + run: | + export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" + echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Set up JDK 11 uses: actions/setup-java@v3 with: @@ -79,6 +84,7 @@ jobs: - name: Run local website on action runner run: | + gem install bundler cd ${SITE} bundle install bundle exec jekyll serve @@ -89,12 +95,13 @@ jobs: run: sleep 10 - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/$GITHUB_REPOSITORY + run: curl -L http://0.0.0.0:4000/$(basename $GITHUB_REPOSITORY) + - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: http://0.0.0.0:4000/ + urls: http://0.0.0.0:4000/$(basename $GITHUB_REPOSITORY) uploadArtifacts: true - name: Display Lighthouse summary From 67237385649b475a4ab06babdcaaa624c2268313 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 20:37:41 +0800 Subject: [PATCH 62/79] Remove wrong command to set up environment of Vite --- .github/workflows/integration.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5b768ffa43..96681724ee 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -64,11 +64,6 @@ jobs: restore-keys: | ${{ matrix.os }}-node- - - name: Set up Vite environment - run: | - export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" - echo "VITE_BASE_DIR: $VITE_BASE_DIR" - - name: Grant execute permission for gradlew if: ${{ runner.os != 'Windows' }} run: chmod +x gradlew # Windows does not need this From 9793aeb081d5df04bdc259c598992df1f972a162 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 20:39:39 +0800 Subject: [PATCH 63/79] Remove wrong command to set up environment of Vite --- .github/workflows/integration.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5b768ffa43..96681724ee 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -64,11 +64,6 @@ jobs: restore-keys: | ${{ matrix.os }}-node- - - name: Set up Vite environment - run: | - export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" - echo "VITE_BASE_DIR: $VITE_BASE_DIR" - - name: Grant execute permission for gradlew if: ${{ runner.os != 'Windows' }} run: chmod +x gradlew # Windows does not need this From 8b3b9f11b3bec8953161b4fee4ed7aa7be94122a Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 20:47:00 +0800 Subject: [PATCH 64/79] Remove redundant vite setup --- .github/workflows/publish-preview-manual.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 6231552fef..61401a94a0 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -29,16 +29,6 @@ jobs: export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" echo "VITE_BASE_DIR: $VITE_BASE_DIR" - - name: Set up Vite environment - run: | - export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" - echo "VITE_BASE_DIR: $VITE_BASE_DIR" - - - name: Set up Vite environment - run: | - export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" - echo "VITE_BASE_DIR: $VITE_BASE_DIR" - - name: Set up JDK 11 uses: actions/setup-java@v3 with: From d17e71dcc380c59436a62505d6b791987fabe222 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 20:47:52 +0800 Subject: [PATCH 65/79] Initialize ruby environment --- .github/workflows/publish-preview-manual.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 36b9102e00..cba9f8e724 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -24,6 +24,11 @@ jobs: ref: refs/pull/${{ github.event.inputs.pr_number }}/merge fetch-depth: 0 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + - name: Set up Vite environment run: | export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" From b9fde3c4aab693fc7a7bc14815f0467a827c67ff Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 20:49:30 +0800 Subject: [PATCH 66/79] Set up vite environment variable --- .github/workflows/publish-preview-manual.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 2d50a93d3d..cba9f8e724 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -29,6 +29,11 @@ jobs: with: ruby-version: '3.2' + - name: Set up Vite environment + run: | + export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" + echo "VITE_BASE_DIR: $VITE_BASE_DIR" + - name: Set up JDK 11 uses: actions/setup-java@v3 with: From ef817d1820ef1b5566d5a1da27aae45198ce4023 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:00:39 +0800 Subject: [PATCH 67/79] Add gemfile --- .github/workflows/publish-preview-manual.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index cba9f8e724..120f2c4c12 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -29,6 +29,12 @@ jobs: with: ruby-version: '3.2' + - name: Initialize Jekyll site + run: | + jekyll new --skip-bundle ${{ github.workspace }}/reposense-report + env: + JEKYLL_ENV: production + - name: Set up Vite environment run: | export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" @@ -70,13 +76,6 @@ jobs: - name: Build with Gradle run: ./gradlew run -# - name: Build docker container -# run: | -# git clone https://github.com/github/pages-gem -# cd pages-gem -# git checkout v232 -# make image - - name: Run local website on action runner run: | gem install bundler From 1f271e55a3f1c05dfa6a1aecc26cbe8243a497c7 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:05:58 +0800 Subject: [PATCH 68/79] Install jekyll --- .github/workflows/publish-preview-manual.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 120f2c4c12..cc68b78fa3 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -29,6 +29,9 @@ jobs: with: ruby-version: '3.2' + - name: Install Jekyll + run: gem install jekyll + - name: Initialize Jekyll site run: | jekyll new --skip-bundle ${{ github.workspace }}/reposense-report From e1e406a151c9bcf307746d9a92eaedde9861fdd5 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:13:35 +0800 Subject: [PATCH 69/79] Add detach flag --- .github/workflows/publish-preview-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index cc68b78fa3..99a6073010 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -84,7 +84,7 @@ jobs: gem install bundler cd ${SITE} bundle install - bundle exec jekyll serve + bundle exec jekyll serve --detach env: SITE: ${{github.workspace}}/reposense-report From 03c5a3cf20abfb03454c11493fea773f61f7ec80 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:25:58 +0800 Subject: [PATCH 70/79] Modify published paths --- .github/workflows/publish-preview-manual.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 99a6073010..8c2fc45c53 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -92,13 +92,13 @@ jobs: run: sleep 10 - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/$(basename $GITHUB_REPOSITORY) + run: curl -L http://0.0.0.0:4000/$VITE_BASE_DIR - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: http://0.0.0.0:4000/$(basename $GITHUB_REPOSITORY) + urls: http://0.0.0.0:4000/$VITE_BASE_DIR uploadArtifacts: true - name: Display Lighthouse summary From 2b3c44cc97e4b326d8ed5d583e16cbebcf2c32a1 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:34:30 +0800 Subject: [PATCH 71/79] Update correct URL for lighthouse ci --- .github/workflows/publish-preview-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 8c2fc45c53..17df2d24c4 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -98,7 +98,7 @@ jobs: - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: http://0.0.0.0:4000/$VITE_BASE_DIR + urls: http://0.0.0.0:4000/${VITE_BASE_DIR} uploadArtifacts: true - name: Display Lighthouse summary From c10b849782baf7eeb61299c7a1b4f835dca84ab2 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:42:35 +0800 Subject: [PATCH 72/79] Update URL again --- .github/workflows/publish-preview-manual.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 17df2d24c4..7e6a9c9114 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -94,11 +94,10 @@ jobs: - name: Test connection to deployed website run: curl -L http://0.0.0.0:4000/$VITE_BASE_DIR - - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 with: - urls: http://0.0.0.0:4000/${VITE_BASE_DIR} + urls: http://0.0.0.0:4000/${{ env.VITE_BASE_DIR }} uploadArtifacts: true - name: Display Lighthouse summary From a8b66e6973cd043129bbebdc9a5e95d6a3d2050d Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:58:46 +0800 Subject: [PATCH 73/79] Remove trailing whitespaces --- .github/workflows/publish-preview-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 7e6a9c9114..20675e0a66 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -81,7 +81,7 @@ jobs: - name: Run local website on action runner run: | - gem install bundler + gem install bundler cd ${SITE} bundle install bundle exec jekyll serve --detach From 09ba696aeee4b3cc00d4e2052dcb76a454ce68b0 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 17 Mar 2025 21:59:46 +0800 Subject: [PATCH 74/79] Remove reposense log --- reposense-logs/reposense.log.0 | 210 ----------------------------- reposense-logs/reposense.log.0.lck | 0 2 files changed, 210 deletions(-) delete mode 100644 reposense-logs/reposense.log.0 delete mode 100644 reposense-logs/reposense.log.0.lck diff --git a/reposense-logs/reposense.log.0 b/reposense-logs/reposense.log.0 deleted file mode 100644 index 557468aba3..0000000000 --- a/reposense-logs/reposense.log.0 +++ /dev/null @@ -1,210 +0,0 @@ -3月 06, 2025 8:11:11 下午 reposense.system.LogsManager addFileHandler -信息: Log temp folder has been successfully created -3月 06, 2025 8:11:11 下午 reposense.parser.ArgsParser parse -信息: Config path not provided, using the config folder as default. -3月 06, 2025 8:11:11 下午 reposense.parser.BlurbMarkdownParser parse -信息: Parsing Blurbs... -3月 06, 2025 8:11:11 下午 reposense.parser.BlurbMarkdownParser parse -信息: Blurbs parsed successfully! -3月 06, 2025 8:11:11 下午 reposense.parser.CsvParser validateHeader -信息: Parsed header of CSV file, repo-config.csv, and recognized columns: Ignore Standalone Config, Repository's Location, Branch, Shallow Cloning, File formats, Ignore Glob List, Ignore Authors List, Find Previous Authors, Since Date, Ignore Commits List, Until Date -3月 06, 2025 8:11:11 下午 reposense.parser.CsvParser validateHeader -信息: Parsed header of CSV file, author-config.csv, and recognized columns: Author's Emails, Repository's Location, Branch, Author's Git Host ID, Author's Display Name, Ignore Glob List, Author's Git Author Name -3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases -警告: Duplicate alias skyblaise found. The alias will belong to the last author - skyblaise -3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases -警告: Duplicate alias luo zhijie found. The alias will belong to the last author - luozhijie-tom -3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases -警告: Duplicate alias skyblaise found. The alias will belong to the last author - skyblaise -3月 06, 2025 8:11:11 下午 reposense.model.AuthorConfiguration checkDuplicateAliases -警告: Duplicate alias luo zhijie found. The alias will belong to the last author - luozhijie-tom -3月 06, 2025 8:11:11 下午 reposense.parser.CsvParser validateHeader -信息: Parsed header of CSV file, group-config.csv, and recognized columns: Globs, Repository's Location, Group Name -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://bitbucket.org/skyblaise/testrepo-bitbucket.git... -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://github.com/reposense/RepoSense.git... -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://github.com/reposense/testrepo-Delta.git... -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code... -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code to complete... -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://github.com/reposense/RepoSense.git to complete... -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://github.com/reposense/testrepo-Delta.git to complete... -3月 06, 2025 8:11:11 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://bitbucket.org/skyblaise/testrepo-bitbucket.git to complete... -3月 06, 2025 8:11:13 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Cloning of https://bitbucket.org/skyblaise/testrepo-bitbucket.git completed! -3月 06, 2025 8:11:13 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://github.com/reposense/testrepo-Alpha.git... -3月 06, 2025 8:11:13 下午 reposense.report.ReportGenerator analyzeRepos -信息: [1/12] Analyzing https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... -3月 06, 2025 8:11:13 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://github.com/reposense/testrepo-Alpha.git to complete... -3月 06, 2025 8:11:14 下午 reposense.report.ReportGenerator updateRepoConfig -信息: https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master) does not contain a standalone config file. -3月 06, 2025 8:11:14 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos -信息: Extracting relevant file info from https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... -3月 06, 2025 8:11:14 下午 reposense.commits.CommitInfoExtractor extractCommitInfos -信息: Extracting commits info for https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... -3月 06, 2025 8:11:14 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits -信息: Analyzing commits info for https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master)... -3月 06, 2025 8:11:14 下午 reposense.report.ReportGenerator analyzeRepo -信息: Analysis of https://bitbucket.org/skyblaise/testrepo-bitbucket.git (master) completed! -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Cloning of https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code completed! -3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator analyzeRepos -信息: [2/12] Analyzing https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://github.com/reposense/testrepo-Empty.git... -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://github.com/reposense/testrepo-Empty.git to complete... -3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator updateRepoConfig -信息: https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master) does not contain a standalone config file. -3月 06, 2025 8:11:15 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos -信息: Extracting relevant file info from https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Cloning of https://github.com/reposense/testrepo-Alpha.git completed! -3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator analyzeRepos -信息: [3/12] Analyzing https://github.com/reposense/testrepo-Alpha.git (master)... -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner spawnCloneProcess -警告: Exception met while trying to clone the repo "reposense/RepoSense[master]", will skip this repo. -java.io.IOException: Fail to delete directory repos\reposense_RepoSense\RepoSense_bare\objects\pack - at reposense.util.FileUtil.deleteDirectory(FileUtil.java:162) - at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) - at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) - at reposense.report.RepoCloner.spawnCloneProcess(RepoCloner.java:171) - at reposense.report.RepoCloner.cloneBare(RepoCloner.java:82) - at reposense.report.ReportGenerator.cloneRepo(ReportGenerator.java:275) - at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$0(ReportGenerator.java:219) - at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) - at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) - at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) - at java.base/java.lang.Thread.run(Thread.java:834) - -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://gitlab.com/reposense/testrepo-gitlab.git... -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner deleteDirectory -警告: Error deleting report directory. -java.io.IOException: Fail to delete directory repos\reposense_RepoSense\RepoSense_bare\objects\pack - at reposense.util.FileUtil.deleteDirectory(FileUtil.java:162) - at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) - at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) - at reposense.util.FileUtil.deleteDirectory(FileUtil.java:155) - at reposense.report.RepoCloner.deleteDirectory(RepoCloner.java:352) - at reposense.report.RepoCloner.cleanupRepo(RepoCloner.java:151) - at reposense.report.ReportGenerator.analyzeRepos(ReportGenerator.java:304) - at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$1(ReportGenerator.java:226) - at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642) - at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) - at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) - at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) - at java.base/java.lang.Thread.run(Thread.java:834) - -3月 06, 2025 8:11:15 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://gitlab.com/reposense/testrepo-gitlab.git to complete... -3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator updateRepoConfig -警告: The provided commit hash, , contains illegal characters. Ignoring the config provided by https://github.com/reposense/testrepo-Alpha.git (master). -3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator updateAuthorList -信息: https://github.com/reposense/testrepo-Alpha.git (master) has no authors specified, using all authors by default. -3月 06, 2025 8:11:15 下午 reposense.report.ReportGenerator analyzeRepos -警告: No authors found with commits for https://github.com/reposense/testrepo-Alpha.git (master). -3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Cloning of https://github.com/reposense/testrepo-Empty.git completed! -3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner getClonedRepoLocation -警告: Exception met while trying to get current branch of https://github.com/reposense/testrepo-Empty.git (master), will skip this repo. -reposense.git.exception.GitBranchException: Index 1 out of bounds for length 1 - at reposense.git.GitBranch.getCurrentBranch(GitBranch.java:29) - at reposense.report.RepoCloner.getClonedRepoLocation(RepoCloner.java:133) - at reposense.report.ReportGenerator.cloneRepo(ReportGenerator.java:276) - at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$0(ReportGenerator.java:219) - at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) - at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) - at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) - at java.base/java.lang.Thread.run(Thread.java:834) - -3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner spawnCloneProcess -信息: Cloning in parallel from https://github.com/reposense/testrepo-Beta.git... -3月 06, 2025 8:11:16 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Waiting for cloning of https://github.com/reposense/testrepo-Beta.git to complete... -3月 06, 2025 8:11:17 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Cloning of https://gitlab.com/reposense/testrepo-gitlab.git completed! -3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepos -信息: [4/12] Analyzing https://gitlab.com/reposense/testrepo-gitlab.git (main)... -3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator updateRepoConfig -信息: https://gitlab.com/reposense/testrepo-gitlab.git (main) does not contain a standalone config file. -3月 06, 2025 8:11:17 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos -信息: Extracting relevant file info from https://gitlab.com/reposense/testrepo-gitlab.git (main)... -3月 06, 2025 8:11:17 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Cloning of https://github.com/reposense/testrepo-Delta.git completed! -3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepos -信息: [5/12] Analyzing https://github.com/reposense/testrepo-Delta.git (master)... -3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoExtractor extractCommitInfos -信息: Extracting commits info for https://gitlab.com/reposense/testrepo-gitlab.git (main)... -3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits -信息: Analyzing commits info for https://gitlab.com/reposense/testrepo-gitlab.git (main)... -3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepo -信息: Analysis of https://gitlab.com/reposense/testrepo-gitlab.git (main) completed! -3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoExtractor extractCommitInfos -信息: Extracting commits info for https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... -3月 06, 2025 8:11:17 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits -信息: Analyzing commits info for https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master)... -3月 06, 2025 8:11:17 下午 reposense.report.ReportGenerator analyzeRepo -信息: Analysis of https://tomluozhijie@git.code.sf.net/p/repo-sense-test-repo/code (master) completed! -3月 06, 2025 8:11:17 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos -信息: Extracting relevant file info from https://github.com/reposense/testrepo-Delta.git (master)... -3月 06, 2025 8:11:18 下午 reposense.commits.CommitInfoExtractor extractCommitInfos -信息: Extracting commits info for https://github.com/reposense/testrepo-Delta.git (master)... -3月 06, 2025 8:11:18 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits -信息: Analyzing commits info for https://github.com/reposense/testrepo-Delta.git (master)... -3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepo -信息: Analysis of https://github.com/reposense/testrepo-Delta.git (master) completed! -3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepos -信息: [6/12] Analyzing https://github.com/reposense/testrepo-Delta.git (nonExistentBranch)... -3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepos -严重: Branch nonExistentBranch does not exist in https://github.com/reposense/testrepo-Delta.git! Analysis terminated. -reposense.git.exception.GitBranchException: reposense.system.CommandRunnerProcessException: Error returned from command git rev-parse --verify nonExistentBranch on path repos\reposense_testrepo-Delta\testrepo-Delta_bare : -fatal: Needed a single revision - - at reposense.git.GitRevParse.assertBranchExists(GitRevParse.java:24) - at reposense.report.ReportGenerator.analyzeRepos(ReportGenerator.java:317) - at reposense.report.ReportGenerator.lambda$cloneAndAnalyzeRepos$1(ReportGenerator.java:226) - at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642) - at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) - at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) - at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) - at java.base/java.lang.Thread.run(Thread.java:834) - -3月 06, 2025 8:11:18 下午 reposense.report.ReportGenerator analyzeRepos -信息: [7/12] Analyzing https://github.com/reposense/testrepo-Delta.git (add-binary-file)... -3月 06, 2025 8:11:19 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos -信息: Extracting relevant file info from https://github.com/reposense/testrepo-Delta.git (add-binary-file)... -3月 06, 2025 8:11:19 下午 reposense.report.RepoCloner waitForCloneProcess -信息: Cloning of https://github.com/reposense/testrepo-Beta.git completed! -3月 06, 2025 8:11:19 下午 reposense.report.ReportGenerator analyzeRepos -信息: [8/12] Analyzing https://github.com/reposense/testrepo-Beta.git (master)... -3月 06, 2025 8:11:19 下午 reposense.report.ReportGenerator updateRepoConfig -信息: Ignoring standalone config file in https://github.com/reposense/testrepo-Beta.git (master). -3月 06, 2025 8:11:19 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos -信息: Extracting relevant file info from https://github.com/reposense/testrepo-Beta.git (master)... -3月 06, 2025 8:11:20 下午 reposense.commits.CommitInfoExtractor extractCommitInfos -信息: Extracting commits info for https://github.com/reposense/testrepo-Beta.git (master)... -3月 06, 2025 8:11:20 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits -信息: Analyzing commits info for https://github.com/reposense/testrepo-Beta.git (master)... -3月 06, 2025 8:11:20 下午 reposense.report.ReportGenerator analyzeRepo -信息: Analysis of https://github.com/reposense/testrepo-Beta.git (master) completed! -3月 06, 2025 8:11:20 下午 reposense.report.ReportGenerator analyzeRepos -信息: [9/12] Analyzing https://github.com/reposense/testrepo-Beta.git (add-config-json)... -3月 06, 2025 8:11:21 下午 reposense.report.ReportGenerator updateRepoConfig -信息: Ignoring standalone config file in https://github.com/reposense/testrepo-Beta.git (add-config-json). -3月 06, 2025 8:11:21 下午 reposense.authorship.FileInfoExtractor extractTextFileInfos -信息: Extracting relevant file info from https://github.com/reposense/testrepo-Beta.git (add-config-json)... -3月 06, 2025 8:11:21 下午 reposense.commits.CommitInfoExtractor extractCommitInfos -信息: Extracting commits info for https://github.com/reposense/testrepo-Beta.git (add-config-json)... -3月 06, 2025 8:11:21 下午 reposense.commits.CommitInfoAnalyzer analyzeCommits -信息: Analyzing commits info for https://github.com/reposense/testrepo-Beta.git (add-config-json)... -3月 06, 2025 8:11:21 下午 reposense.report.ReportGenerator analyzeRepo -信息: Analysis of https://github.com/reposense/testrepo-Beta.git (add-config-json) completed! diff --git a/reposense-logs/reposense.log.0.lck b/reposense-logs/reposense.log.0.lck deleted file mode 100644 index e69de29bb2..0000000000 From 64851a7b35a37e47310e040b7a0cb37d9fbb213f Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Mon, 24 Mar 2025 13:19:58 +0800 Subject: [PATCH 75/79] Update URLs --- .github/workflows/publish-preview-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml index 20675e0a66..602b702762 100644 --- a/.github/workflows/publish-preview-manual.yml +++ b/.github/workflows/publish-preview-manual.yml @@ -92,7 +92,7 @@ jobs: run: sleep 10 - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/$VITE_BASE_DIR + run: curl -L http://0.0.0.0:4000/${{ env.VITE_BASE_DIR }} - name: Test deployed web page uses: treosh/lighthouse-ci-action@v12 From 32123e47c00e776b257e0937f44040930fffa968 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sat, 19 Apr 2025 07:34:44 +0800 Subject: [PATCH 76/79] Update reference --- docs/ug/configFiles.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/ug/configFiles.md b/docs/ug/configFiles.md index 44fda5c4fe..831bb4d053 100644 --- a/docs/ug/configFiles.md +++ b/docs/ug/configFiles.md @@ -268,6 +268,8 @@ Note: Symbols such as `"`, `!`, `/` etc. in your author name will be omitted, wh You can optionally use blurbs markdown files to add blurbs in Markdown syntax for repository branches or authors. ### `repo-blurbs.md` +
+ This file allows you to specify blurbs for repository branches. These blurbs will be displayed when grouping by `Repo/Branch`. **Format**: @@ -275,8 +277,11 @@ This file allows you to specify blurbs for repository branches. These blurbs wil * Second line onwards: Blurb content. * Delimiter: ``. Everything on the line after the delimiter will be ignored. * Sample: [repo-blurbs.md](https://github.com/reposense/RepoSense/blob/master/docs/ug/repo-blurbs.md) +
### `author-blurbs.md` +
+ This file allows you to specify blurbs for authors. These blurbs will be displayed when grouping by `Author`. **Format**: @@ -284,5 +289,5 @@ This file allows you to specify blurbs for authors. These blurbs will be display * Second line onwards: Blurb content. * Delimiter: ``. Everything on the line after the delimiter will be ignored. * Sample: [author-blurbs.md](https://github.com/reposense/RepoSense/blob/master/docs/ug/author-blurbs.md) -
+ From 311042285f59e1f8453fd64b3582d647037d885d Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Sat, 19 Apr 2025 07:37:11 +0800 Subject: [PATCH 77/79] Delete .github/workflows/publish-preview-manual.yml --- .github/workflows/publish-preview-manual.yml | 104 ------------------- 1 file changed, 104 deletions(-) delete mode 100644 .github/workflows/publish-preview-manual.yml diff --git a/.github/workflows/publish-preview-manual.yml b/.github/workflows/publish-preview-manual.yml deleted file mode 100644 index 602b702762..0000000000 --- a/.github/workflows/publish-preview-manual.yml +++ /dev/null @@ -1,104 +0,0 @@ -name: GitHub Actions preview build manual - -on: - workflow_dispatch: - inputs: - pr_number: - description: 'PR number' - required: true - type: string - -env: - NODE_VER: '20.x' - JAVA_DISTRIBUTION: 'zulu' - JAVA_VER: 11 - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - ref: refs/pull/${{ github.event.inputs.pr_number }}/merge - fetch-depth: 0 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.2' - - - name: Install Jekyll - run: gem install jekyll - - - name: Initialize Jekyll site - run: | - jekyll new --skip-bundle ${{ github.workspace }}/reposense-report - env: - JEKYLL_ENV: production - - - name: Set up Vite environment - run: | - export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)" - echo "VITE_BASE_DIR: $VITE_BASE_DIR" - - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - distribution: ${{ env.JAVA_DISTRIBUTION }} - java-version: ${{ env.JAVA_VER }} - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ env.NODE_VER }} - - - name: Set up Gradle caching - uses: actions/cache@v3 - with: - path: | - $HOME/.gradle/caches - $HOME/.gradle/wrapper - key: ${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ matrix.os }}-gradle- - - - name: Set up Node caching - uses: actions/cache@v3 - with: - path: $HOME/.npm - key: ${{ matrix.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ matrix.os }}-node- - - - name: Grant execute permission for gradlew - if: ${{ runner.os != 'Windows' }} - run: chmod +x gradlew - - - name: Build with Gradle - run: ./gradlew run - - - name: Run local website on action runner - run: | - gem install bundler - cd ${SITE} - bundle install - bundle exec jekyll serve --detach - env: - SITE: ${{github.workspace}}/reposense-report - - - name: Wait for the service to start - run: sleep 10 - - - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/${{ env.VITE_BASE_DIR }} - - - name: Test deployed web page - uses: treosh/lighthouse-ci-action@v12 - with: - urls: http://0.0.0.0:4000/${{ env.VITE_BASE_DIR }} - uploadArtifacts: true - - - name: Display Lighthouse summary - run: cat .lighthouseci/manifest.json | jq '.' From 13434400a25ca1365bf9ffcc7024971290c46f9a Mon Sep 17 00:00:00 2001 From: CHEN YIXUN <138369841+CYX22222003@users.noreply.github.com> Date: Sat, 19 Apr 2025 07:37:28 +0800 Subject: [PATCH 78/79] Delete .github/workflows/publish-preview.yml --- .github/workflows/publish-preview.yml | 58 --------------------------- 1 file changed, 58 deletions(-) delete mode 100644 .github/workflows/publish-preview.yml diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml deleted file mode 100644 index fe256c5408..0000000000 --- a/.github/workflows/publish-preview.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: GitHub Actions build preview - -concurrency: - group: publish_reposense_preview - cancel-in-progress: false - -on: - workflow_run: - workflows: ["Continuous Integration"] - types: - - completed - -jobs: - deploy: - name: deploy to github action - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Download deployment artifacts - uses: dawidd6/action-download-artifact@v6 - with: - workflow: integration.yml - run_id: ${{ github.event.workflow_run.id }} - name: reposense-deployment - path: . - - - name: Build docker container - run: | - git clone https://github.com/github/pages-gem - cd pages-gem - git checkout v232 - make image - - - name: Run local website on action runner - run: | - docker run --rm -d -p 4000:4000 -v ${SITE}:/src/site gh-pages - env: - SITE: ${{github.workspace}}/reposense-report - - - name: Wait for the service to start - run: sleep 10 - - - name: Test connection to deployed website - run: curl -L http://0.0.0.0:4000/ - - - name: Test deployed web page - uses: treosh/lighthouse-ci-action@v12 - with: - urls: http://0.0.0.0:4000/ - uploadArtifacts: true - - - name: Display Lighthouse summary - run: cat .lighthouseci/manifest.json | jq '.' - From d98e8baad11e41dad366ee917c2836c4cbc6ca11 Mon Sep 17 00:00:00 2001 From: CYX22222003 Date: Sat, 19 Apr 2025 07:38:03 +0800 Subject: [PATCH 79/79] Undone change in devOps guide --- docs/dg/devOpsGuide.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/dg/devOpsGuide.md b/docs/dg/devOpsGuide.md index ad4599333d..3699c85779 100644 --- a/docs/dg/devOpsGuide.md +++ b/docs/dg/devOpsGuide.md @@ -84,12 +84,3 @@ For authentication, two secrets are stored and used in GitHub Actions: The `surge` command automatically detects the existence of these two environment variables and use them for authentication when deploying the RepoSense report and documentation build previews. Currently, deployments are kept forever, even after the pull request is merged or closed. There is currently no existing functionality to automatically clean up deployments after they are no longer useful. - - - -## Post-deployment test -Publish-RepoSense is our default tool for deploying RepoSense reports. We have automated the testing of deployments via this tool before each merge to strengthen our CI/CD processes. This is automatically performed by the job "GitHub Actions build preview" using the [`publish-preview.yml`](https://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview.yml). - -There is a manual action named `GitHub Actions preview build manual` using the [`publish-preview-manual.yml`](https://github.com/reposense/RepoSense/blob/master/config/gh-actions/publish-preview-manual.yml). It takes in an input of the PR number and run the test on the branch referring to the PR. - -The action will simulate a `jekyll build` environment using docker container on the GitHub action runner and audit the webpage using `lighthoucse-ci`, detecting potential issues in rendering the dashboard in actual github environments.