From df2b260c04afd928e256fab5dc07952b89215a79 Mon Sep 17 00:00:00 2001 From: csoceanu Date: Fri, 9 Oct 2026 13:43:21 +0300 Subject: [PATCH] fix(workflows): default missing app set Co-authored-by: Codex Signed-off-by: csoceanu --- .github/workflows/reusable-dispatch.yml | 11 ++++++----- internal/scaffold/workflow_call_alignment_test.go | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/reusable-dispatch.yml b/.github/workflows/reusable-dispatch.yml index 66e957db02..96d25a2549 100644 --- a/.github/workflows/reusable-dispatch.yml +++ b/.github/workflows/reusable-dispatch.yml @@ -158,7 +158,7 @@ jobs: PR_BASE_REPO: ${{ github.event.pull_request.base.repo.full_name }} PR_USER_LOGIN: ${{ github.event.pull_request.user.login }} ORG_NAME: ${{ github.repository_owner }} - FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }} + FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }} GH_TOKEN: ${{ github.token }} run: | set -euo pipefail @@ -977,7 +977,7 @@ jobs: ${{ fromJSON(needs.route.outputs.event_payload).pull_request.number || fromJSON(needs.route.outputs.event_payload).issue.number }} ORG_NAME: ${{ github.repository_owner }} - FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }} + FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }} REVIEW_APP_CLIENT_ID: ${{ vars.FULLSEND_REVIEW_CLIENT_ID }} FULLSEND_DIR: .fullsend run: bash "${FULLSEND_DIR:+$FULLSEND_DIR/}scripts/pre-fetch-prior-review.sh" @@ -1004,7 +1004,7 @@ jobs: PRIOR_REVIEW_SHA: ${{ steps.prior-review.outputs.prior_sha }} PRIOR_REVIEW_FILE: ${{ steps.prior-review.outputs.prior_review_file }} PRIOR_REVIEW_PROVENANCE: ${{ steps.prior-review.outputs.prior_review_provenance }} - FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }} + FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }} OTEL_EXPORTER_OTLP_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_ENDPOINT }} OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT }} OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} @@ -1204,7 +1204,7 @@ jobs: env: GH_TOKEN: ${{ steps.app-token.outputs.token }} TRIGGER_SOURCE: ${{ needs.route.outputs.trigger_source }} - FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }} + FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }} PR_NUM: ${{ steps.context.outputs.pr_number }} SOURCE_REPO: ${{ github.repository }} run: bash .defaults/.github/scripts/check-fix-eligibility.sh @@ -1235,7 +1235,7 @@ jobs: PR_NUM: ${{ steps.context.outputs.pr_number }} TRIGGER_SOURCE: ${{ needs.route.outputs.trigger_source }} ORG_NAME: ${{ github.repository_owner }} - FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }} + FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }} run: | REVIEW_FILE="${GITHUB_WORKSPACE}/review-body.txt" REVIEW_BOT="${ORG_NAME}-review[bot]" @@ -1844,6 +1844,7 @@ jobs: FULLSEND_WORK_ITEM_KEY: ${{ steps.dispatch-env.outputs.work_item_key }} ISSUE_NUMBER: ${{ steps.dispatch-env.outputs.issue_number }} REPO_FULL_NAME: ${{ matrix.source_repo }} + FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }} OTEL_EXPORTER_OTLP_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_ENDPOINT }} OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT }} OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} diff --git a/internal/scaffold/workflow_call_alignment_test.go b/internal/scaffold/workflow_call_alignment_test.go index 56e54dcd0e..708574f1f6 100644 --- a/internal/scaffold/workflow_call_alignment_test.go +++ b/internal/scaffold/workflow_call_alignment_test.go @@ -39,7 +39,7 @@ func TestReviewWorkflowKeepsThreadFetchAgentOwned(t *testing.T) { section = section[:end] } - assert.Contains(t, section, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }}") + assert.Contains(t, section, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }}") assert.NotContains(t, section, "HUMAN_RESOLVED_FILE:") assert.NotContains(t, section, "HUMAN_RESOLVED_FETCH_SCRIPT:") } @@ -714,7 +714,7 @@ func TestCustomAppSetReviewBotWiring(t *testing.T) { for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { s := string(tc.content(t)) - assert.Contains(t, s, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }}") + assert.Contains(t, s, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }}") if tc.assertCustom { assert.Contains(t, s, `CUSTOM_REVIEW_BOT="${FULLSEND_APP_SET}-review[bot]"`) } @@ -730,7 +730,7 @@ func TestCustomAppSetReviewBotWiring(t *testing.T) { t.Run(tc.name+"-route", func(t *testing.T) { s := string(tc.content(t)) section := extractStepSection(t, s, "Determine stage") - assert.Contains(t, section, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }}") + assert.Contains(t, section, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }}") assert.Contains(t, section, `CUSTOM_REVIEW_BOT="${FULLSEND_APP_SET}-review[bot]"`) assert.Regexp(t, regexp.QuoteMeta(`"${REVIEW_USER_LOGIN}" == "${CUSTOM_REVIEW_BOT}"`), @@ -747,14 +747,14 @@ func TestCustomAppSetReviewBotWiring(t *testing.T) { { "reusable-dispatch", loadRepoFile(".github/workflows/reusable-dispatch.yml"), - []string{"Pre-fetch prior review context", "Check fix eligibility", "Pre-fetch review body"}, + []string{"Pre-fetch prior review context", "Check fix eligibility", "Pre-fetch review body", "Run harness agent"}, }, } { t.Run(tc.name+"-consumers", func(t *testing.T) { s := string(tc.content(t)) for _, stepName := range tc.steps { section := extractStepSection(t, s, stepName) - assert.Contains(t, section, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET }}", + assert.Contains(t, section, "FULLSEND_APP_SET: ${{ vars.FULLSEND_APP_SET || 'fullsend-ai' }}", "%s must receive the configured app-set prefix", stepName) if stepName == "Pre-fetch review body" { assert.Contains(t, section, `--arg custom_bot "${CUSTOM_REVIEW_BOT}"`)