-
Notifications
You must be signed in to change notification settings - Fork 73
fix(#4718): wire GH_TOKEN and re-add fail-fast validation for pre-code/pre-fix #5013
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -160,6 +160,7 @@ jobs: | |
| REPO_FULL_NAME: ${{ inputs.source_repo }} | ||
| GITHUB_ISSUE_URL: ${{ fromJSON(inputs.event_payload).issue.html_url }} | ||
| COMMENT_BODY: ${{ fromJSON(inputs.event_payload).comment.body }} | ||
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
| FULLSEND_DIR: ${{ inputs.install_mode == 'per-repo' && '.fullsend' || '' }} | ||
| run: bash "${FULLSEND_DIR:+$FULLSEND_DIR/}scripts/pre-code.sh" | ||
|
Comment on lines
160
to
165
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 4. Silent gh failures pre-code.sh discards stderr and ignores failures from gh pr list, so even with GH_TOKEN now provided by reusable-code.yml, API/auth/rate-limit errors can silently turn the existing-PR check into a no-op and allow duplicate code-agent runs without any diagnostic signal. Agent Prompt
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -373,6 +373,7 @@ jobs: | |
| TRIGGER_SOURCE: ${{ inputs.trigger_source }} | ||
| FIX_ITERATION: ${{ steps.context.outputs.iteration }} | ||
| HUMAN_INSTRUCTION: ${{ steps.context.outputs.instruction }} | ||
| FIX_SKIP_TOOL_INSTALL: "true" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] mechanism-readiness FIX_SKIP_TOOL_INSTALL=true is a no-op — pre-fix.sh does not check this env var. The tool auto-install section (lines 103–166) runs unconditionally. Harmless today; the companion PR (fullsend-ai/agents#175) is expected to add script-side support. |
||
| FULLSEND_DIR: ${{ inputs.install_mode == 'per-repo' && '.fullsend' || '' }} | ||
| run: bash "${FULLSEND_DIR:+$FULLSEND_DIR/}scripts/pre-fix.sh" | ||
|
Comment on lines
+376
to
378
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. pre-fix.sh runs twice The reusable fix workflow still runs scripts/pre-fix.sh inline in Validate inputs, and then runs fullsend run fix, which executes the same script again via harness/fix.yaml pre_script. This violates the requirement to avoid double-running the pre-script and can cause duplicated work/side effects. Agent Prompt
Comment on lines
373
to
378
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3. Unused tool-skip flag The reusable fix workflow sets FIX_SKIP_TOOL_INSTALL=true before running scripts/pre-fix.sh, but pre-fix.sh never reads that variable and always executes the pre-commit tool auto-install section. Since harness/fix.yaml also declares scripts/pre-fix.sh as pre_script, this can lead to redundant tool installation and longer/flakier runs. Agent Prompt
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. pre-code.sh runs twice
📎 Requirement gap☼ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools