Repository navigation
chore: initialize fullsend per-repo installation #3169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ArathyKumar
wants to merge
8
commits into
main
Choose a base branch
from
fullsend/scaffold-install
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+798
−2
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
278506a
chore: initialize fullsend per-repo installation
ArathyKumar db0cb0d
chore: configure review agent model and disable out-of-rollout agents
ArathyKumar 5422e43
chore: ignore fullsend local resource cache
ArathyKumar d149dd0
chore: export Fullsend run telemetry to Langfuse
ArathyKumar 151f0e3
Revert "chore: export Fullsend run telemetry to Langfuse"
ArathyKumar 3103202
chore: export Fullsend run telemetry to Langfuse
ArathyKumar f9655a9
fix(ci): pin Playwright jobs to Ubuntu 24.04
ArathyKumar 2c4b557
fix: require HTTPS before sending Jira credentials
ArathyKumar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # fullsend per-repo configuration | ||
| # https://github.com/fullsend-ai/fullsend | ||
| # | ||
| # This file configures fullsend for per-repo installation mode. | ||
| # See https://fullsend.sh/docs/guides/infrastructure/layered-config-reference | ||
| version: "1" | ||
| tracker: | ||
| github: | ||
| allowed_targets: | ||
| repos: | ||
| - fullsend-ai/fullsend | ||
| - fullsend-ai/agents | ||
| runtime: pi | ||
| roles: | ||
| - review | ||
| agents: | ||
| - name: review | ||
| model: google-vertex/gemini-3.8-flash | ||
| - name: retro | ||
| enabled: false | ||
| - name: prioritize | ||
| enabled: false | ||
|
ArathyKumar marked this conversation as resolved.
Resolved
|
||
| allowed_remote_resources: | ||
| - https://raw.githubusercontent.com/fullsend-ai/fullsend/ | ||
| - https://raw.githubusercontent.com/fullsend-ai/agents/ | ||
| inference: | ||
| project: firefly-868139 | ||
| wif_provider: projects/275116376890/locations/global/workloadIdentityPools/uie-github-fullsend-inference/providers/gh-repo-116304230 | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Generated by uie-fullsend langfuse-setup. Uses trusted default-branch code. | ||
| name: Fullsend Langfuse | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| trace_id: | ||
| description: OTLP trace ID for verification (32 hexadecimal characters) | ||
| required: true | ||
| type: string | ||
| # Least privilege: checks out trusted default-branch Langfuse script without write credentials. | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| generation: | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.repository.default_branch }} | ||
|
ArathyKumar marked this conversation as resolved.
Resolved
|
||
| persist-credentials: false | ||
| - name: Export Langfuse trace | ||
| env: | ||
| OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT }} | ||
| OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} | ||
| OTEL_RESOURCE_ATTRIBUTES: ${{ vars.OTEL_RESOURCE_ATTRIBUTES }} | ||
| JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }} | ||
| JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} | ||
| JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
|
ArathyKumar marked this conversation as resolved.
Resolved
|
||
| FULLSEND_JIRA_TEAM_FIELD: ${{ vars.FULLSEND_JIRA_TEAM_FIELD }} | ||
| SOURCE_RUN_ID: ${{ github.run_id }} | ||
| SOURCE_RUN_ATTEMPT: ${{ github.run_attempt }} | ||
| SOURCE_ACTOR: ${{ github.actor }} | ||
| VERIFY_TRACE_ID: ${{ inputs.trace_id }} | ||
| run: | | ||
| python3 .fullsend/scripts/langfuse-post-run.py --verify-trace-id "$VERIFY_TRACE_ID" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,200 @@ | ||
| # This file is managed by fullsend. Do not edit it directly. | ||
| # Upstream: https://github.com/fullsend-ai/fullsend/blob/main/internal/scaffold/fullsend-repo/.github/workflows/fullsend.yaml | ||
| --- | ||
| # fullsend shim workflow (per-repo installation mode) | ||
| # Routes events to agent workflows via reusable-dispatch.yml. | ||
| # All agent execution happens in this repository's context. | ||
| # | ||
| # Security: pull request events use pull_request, not pull_request_target | ||
| # (GitHub blocks pull_request_target by default in public repositories; | ||
| # ADR 0164). On pull_request this workflow runs from the PR's own | ||
| # copy and forwards the repository secrets, so the dispatch job runs only for | ||
| # same-repo PRs, whose authors already have write access. Fork PRs are skipped | ||
| # here and again in reusable-dispatch.yml (a fork cannot edit the upstream | ||
| # copy; a vendored copy runs from the PR); a maintainer comments /fs-review | ||
| # to review one. In private repositories keep "Send secrets to workflows | ||
| # from pull requests" and "Send write tokens to workflows from pull | ||
| # requests" (Settings > Actions > General) turned off. | ||
| # reusable-dispatch.yml checks out the base side for pull request events. | ||
| # | ||
| # Routing: this shim forwards the raw event context to reusable-dispatch.yml, | ||
| # which determines the stage and runs the agent inline (ADR 62). | ||
| # Adding a new stage requires only a job in reusable-dispatch.yml — zero changes to this repo. | ||
| # | ||
| # Concurrency: per-role cancel-in-progress groups live in reusable-dispatch.yml | ||
| # stage jobs with -agent- suffix. Roles operate independently (#2452). | ||
| name: fullsend | ||
|
|
||
| on: | ||
| issues: | ||
| types: [opened, edited, labeled] | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request: | ||
| types: [opened, synchronize, ready_for_review, closed, labeled, unlabeled] | ||
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| dispatch: | ||
| if: >- | ||
| (github.event_name != 'pull_request' && github.event_name != 'pull_request_review' | ||
| || github.event.pull_request.head.ref != 'fullsend/scaffold-install') | ||
| && (github.event_name != 'pull_request' | ||
| || github.event.pull_request.head.repo.id == github.repository_id) | ||
| && (github.event_name != 'issue_comment' | ||
| || startsWith(github.event.comment.body, '/fs-')) | ||
| permissions: | ||
| actions: write | ||
| id-token: write | ||
| contents: write | ||
| issues: write | ||
| packages: read | ||
| pull-requests: write | ||
| uses: fullsend-ai/fullsend/.github/workflows/reusable-dispatch.yml@d11de3ea0dde5aa652110b6716c19e000c426df7 # v0.57.1 | ||
| with: | ||
| event_action: ${{ github.event.action }} | ||
| mint_url: ${{ vars.FULLSEND_MINT_URL }} | ||
| gcp_region: ${{ vars.FULLSEND_GCP_REGION }} | ||
| project_number: ${{ vars.FULLSEND_PROJECT_NUMBER }} | ||
| runner_image: ubuntu-24.04 | ||
| secrets: | ||
| FULLSEND_GCP_WIF_PROVIDER: ${{ secrets.FULLSEND_GCP_WIF_PROVIDER }} | ||
| FULLSEND_GCP_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }} | ||
| FULLSEND_OPENAI_API_KEY: ${{ secrets.FULLSEND_OPENAI_API_KEY }} | ||
| FULLSEND_INFERENCE_GATEWAY_API_KEY: ${{ secrets.FULLSEND_INFERENCE_GATEWAY_API_KEY }} | ||
| OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} | ||
| OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }} | ||
| FULLSEND_JIRA_TOKEN: ${{ secrets.FULLSEND_JIRA_TOKEN }} | ||
| FULLSEND_JIRA_EMAIL: ${{ secrets.FULLSEND_JIRA_EMAIL }} | ||
| FULLSEND_JIRA_CLIENT_ID: ${{ secrets.FULLSEND_JIRA_CLIENT_ID }} | ||
| FULLSEND_JIRA_CLIENT_SECRET: ${{ secrets.FULLSEND_JIRA_CLIENT_SECRET }} | ||
| FULLSEND_GITHUB_RUNNER_SECRETS: ${{ secrets.FULLSEND_GITHUB_RUNNER_SECRETS }} | ||
|
|
||
| stop-fix: | ||
| # Job-level if: is intentionally coarse — it only screens for the | ||
| # /fs-fix-stop command on a PR from a non-bot. The authoritative | ||
| # authorization decision (collaborator permission API + PR-author escape | ||
| # hatch) is made in the step below, so a maintainer whose author_association | ||
| # is not MEMBER (e.g. private org membership) is not filtered out (ADR 0054). | ||
| if: >- | ||
| github.event_name == 'issue_comment' | ||
| && github.event.issue.pull_request | ||
| && github.event.comment.user.type != 'Bot' | ||
| && github.event.comment.body == '/fs-fix-stop' | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Add fullsend-no-fix label and notify | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| PR_NUMBER: ${{ github.event.issue.number }} | ||
| REPO: ${{ github.repository }} | ||
| COMMENT_USER_LOGIN: ${{ github.event.comment.user.login }} | ||
| ISSUE_USER_LOGIN: ${{ github.event.issue.user.login }} | ||
| run: | | ||
| set -euo pipefail | ||
| # ADR 0054: authorize via the collaborator permission API | ||
| # (admin|maintain|write), not author_association — the latter grants | ||
| # contributor status to anyone with a single merged PR (issue #5421). | ||
| # Mirrors has_repo_permission() in reusable-dispatch.yml, including the | ||
| # custom-role --jq resolution; keep the two in sync. | ||
| # The PR author may always stop the fix agent on their own PR. | ||
| authorized=false | ||
| if [[ -n "$COMMENT_USER_LOGIN" && "$COMMENT_USER_LOGIN" == "$ISSUE_USER_LOGIN" ]]; then | ||
| authorized=true | ||
| else | ||
| if api_err=$(mktemp); then | ||
| # $p is a jq variable; the single quotes are intentional. | ||
| # shellcheck disable=SC2016 | ||
| if role=$(gh api "repos/$REPO/collaborators/$COMMENT_USER_LOGIN/permission" \ | ||
| --jq '.user.permissions as $p | ||
| | if (.role_name | type) != "string" or .role_name == "" then "none" | ||
| elif (.role_name | IN("admin", "maintain", "write", "triage", "read")) then .role_name | ||
| elif $p == null then | ||
| if (.permission | IN("admin", "write", "read")) then .permission else "none" end | ||
| elif ($p | type) == "object" then | ||
| if $p.admin == true then "admin" | ||
| elif $p.maintain == true then "maintain" | ||
| elif $p.push == true then "write" | ||
| elif $p.triage == true then "triage" | ||
| elif $p.pull == true then "read" | ||
| else "none" end | ||
| else "none" end' 2>"$api_err"); then | ||
| case "$role" in | ||
| admin|maintain|write) authorized=true ;; | ||
| esac | ||
| else | ||
| echo "::warning::Permission API call failed for $COMMENT_USER_LOGIN: $(cat "$api_err")" | ||
| fi | ||
| rm -f "$api_err" | ||
| else | ||
| echo "::warning::Failed to create temp file for permission check of $COMMENT_USER_LOGIN" | ||
| fi | ||
| fi | ||
| if [[ "$authorized" != "true" ]]; then | ||
| echo "::notice::User $COMMENT_USER_LOGIN is not authorized to stop the fix agent (requires write access or PR authorship)" | ||
| exit 0 | ||
| fi | ||
| gh label create "fullsend-no-fix" --repo "$REPO" \ | ||
| --description "Skip bot-triggered fix agent runs" --color "FBCA04" \ | ||
| 2>/dev/null || true | ||
| gh pr edit "$PR_NUMBER" --repo "$REPO" \ | ||
| --add-label "fullsend-no-fix" | ||
| gh pr comment "$PR_NUMBER" --repo "$REPO" \ | ||
| --body "Fix agent disabled for this PR. Remove the \`fullsend-no-fix\` label or use \`/fs-fix\` to re-engage." | ||
| # >>> uie-fullsend langfuse-export (managed block: re-run `uie-fullsend langfuse setup` to refresh) | ||
| # Exports Fullsend telemetry directly to Langfuse when this run has published | ||
| # fullsend-* telemetry artifacts. Runs after the upstream Fullsend dispatch job. | ||
| langfuse-export: | ||
| needs: dispatch | ||
| if: always() && !cancelled() | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| actions: read # download artifacts from this run | ||
| contents: read # checkout trusted default-branch script | ||
| steps: | ||
| - name: Detect Fullsend telemetry artifacts | ||
| id: telemetry | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| GH_REPO: ${{ github.repository }} | ||
| RUN_ID: ${{ github.run_id }} | ||
| run: | | ||
| artifacts="$(gh api --paginate "repos/$GH_REPO/actions/runs/$RUN_ID/artifacts?per_page=100" --jq '.artifacts[].name | select(startswith("fullsend-"))')" | ||
| [ -n "$artifacts" ] && echo "found=true" >> "$GITHUB_OUTPUT" || exit 0 | ||
| - name: Checkout Langfuse script | ||
| if: steps.telemetry.outputs.found == 'true' | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.repository.default_branch }} | ||
| persist-credentials: false | ||
|
|
||
| - name: Download Fullsend artifacts | ||
| if: steps.telemetry.outputs.found == 'true' | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: gh run download "${{ github.run_id }}" --pattern 'fullsend-*' --dir "$RUNNER_TEMP/langfuse-artifacts" | ||
|
|
||
| - name: Export Langfuse trace | ||
| if: steps.telemetry.outputs.found == 'true' | ||
| env: | ||
| OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: ${{ vars.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT }} | ||
| OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} | ||
|
ArathyKumar marked this conversation as resolved.
Resolved
|
||
| OTEL_RESOURCE_ATTRIBUTES: ${{ vars.OTEL_RESOURCE_ATTRIBUTES }} | ||
| JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }} | ||
| JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} | ||
| JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
| FULLSEND_JIRA_TEAM_FIELD: ${{ vars.FULLSEND_JIRA_TEAM_FIELD }} | ||
| SOURCE_RUN_ID: ${{ github.run_id }} | ||
| SOURCE_RUN_ATTEMPT: ${{ github.run_attempt }} | ||
| SOURCE_ACTOR: ${{ github.actor }} | ||
| run: python3 .fullsend/scripts/langfuse-post-run.py "$RUNNER_TEMP/langfuse-artifacts" | ||
| # <<< uie-fullsend langfuse-export | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # This file is managed by fullsend. Do not edit it directly. | ||
| # Upstream: https://github.com/fullsend-ai/fullsend/blob/main/internal/scaffold/fullsend-repo/.github/workflows/prioritize.yml | ||
| --- | ||
| # fullsend-stage: prioritize | ||
| name: Prioritize | ||
|
|
||
| permissions: | ||
| actions: write | ||
| contents: read | ||
| id-token: write | ||
| issues: write | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| event_type: | ||
| description: Event type that triggered prioritization | ||
| required: true | ||
| type: string | ||
| source_repo: | ||
| description: Repository the event came from (owner/repo) | ||
| required: true | ||
| type: string | ||
| event_payload: | ||
| description: JSON-encoded payload of the triggering event | ||
| required: true | ||
| type: string | ||
| project_number: | ||
| description: GitHub Projects V2 project number for RICE scoring | ||
| required: false | ||
| type: string | ||
|
|
||
| concurrency: | ||
| group: fullsend-prioritize-${{ inputs.source_repo }}-${{ fromJSON(inputs.event_payload).issue.number || fromJSON(inputs.event_payload).pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| prioritize: | ||
| uses: fullsend-ai/fullsend/.github/workflows/reusable-prioritize.yml@d11de3ea0dde5aa652110b6716c19e000c426df7 # v0.57.1 | ||
| with: | ||
| event_type: ${{ inputs.event_type }} | ||
| source_repo: ${{ inputs.source_repo }} | ||
| event_payload: ${{ inputs.event_payload }} | ||
| mint_url: ${{ vars.FULLSEND_MINT_URL }} | ||
| gcp_region: ${{ vars.FULLSEND_GCP_REGION }} | ||
| project_number: ${{ inputs.project_number || vars.FULLSEND_PROJECT_NUMBER }} | ||
| runner_image: ubuntu-24.04 | ||
| secrets: | ||
| FULLSEND_GCP_WIF_PROVIDER: ${{ secrets.FULLSEND_GCP_WIF_PROVIDER }} | ||
| FULLSEND_GCP_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }} | ||
| FULLSEND_OPENAI_API_KEY: ${{ secrets.FULLSEND_OPENAI_API_KEY }} | ||
| FULLSEND_INFERENCE_GATEWAY_API_KEY: ${{ secrets.FULLSEND_INFERENCE_GATEWAY_API_KEY }} | ||
| OTEL_EXPORTER_OTLP_TRACES_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_TRACES_HEADERS }} | ||
| OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }} | ||
| FULLSEND_JIRA_TOKEN: ${{ secrets.FULLSEND_JIRA_TOKEN }} | ||
| FULLSEND_JIRA_EMAIL: ${{ secrets.FULLSEND_JIRA_EMAIL }} | ||
| FULLSEND_JIRA_CLIENT_ID: ${{ secrets.FULLSEND_JIRA_CLIENT_ID }} | ||
| FULLSEND_JIRA_CLIENT_SECRET: ${{ secrets.FULLSEND_JIRA_CLIENT_SECRET }} | ||
| FULLSEND_GITHUB_RUNNER_SECRETS: ${{ secrets.FULLSEND_GITHUB_RUNNER_SECRETS }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,3 +133,6 @@ browserstack.err | |
|
|
||
| # Local Netlify folder | ||
| .netlify | ||
|
|
||
| # fullsend local resource cache | ||
| .fullsend/.fullsend-cache/ | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.