Skip to content

Commit fe9644e

Browse files
[CI] Fix Claude GitHub Actions setup (#1401)
## Summary Fix Claude GitHub Actions setup added in #1400 ## Test plan - [ ] Comment `/claude review` on this PR and verify the deep-review job runs (this is also serving as the smoke-test for the workflows merged in #1400) - [ ] Comment `@claude any thoughts on this change?` and verify the interactive job runs - [ ] Check that both jobs respect the new 10-minute cap if they ever stall 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated CI/CD workflow timeouts for job execution management. * Disabled experimental AI beta features in CI runs to ensure consistent behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 579fc6c commit fe9644e

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/claude.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
)
5353
)
5454
runs-on: ubuntu-latest
55+
timeout-minutes: 10
5556
permissions:
5657
contents: read
5758
pull-requests: write
@@ -67,6 +68,13 @@ jobs:
6768
uses: anthropics/claude-code-action@v1
6869
env:
6970
ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
71+
# NVIDIA inference proxy (LiteLLM-based) rejects two fields
72+
# the Claude Code SDK sends by default. Set per NVIDIA/OSMO's
73+
# workflow which has hit and solved both issues:
74+
# - `context_management` → disable experimental betas
75+
# - `cache_control.ephemeral.scope` → disable prompt caching
76+
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
77+
DISABLE_PROMPT_CACHING: "1"
7078
with:
7179
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
7280
claude_args: |

.github/workflows/claude_review.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
contains(github.event.comment.body, '/claude review') &&
2424
contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
2525
runs-on: ubuntu-latest
26+
timeout-minutes: 10
2627
permissions:
2728
contents: read
2829
pull-requests: write
@@ -59,6 +60,13 @@ jobs:
5960
uses: anthropics/claude-code-action@v1
6061
env:
6162
ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
63+
# NVIDIA inference proxy (LiteLLM-based) rejects two fields
64+
# the Claude Code SDK sends by default. Set per NVIDIA/OSMO's
65+
# workflow which has hit and solved both issues:
66+
# - `context_management` → disable experimental betas
67+
# - `cache_control.ephemeral.scope` → disable prompt caching
68+
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
69+
DISABLE_PROMPT_CACHING: "1"
6270
with:
6371
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
6472
trigger_phrase: "/claude review"

0 commit comments

Comments
 (0)