From 6ee50f6550e7c2e6f76c30940d26d1aba19ec67e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:25:26 +0000 Subject: [PATCH 1/6] Initial plan From 384c99d4e644f7a80bec4a15fb3e027637dff0fd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:28:36 +0000 Subject: [PATCH 2/6] Initial analysis - identify timeout command issue on macOS Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/release.lock.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.lock.yml b/.github/workflows/release.lock.yml index e459c176fb4..184dd51541d 100644 --- a/.github/workflows/release.lock.yml +++ b/.github/workflows/release.lock.yml @@ -5968,19 +5968,19 @@ jobs: - name: Download Go modules run: go mod download - name: Generate SBOM (SPDX format) - uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10 + uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0 with: artifact-name: sbom.spdx.json format: spdx-json output-file: sbom.spdx.json - name: Generate SBOM (CycloneDX format) - uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10 + uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0 with: artifact-name: sbom.cdx.json format: cyclonedx-json output-file: sbom.cdx.json - name: Upload SBOM artifacts - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: sbom-artifacts path: | From eb2bb3b17094db167711fc2241e1a43ab32a2bcd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:29:51 +0000 Subject: [PATCH 3/6] Fix install script test timeout command for macOS compatibility Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/install.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 621c8ccc3d3..97812df3a4b 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -55,7 +55,20 @@ jobs: # Run the script but capture the output before it tries to download # We'll use a fake version to test URL construction set +e - timeout 10s ./install-gh-aw.sh v999.999.999 2>&1 | tee install-output.log || true + + # Cross-platform timeout implementation + if command -v timeout &> /dev/null; then + # Linux has timeout command + timeout 10s ./install-gh-aw.sh v999.999.999 2>&1 | tee install-output.log || true + else + # macOS and others - use background process with kill + ./install-gh-aw.sh v999.999.999 2>&1 | tee install-output.log & + PID=$! + sleep 10 + kill $PID 2>/dev/null || true + wait $PID 2>/dev/null || true + fi + set -e # Verify platform was detected From c0cbeb1307f1b2fcace30c637a44aac4f1789c85 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:31:48 +0000 Subject: [PATCH 4/6] Use Perl-based timeout for better cross-platform compatibility Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/install.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 97812df3a4b..346d995f4f3 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -61,12 +61,8 @@ jobs: # Linux has timeout command timeout 10s ./install-gh-aw.sh v999.999.999 2>&1 | tee install-output.log || true else - # macOS and others - use background process with kill - ./install-gh-aw.sh v999.999.999 2>&1 | tee install-output.log & - PID=$! - sleep 10 - kill $PID 2>/dev/null || true - wait $PID 2>/dev/null || true + # macOS and others - use Perl-based timeout (available by default on macOS) + perl -e 'alarm shift; exec @ARGV' 10 ./install-gh-aw.sh v999.999.999 2>&1 | tee install-output.log || true fi set -e From 8457b8788cc48419d1d30ab8785885f1f6ca1a48 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:33:44 +0000 Subject: [PATCH 5/6] Revert unintended changes to release.lock.yml Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/release.lock.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.lock.yml b/.github/workflows/release.lock.yml index 184dd51541d..e459c176fb4 100644 --- a/.github/workflows/release.lock.yml +++ b/.github/workflows/release.lock.yml @@ -5968,19 +5968,19 @@ jobs: - name: Download Go modules run: go mod download - name: Generate SBOM (SPDX format) - uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0 + uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10 with: artifact-name: sbom.spdx.json format: spdx-json output-file: sbom.spdx.json - name: Generate SBOM (CycloneDX format) - uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0 + uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10 with: artifact-name: sbom.cdx.json format: cyclonedx-json output-file: sbom.cdx.json - name: Upload SBOM artifacts - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 with: name: sbom-artifacts path: | From 9b94142a4822643fe9e80de44f90962f06436627 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:34:20 +0000 Subject: [PATCH 6/6] Use POSIX-compliant redirection for better shell compatibility Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 346d995f4f3..12dde6d32fa 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -57,7 +57,7 @@ jobs: set +e # Cross-platform timeout implementation - if command -v timeout &> /dev/null; then + if command -v timeout > /dev/null 2>&1; then # Linux has timeout command timeout 10s ./install-gh-aw.sh v999.999.999 2>&1 | tee install-output.log || true else