From eab799e6e001412ad68c6310fe615c1143a53c5f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 14:53:21 +0000 Subject: [PATCH 1/2] ci: add marketplace workflow compilation job Agent-Logs-Url: https://github.com/github/gh-aw/sessions/b745801a-a2b9-4edb-96b4-8360c5685456 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/ci.yml | 73 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b15ccc80dc..b65aab07b74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2451,6 +2451,79 @@ jobs: echo "- Success count: ${{ steps.add-workflows.outputs.success_count }}" echo "- Failure count: ${{ steps.add-workflows.outputs.failure_count }}" + integration-marketplace-compile: + name: Integration Compile gh-aw-marketplace + runs-on: ubuntu-latest + timeout-minutes: 20 + permissions: + contents: read + concurrency: + group: ci-${{ github.ref }}-integration-marketplace-compile + cancel-in-progress: true + steps: + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Set up Go + id: setup-go + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 + with: + go-version-file: go.mod + cache: true + + - name: Report Go cache status + run: | + if [ "${{ steps.setup-go.outputs.cache-hit }}" == "true" ]; then + echo "✅ Go cache hit" >> $GITHUB_STEP_SUMMARY + else + echo "⚠️ Go cache miss" >> $GITHUB_STEP_SUMMARY + fi + + - name: Download dependencies + run: go mod download + + - name: Verify dependencies + run: go mod verify + + - name: Build gh-aw binary + run: make build + + - name: Clone github/gh-aw-marketplace repository + run: | + echo "Cloning github/gh-aw-marketplace repository..." + cd /tmp + git clone --depth 1 --filter=blob:none https://github.com/github/gh-aw-marketplace.git + echo "✅ Repository cloned successfully" + + - name: Compile gh-aw-marketplace workflows + run: | + set -euo pipefail + + MARKETPLACE_DIR="/tmp/gh-aw-marketplace" + WORKFLOW_DIR="${MARKETPLACE_DIR}/.github/workflows" + LOG_FILE="/tmp/gh-aw-marketplace-compile.log" + + if [ ! -d "$WORKFLOW_DIR" ]; then + echo "❌ Expected workflow directory not found: $WORKFLOW_DIR" + echo "Available workflow-like directories:" + find "$MARKETPLACE_DIR" -maxdepth 3 -type d -name workflows || true + exit 1 + fi + + echo "Compiling workflows from: $WORKFLOW_DIR" + ./gh-aw compile --dir "$WORKFLOW_DIR" --strict --no-check-update 2>&1 | tee "$LOG_FILE" + + WARNINGS=$(grep -nE '^[[:space:]]*(⚠|Warning:|WARN[[:space:]:])' "$LOG_FILE" || true) + if [ -n "$WARNINGS" ]; then + echo "❌ Compilation produced warnings; failing the job." + echo "$WARNINGS" + exit 1 + fi + + echo "✅ gh-aw-marketplace workflows compiled with no warnings or errors." + echo "## gh-aw-marketplace compile" >> $GITHUB_STEP_SUMMARY + echo "✅ All workflows compiled with no warnings or errors." >> $GITHUB_STEP_SUMMARY + integration-update: name: Integration Update - Preserve Local Imports runs-on: ubuntu-latest From ea6dc251cb099dd396330ce818bf9cb9f273cc4c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 14:58:21 +0000 Subject: [PATCH 2/2] ci: tighten marketplace warning detection Agent-Logs-Url: https://github.com/github/gh-aw/sessions/b745801a-a2b9-4edb-96b4-8360c5685456 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b65aab07b74..c206bee63d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2492,7 +2492,7 @@ jobs: run: | echo "Cloning github/gh-aw-marketplace repository..." cd /tmp - git clone --depth 1 --filter=blob:none https://github.com/github/gh-aw-marketplace.git + git clone --depth 1 https://github.com/github/gh-aw-marketplace.git echo "✅ Repository cloned successfully" - name: Compile gh-aw-marketplace workflows @@ -2513,7 +2513,7 @@ jobs: echo "Compiling workflows from: $WORKFLOW_DIR" ./gh-aw compile --dir "$WORKFLOW_DIR" --strict --no-check-update 2>&1 | tee "$LOG_FILE" - WARNINGS=$(grep -nE '^[[:space:]]*(⚠|Warning:|WARN[[:space:]:])' "$LOG_FILE" || true) + WARNINGS=$(grep -nEi '(⚠|(^|[[:space:]])(warning:|warnings?:|warn[[:space:]:]))' "$LOG_FILE" || true) if [ -n "$WARNINGS" ]; then echo "❌ Compilation produced warnings; failing the job." echo "$WARNINGS"