-
Notifications
You must be signed in to change notification settings - Fork 0
fix(workflows): standardize model/api-base-url params for custom LLM #38
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
Changes from all commits
eead9e5
f42d0b3
acb09e2
5b18a26
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 |
|---|---|---|
|
|
@@ -28,9 +28,12 @@ concurrency: | |
|
|
||
| jobs: | ||
| checks: | ||
| uses: YiAgent/OpenCI/.github/workflows/reusable/pr.yml@ebe8fca3260dce68d34d51b74703169e776bc72d | ||
| uses: YiAgent/OpenCI/.github/workflows/reusable/pr.yml@be43e4efd2f14f2a3da7d5264356a9e6774c8ef1 | ||
| with: | ||
| enable-ai-review: true | ||
| enable-eval: true | ||
| runner: blacksmith-32vcpu-ubuntu-2404 | ||
| secrets: inherit | ||
| model: ${{ vars.AI_MODEL || '' }} | ||
| secrets: | ||
| anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| api-base-url: ${{ secrets.ANTHROPIC_BASE_URL }} | ||
|
Comment on lines
+37
to
+39
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. Pass the rest of the reusable PR secrets explicitly. This two-entry map regresses the previous 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,4 +39,5 @@ gate-context/ | |
| .history | ||
|
|
||
| # act local testing | ||
| .act.env | ||
| .act.env*.yml-e | ||
| *.yaml-e | ||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -56,8 +56,8 @@ setup() { | |||||||||||
| grep -q 'runner:.*blacksmith-32vcpu-ubuntu-2404' "$ENTRY" | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| @test "checks job inherits secrets" { | ||||||||||||
| grep -q 'secrets: inherit' "$ENTRY" | ||||||||||||
| @test "checks job passes anthropic-api-key secret" { | ||||||||||||
| grep -q 'anthropic-api-key:' "$ENTRY" | ||||||||||||
|
Comment on lines
+59
to
+60
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. Assert the mapped secret value, not only the key name. At Line 60, this check passes even if Suggested test hardening `@test` "checks job passes anthropic-api-key secret" {
- grep -q 'anthropic-api-key:' "$ENTRY"
+ grep -Eq 'anthropic-api-key:\s*\$\{\{\s*secrets\.ANTHROPIC_API_KEY\s*\}\}' "$ENTRY"
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| # --------------------------------------------------------------------------- | ||||||||||||
|
|
||||||||||||
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.
workflow_dispatchmodel override is ignored for maintenance runs.At Line 69, manual dispatch with
mode=maintenanceroutes to this job, but Line 74 always usesvars.AI_MODEL. That dropsinputs.modeleven when explicitly provided.Suggested fix
maintenance: if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.mode == 'maintenance') @@ - model: ${{ vars.AI_MODEL || '' }} + model: ${{ (github.event_name == 'workflow_dispatch' && inputs.model) || vars.AI_MODEL || '' }}🤖 Prompt for AI Agents