From cb935d2214ca174bdb2b86df5add8ac16c6a3f9d Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Sun, 5 Jul 2026 19:08:57 +0200 Subject: [PATCH 1/8] ci: Test with persistent-token to false in checkout action Signed-off-by: Mahendra Paipuri --- .github/workflows/step_tests-unit.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/step_tests-unit.yml b/.github/workflows/step_tests-unit.yml index dd431e2c..bfb0ae62 100644 --- a/.github/workflows/step_tests-unit.yml +++ b/.github/workflows/step_tests-unit.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v7 + with: + persist-credentials: false - name: Install Go uses: actions/setup-go@v6 @@ -80,13 +82,13 @@ jobs: # to push the changes to remote - uses: actions/create-github-app-token@v3 id: app-token - if: steps.verify-changed-files.outputs.files_changed == 'true' && github.ref == 'refs/heads/main' + if: steps.verify-changed-files.outputs.files_changed == 'true' with: client-id: 4221824 private-key: ${{ secrets.app_private_key }} - name: Commit changes - if: steps.verify-changed-files.outputs.files_changed == 'true' && github.ref == 'refs/heads/main' + if: steps.verify-changed-files.outputs.files_changed == 'true' run: | git config --local user.email "bot@ceems.com" git config --local user.name "CEEMS Bot" @@ -94,8 +96,8 @@ jobs: git commit -m "chore: Updated coverage badge" -s - name: Push changes - if: steps.verify-changed-files.outputs.files_changed == 'true' && github.ref == 'refs/heads/main' + if: steps.verify-changed-files.outputs.files_changed == 'true' uses: ad-m/github-push-action@master with: github_token: ${{ steps.app-token.outputs.token }} - branch: ${{ github.head_ref }} + branch: ${{ github.ref }} From c2a592ec62ca72455e23cb5cfbb146048ebdb801 Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Sun, 5 Jul 2026 19:17:45 +0200 Subject: [PATCH 2/8] More debugging Signed-off-by: Mahendra Paipuri --- .github/workflows/step_tests-unit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/step_tests-unit.yml b/.github/workflows/step_tests-unit.yml index bfb0ae62..303c4678 100644 --- a/.github/workflows/step_tests-unit.yml +++ b/.github/workflows/step_tests-unit.yml @@ -16,6 +16,7 @@ jobs: uses: actions/checkout@v7 with: persist-credentials: false + ref: ${{ github.ref }} - name: Install Go uses: actions/setup-go@v6 From b7190705b159b35752fb3be349fb37cd67f16643 Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Sun, 5 Jul 2026 19:26:09 +0200 Subject: [PATCH 3/8] Debug Signed-off-by: Mahendra Paipuri --- .github/workflows/step_tests-unit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/step_tests-unit.yml b/.github/workflows/step_tests-unit.yml index 303c4678..bcf192ab 100644 --- a/.github/workflows/step_tests-unit.yml +++ b/.github/workflows/step_tests-unit.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v7 with: persist-credentials: false - ref: ${{ github.ref }} + ref: ${{ github.event.pull_request.head.ref }} - name: Install Go uses: actions/setup-go@v6 From fc3667ace7528c32bf5cabff827ba94666670547 Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Sun, 5 Jul 2026 19:34:22 +0200 Subject: [PATCH 4/8] Debug Signed-off-by: Mahendra Paipuri --- .github/workflows/step_tests-unit.yml | 79 ++++++++++++++------------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/.github/workflows/step_tests-unit.yml b/.github/workflows/step_tests-unit.yml index bcf192ab..3ba19b54 100644 --- a/.github/workflows/step_tests-unit.yml +++ b/.github/workflows/step_tests-unit.yml @@ -18,58 +18,59 @@ jobs: persist-credentials: false ref: ${{ github.event.pull_request.head.ref }} - - name: Install Go - uses: actions/setup-go@v6 - with: - go-version: 1.26.x + # - name: Install Go + # uses: actions/setup-go@v6 + # with: + # go-version: 1.26.x - - name: Setup clang - run: ./scripts/install_clang.sh + # - name: Setup clang + # run: ./scripts/install_clang.sh - - name: Run checkmetrics, checkrules and checkbpf - run: make checkmetrics checkrules checkbpf + # - name: Run checkmetrics, checkrules and checkbpf + # run: make checkmetrics checkrules checkbpf - - name: Run unit tests for Go packages - run: make test + # - name: Run unit tests for Go packages + # run: make test - - name: Run unit tests for CGo packages - run: CGO_APPS=1 make test + # - name: Run unit tests for CGo packages + # run: CGO_APPS=1 make test - - name: Merge coverage files - run: | - # Make global coverage report - make coverage + # - name: Merge coverage files + # run: | + # # Make global coverage report + # make coverage - # Remove testdata that contains too many files - rm -rf pkg/collector/testdata + # # Remove testdata that contains too many files + # rm -rf pkg/collector/testdata - # Upstream package will not keep the format of README - # PR -> https://github.com/AlexBeauchemin/gobadge/pull/7 - # - name: Go Coverage Badge # Pass the `coverage.out` output to this action - # uses: tj-actions/coverage-badge-go@v2 - # with: - # filename: coverage.out - # link: https://github.com/mahendrapaipuri/ceems/actions/workflows/ci.yml?query=branch%3Amain + # # Upstream package will not keep the format of README + # # PR -> https://github.com/AlexBeauchemin/gobadge/pull/7 + # # - name: Go Coverage Badge # Pass the `coverage.out` output to this action + # # uses: tj-actions/coverage-badge-go@v2 + # # with: + # # filename: coverage.out + # # link: https://github.com/mahendrapaipuri/ceems/actions/workflows/ci.yml?query=branch%3Amain - - name: Go coverage badge - run: | - # Install our custom badge updater - git clone https://github.com/mahendrapaipuri/gobadge - cd gobadge - go install . - cd .. + # - name: Go coverage badge + # run: | + # # Install our custom badge updater + # git clone https://github.com/mahendrapaipuri/gobadge + # cd gobadge + # go install . + # cd .. - # Create/Update badge - gobadge -target README.md -filename coverage.out -link https://github.com/ceems-dev/ceems/actions/workflows/ci.yml?query=branch%3Amain - gobadge -target website/docs/00-introduction.md -filename coverage.out -link https://github.com/ceems-dev/ceems/actions/workflows/ci.yml?query=branch%3Amain + # # Create/Update badge + # gobadge -target README.md -filename coverage.out -link https://github.com/ceems-dev/ceems/actions/workflows/ci.yml?query=branch%3Amain + # gobadge -target website/docs/00-introduction.md -filename coverage.out -link https://github.com/ceems-dev/ceems/actions/workflows/ci.yml?query=branch%3Amain - # Check diff on README - git diff README.md - git diff website/docs/00-introduction.md + # # Check diff on README + # git diff README.md + # git diff website/docs/00-introduction.md - name: Verify Changed files id: verify-changed-files run: | + echo "test" >> README.md # If there are no changes exit code will be 0 and 1 if there are changes if git diff --exit-code README.md website/docs/00-introduction.md > /dev/null; then echo "files_changed=false" >> $GITHUB_OUTPUT @@ -101,4 +102,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ steps.app-token.outputs.token }} - branch: ${{ github.ref }} + branch: ${{ github.event.pull_request.head.ref }} From ab47c2236dde93ba79442bb50debcef8c1d6a825 Mon Sep 17 00:00:00 2001 From: CEEMS Bot Date: Sun, 5 Jul 2026 17:34:59 +0000 Subject: [PATCH 5/8] chore: Updated coverage badge Signed-off-by: CEEMS Bot --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 82b47542..ac428e62 100644 --- a/README.md +++ b/README.md @@ -228,3 +228,4 @@ If you want to say **thank you** or/and support active development of CEEMS: - Add a [GitHub Star](https://github.com/ceems-dev/ceems) to the project. - Write articles about project on [Dev.to](https://dev.to/), [Medium](https://medium.com/) or personal blog. +test From 7ff1707d2814edf3584b4c65b6e608657fa6bd7b Mon Sep 17 00:00:00 2001 From: CEEMS Bot Date: Sun, 5 Jul 2026 17:35:49 +0000 Subject: [PATCH 6/8] chore: Updated coverage badge Signed-off-by: CEEMS Bot --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ac428e62..e24f7745 100644 --- a/README.md +++ b/README.md @@ -229,3 +229,4 @@ If you want to say **thank you** or/and support active development of CEEMS: - Add a [GitHub Star](https://github.com/ceems-dev/ceems) to the project. - Write articles about project on [Dev.to](https://dev.to/), [Medium](https://medium.com/) or personal blog. test +test From 4912ae15b86c7485b0046359af49c6633eafad8d Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Sun, 5 Jul 2026 19:45:20 +0200 Subject: [PATCH 7/8] Debug Signed-off-by: Mahendra Paipuri --- .github/workflows/step_tests-unit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/step_tests-unit.yml b/.github/workflows/step_tests-unit.yml index 3ba19b54..b3ea97d2 100644 --- a/.github/workflows/step_tests-unit.yml +++ b/.github/workflows/step_tests-unit.yml @@ -102,4 +102,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ steps.app-token.outputs.token }} - branch: ${{ github.event.pull_request.head.ref }} + branch: "fix/ci/app-token-usage" From 46a2a1e36e3f19ca58174c5a3f0e2c959ba77b4e Mon Sep 17 00:00:00 2001 From: CEEMS Bot Date: Sun, 5 Jul 2026 17:45:59 +0000 Subject: [PATCH 8/8] chore: Updated coverage badge Signed-off-by: CEEMS Bot --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e24f7745..25d1da7f 100644 --- a/README.md +++ b/README.md @@ -230,3 +230,4 @@ If you want to say **thank you** or/and support active development of CEEMS: - Write articles about project on [Dev.to](https://dev.to/), [Medium](https://medium.com/) or personal blog. test test +test