Repository navigation
feat(providers): dead-code purge, tier-A provider fixes, CI safety net #1335
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
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
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. 💬 SUGGESTION: New workflow lacks error handling documentation The new .github/workflows/live-matrix.yml workflow doesn't include any failure notification mechanism or documentation about expected behavior when providers are unavailable. Since this workflow tests all 30 providers and many will fail without credentials, it would be helpful to add conditional logging or alerts for when live tests fail due to missing credentials or provider unavailability, and consider adding workflow-level description/comment about self-gating behavior.
Contributor
Author
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. Fixed in #1903: |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| name: Live Provider Matrix (Nightly) | ||
|
|
||
| on: | ||
| schedule: | ||
| # 03:00 UTC daily — off-peak, avoids colliding with PR CI load. | ||
| - cron: "0 3 * * *" | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| live-matrix: | ||
| name: 🌐 Live Provider Matrix Sweep | ||
| runs-on: ubuntu-latest | ||
| # Not a required check — this workflow never appears in | ||
| # .github/settings.yml's branch-protection contexts. It exercises real | ||
| # provider credentials against real APIs and must not block merges on | ||
| # transient upstream outages or missing repo secrets. | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup PNPM | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10.15.1 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22" | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install | ||
|
|
||
| - name: 🔄 SvelteKit Sync | ||
| run: pnpm exec svelte-kit sync | ||
|
|
||
| - name: Build package | ||
| run: pnpm run build | ||
|
|
||
| - name: Live provider matrix sweep (self-gates cleanly when keys are absent) | ||
| run: pnpm run test:matrix | ||
| env: | ||
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| GOOGLE_AI_API_KEY: ${{ secrets.GOOGLE_AI_API_KEY }} | ||
| GOOGLE_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }} | ||
| GOOGLE_VERTEX_PROJECT: ${{ secrets.GOOGLE_VERTEX_PROJECT }} | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| SAGEMAKER_ENDPOINT: ${{ secrets.SAGEMAKER_ENDPOINT }} | ||
| AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} | ||
| AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }} | ||
| MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} | ||
| HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }} | ||
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | ||
| DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }} | ||
| GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | ||
| COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} | ||
| FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }} | ||
| PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }} | ||
| XAI_API_KEY: ${{ secrets.XAI_API_KEY }} | ||
| NVIDIA_NIM_API_KEY: ${{ secrets.NVIDIA_NIM_API_KEY }} | ||
| TOGETHER_AI_API_KEY: ${{ secrets.TOGETHER_AI_API_KEY }} | ||
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
| VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }} | ||
| JINA_API_KEY: ${{ secrets.JINA_API_KEY }} | ||
| STABILITY_API_KEY: ${{ secrets.STABILITY_API_KEY }} | ||
| IDEOGRAM_API_KEY: ${{ secrets.IDEOGRAM_API_KEY }} | ||
| RECRAFT_API_KEY: ${{ secrets.RECRAFT_API_KEY }} | ||
| REPLICATE_API_TOKEN: ${{ secrets.REPLICATE_API_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/usr/bin/env sh | ||
| . "$(dirname -- "$0")/_/husky.sh" | ||
|
|
||
| # Cheap no-API tier: build freshness + mocked provider contracts + registry | ||
| # structure. Keeps local pushes fast; live-credential suites run in the | ||
| # separate nightly live-matrix.yml workflow, not on every push. | ||
| pnpm run pre-push |
|
Contributor
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. 💡 MINOR: CLAUDE.md type vs interface change could use migration guide reference The CLAUDE.md file was updated to remove all 'interface' declarations in favor of 'type', but there's no mention of existing code that might still use interfaces and how they should be migrated or refactored. This makes it harder for contributors to understand the full scope of changes needed when adopting this rule. Suggested fix: Add a section explaining the rationale for using types over interfaces and potentially provide guidance on migrating existing interface declarations. |
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.
💡 MINOR: Hardcoded node version in CI workflow
The ci.yml workflow hardcodes Node.js version 20 and 22 directly in the YAML files instead of using environment variables or matrix configuration. This reduces flexibility when Node.js LTS versions change and requires manual updates to the workflows when new LTS versions are released.
Suggested fix: Consider using matrix strategy or environment variables for Node.js versions to allow automatic updates when new LTS versions are released.