From 5b4b4c1502f46be4bcd124d1b6866d8798307bb6 Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Tue, 15 Sep 2026 08:54:07 +0800 Subject: [PATCH 1/6] ci_test --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index d10b4b63..e76757a2 100644 --- a/Makefile +++ b/Makefile @@ -124,7 +124,6 @@ endif #echo LINUX_OVERRIDE_SRCDIR=/home/wangjianxin/t/linux-xuantie-kernel >output/k230d_canmv_64kernel_32rootfs_defconfig/local.mk - .PHONY:clean clean: @echo -e "This will delete the entire \033[31m$(PWD)/output/\033[0m directory."; \ From 15bff92512b96e27320d3b6695774ce01c7c94d4 Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Tue, 15 Sep 2026 10:44:23 +0800 Subject: [PATCH 2/6] ci: fix permission denied on ~/.ssh in build container Container's default user cannot write to the mounted /github/home, causing mkdir -p ~/.ssh to fail before chown'ing the workspace dir. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf7ca906..4c74b7d2 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,7 +54,8 @@ jobs: id: build_env run: | echo '----------Build ENV Prepare----------' - mkdir -p ~/.ssh + sudo mkdir -p ~/.ssh + sudo chown -R $(id -u):$(id -g) ~/.ssh chmod 700 ~/.ssh echo $SHELL echo -e "Host *\n StrictHostKeyChecking no" > ~/.ssh/config From d0c5950ef01b7932d57db395866e9eb7f22391f2 Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Tue, 15 Sep 2026 10:54:15 +0800 Subject: [PATCH 3/6] ci: chown entire HOME dir, not just ~/.ssh, in build container git config --global still failed to write ~/.gitconfig since only ~/.ssh ownership was fixed while /github/home itself stayed root-owned. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c74b7d2..965fc086 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: run: | echo '----------Build ENV Prepare----------' sudo mkdir -p ~/.ssh - sudo chown -R $(id -u):$(id -g) ~/.ssh + sudo chown -R $(id -u):$(id -g) ~ chmod 700 ~/.ssh echo $SHELL echo -e "Host *\n StrictHostKeyChecking no" > ~/.ssh/config From de8df84bed03a16038f9767e6a7608ec0c6daa9e Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Tue, 15 Sep 2026 11:55:24 +0800 Subject: [PATCH 4/6] ci: increase build/test job timeouts Give more headroom given recent runner queueing delays. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 965fc086..e9ed79ea 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: build_image: name: Build Image runs-on: [self-hosted, k230_linux_sdk] - timeout-minutes: 45 + timeout-minutes: 90 container: image: ai.b-bug.org:5000/k230_sdk:latest env: @@ -202,7 +202,7 @@ jobs: test_image: name: Test Image needs: build_image - timeout-minutes: 15 + timeout-minutes: 30 runs-on: [self-hosted, k230_linux_sdk] env: CONF: ${{ matrix.hw_type }}_${{ matrix.hw_model }}_defconfig From 23a67ff40ea738aedb36c288444a8a0bc3c8147e Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Tue, 15 Sep 2026 13:45:06 +0800 Subject: [PATCH 5/6] ci: install pcpp dependency in build env setup Match the same dependency install already present in .gitlab-ci.yml. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e9ed79ea..90b1f68d 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,6 +54,7 @@ jobs: id: build_env run: | echo '----------Build ENV Prepare----------' + sudo pip3 install pcpp sudo mkdir -p ~/.ssh sudo chown -R $(id -u):$(id -g) ~ chmod 700 ~/.ssh From f3e3cebeb1e70aed25472eaa540db07aa7f6e971 Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Tue, 15 Sep 2026 15:14:25 +0800 Subject: [PATCH 6/6] Fix Permission denied writing GITHUB_OUTPUT in save_image/save_tftp steps Chmod the runner-created output file before writing to it, since the container user doesn't own it by default (same root cause as the earlier ~/.ssh and ~/.gitconfig permission fixes). --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90b1f68d..0e284b36 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,6 +123,7 @@ jobs: - name: Save Image id: save_image run: | + sudo chmod 666 "$GITHUB_OUTPUT" || true pwd ls HW_TYPE=$(echo $CONF | awk -F '_' '{print $1}') @@ -174,6 +175,7 @@ jobs: - name: Save image to TFTP id: save_tftp run: | + sudo chmod 666 "$GITHUB_OUTPUT" || true pwd ls HW_TYPE=$(echo $CONF | awk -F '_' '{print $1}')