{"id":14092125,"name":"getsentry/testing-ai-sdk-integrations","ecosystem":"actions","description":"Run AI SDK integration tests for a specific language (js or python) and report failures","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/getsentry/testing-ai-sdk-integrations","keywords_array":["tag-non-production"],"namespace":"getsentry","versions_count":1,"first_release_published_at":"2025-12-11T13:03:33.000Z","latest_release_published_at":"2025-12-11T13:03:33.000Z","latest_release_number":"v1","last_synced_at":"2026-03-21T15:31:03.030Z","created_at":"2026-03-21T15:31:01.762Z","updated_at":"2026-03-21T15:34:28.478Z","registry_url":"https://github.com/getsentry/testing-ai-sdk-integrations","install_command":null,"documentation_url":null,"metadata":{"name":"Run AI SDK Integration Tests","description":"Run AI SDK integration tests for a specific language (js or python) and report failures","author":"Sentry Telemetry Experience Team","branding":{"icon":"triangle","color":"purple"},"inputs":{"language":{"description":"SDK language to test. One of: js, py, or leave empty for both","required":false,"default":""},"openai-api-key":{"description":"OpenAI API key","required":true},"anthropic-api-key":{"description":"Anthropic API key","required":true},"google-api-key":{"description":"Google API key for GenAI","required":true}},"outputs":{"success":{"description":"Whether all tests passed","value":"${{ steps.run-tests.outputs.success }}"}},"runs":{"using":"composite","steps":[{"name":"Setup Node.js","uses":"actions/setup-node@v4","with":{"node-version":"20"}},{"name":"Setup Python","if":"inputs.language == 'py' || inputs.language == ''","uses":"actions/setup-python@v5","with":{"python-version":"3.13"}},{"name":"Install orchestration dependencies","shell":"bash","working-directory":"${{ github.action_path }}/shared/orchestration","run":"npm install"},{"name":"Setup SDK dependencies","shell":"bash","working-directory":"${{ github.action_path }}","run":"if [ -z \"${{ inputs.language }}\" ]; then\n  npm run cli setup\nelse\n  npm run cli setup ${{ inputs.language }}\nfi\n"},{"name":"Run tests","id":"run-tests","shell":"bash","working-directory":"${{ github.action_path }}","env":{"OPENAI_API_KEY":"${{ inputs.openai-api-key }}","ANTHROPIC_API_KEY":"${{ inputs.anthropic-api-key }}","GOOGLE_API_KEY":"${{ inputs.google-api-key }}"},"run":"set +e\nif [ -z \"${{ inputs.language }}\" ]; then\n  npm run cli run -- --all --reports ctrf\nelse\n  npm run cli run ${{ inputs.language }} -- --reports ctrf\nfi\nEXIT_CODE=$?\nset -e\n\nif [ $EXIT_CODE -eq 0 ]; then\n  echo \"success=true\" \u003e\u003e $GITHUB_OUTPUT\nelse\n  echo \"success=false\" \u003e\u003e $GITHUB_OUTPUT\nfi\n\nexit $EXIT_CODE\n"},{"name":"Create or update issue on failure","if":"failure()","uses":"actions/github-script@v7","with":{"script":"const fs = require('fs');\nconst runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;\n\n// Helper functions\nconst formatDuration = (ms) =\u003e ms \u003c 1000 ? `${ms}ms` : `${(ms / 1000).toFixed(2)}s`;\nconst getStatusIcon = (status) =\u003e {\n  const icons = { passed: '✓', failed: '✗', skipped: '○' };\n  return icons[status] || '-';\n};\n\n// Try to read and format test results from CTRF report\nlet resultsContent = 'Test execution failed. Check the [workflow run](' + runUrl + ') for details.';\nconst ctrfPath = '${{ github.action_path }}/shared/orchestration/test-results/ctrf-report.json';\n\nif (fs.existsSync(ctrfPath)) {\n  try {\n    const report = JSON.parse(fs.readFileSync(ctrfPath, 'utf8'));\n    const summary = report.results.summary;\n    const tests = report.results.tests;\n    const duration = summary.stop - summary.start;\n\n    // Build summary table\n    let content = '## 📊 Summary\\n\\n';\n    content += '| Metric | Value |\\n|--------|-------|\\n';\n    content += `| **Total Tests** | ${summary.tests} |\\n`;\n    content += `| **✓ Passed** | ${summary.passed} |\\n`;\n    content += `| **✗ Failed** | ${summary.failed} |\\n`;\n    content += `| **Duration** | ${formatDuration(duration)} |\\n\\n`;\n\n    // Build test matrix\n    const sdks = [...new Set(tests.map(t =\u003e (t.suite?.[0] || 'unknown')))].sort();\n    const testCases = [...new Set(tests.map(t =\u003e t.name.split(' :: ')[1] || t.name))].sort();\n\n    const testMap = new Map();\n    tests.forEach(test =\u003e {\n      const caseId = test.name.split(' :: ')[1] || test.name;\n      const suite = test.suite?.[0] || 'unknown';\n      testMap.set(`${suite}::${caseId}`, test);\n    });\n\n    content += '## 🧪 Test Matrix\\n\\n';\n    content += '| SDK | ' + testCases.join(' | ') + ' |\\n';\n    content += '|-----|' + testCases.map(() =\u003e '-----').join('|') + '|\\n';\n\n    sdks.forEach(sdk =\u003e {\n      content += `| **${sdk}** |`;\n      testCases.forEach(caseId =\u003e {\n        const test = testMap.get(`${sdk}::${caseId}`);\n        content += test ? ` ${getStatusIcon(test.status)} |` : ' - |';\n      });\n      content += '\\n';\n    });\n    content += '\\n';\n\n    // Build failed tests details\n    const failedTests = tests.filter(t =\u003e t.status === 'failed');\n    if (failedTests.length \u003e 0) {\n      content += '## ❌ Failed Tests Details\\n\\n';\n      failedTests.forEach(test =\u003e {\n        const caseId = test.name.split(' :: ')[1] || test.name;\n        const suite = test.suite?.[0] || 'unknown';\n        content += `\u003cdetails\u003e\\n\u003csummary\u003e\u003cstrong\u003e${suite}\u003c/strong\u003e :: ${caseId} (${test.duration}ms)\u003c/summary\u003e\\n\\n`;\n        if (test.trace) content += '```\\n' + test.trace + '\\n```\\n';\n        content += '\u003c/details\u003e\\n\\n';\n      });\n    }\n\n    resultsContent = content;\n  } catch (e) {\n    console.log('Could not parse test results:', e.message);\n  }\n}\n\nconst issueLabel = 'ai-integration-test-failure';\nconst date = new Date();\nconst formattedDate = date.toLocaleString('en-US', {\n  year: 'numeric',\n  month: 'long',\n  day: 'numeric',\n  hour: '2-digit',\n  minute: '2-digit',\n  timeZone: 'UTC',\n  timeZoneName: 'short'\n});\nconst body = `## AI Integration Test Failure\n\n**Date**: ${formattedDate}\n**Workflow Run**: ${runUrl}\n\n${resultsContent}\n\n---\n*This issue was automatically created by the [AI Integration Testing framework](https://github.com/getsentry/testing-ai-sdk-integrations).*\n`;\n\n// Check for existing open issues with the label\nconst issues = await github.rest.issues.listForRepo({\n  owner: context.repo.owner,\n  repo: context.repo.repo,\n  labels: issueLabel,\n  state: 'open'\n});\n\nif (issues.data.length \u003e 0) {\n  // Update existing issue\n  await github.rest.issues.update({\n    owner: context.repo.owner,\n    repo: context.repo.repo,\n    issue_number: issues.data[0].number,\n    body: body\n  });\n  console.log(`Updated existing issue #${issues.data[0].number}`);\n} else {\n  // Create new issue\n  await github.rest.issues.create({\n    owner: context.repo.owner,\n    repo: context.repo.repo,\n    title: '❌ AI Integration Tests Failed',\n    body: body,\n    labels: [issueLabel, 'automated']\n  });\n  console.log('Created new issue');\n}\n"}}]},"default_branch":"main","path":null},"repo_metadata":{"id":333661340,"uuid":"1095017233","full_name":"getsentry/testing-ai-sdk-integrations","owner":"getsentry","description":"This repo contains everything needed to test Sentry SDK AI integrations for Python and JavaScript.","archived":false,"fork":false,"pushed_at":"2026-03-18T15:38:52.000Z","size":1260,"stargazers_count":2,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-19T04:56:09.038Z","etag":null,"topics":["tag-non-production"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getsentry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]}},"created_at":"2025-11-12T13:34:40.000Z","updated_at":"2026-03-18T15:38:56.000Z","dependencies_parsed_at":"2026-02-06T16:12:53.410Z","dependency_job_id":null,"html_url":"https://github.com/getsentry/testing-ai-sdk-integrations","commit_stats":null,"previous_names":["getsentry/testing-ai-sdk-integrations"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/getsentry/testing-ai-sdk-integrations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Ftesting-ai-sdk-integrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Ftesting-ai-sdk-integrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Ftesting-ai-sdk-integrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Ftesting-ai-sdk-integrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/testing-ai-sdk-integrations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Ftesting-ai-sdk-integrations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30790619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-20T22:51:33.771Z","status":"online","status_checked_at":"2026-03-21T02:00:07.962Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"repo_metadata_updated_at":"2026-03-21T15:34:14.658Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":43.1398498091838,"dependent_packages_count":0.0,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":21.5699249045919},"purl":"pkg:githubactions/getsentry/testing-ai-sdk-integrations","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/getsentry/testing-ai-sdk-integrations","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/getsentry/testing-ai-sdk-integrations","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/getsentry/testing-ai-sdk-integrations/dependencies","status":null,"funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"critical":null,"issue_metadata":{"last_synced_at":"2026-03-21T15:34:13.915Z","issues_count":0,"pull_requests_count":11,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":249660.54545454544,"issues_closed_count":0,"pull_requests_closed_count":11,"pull_request_authors_count":2,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":1.3636363636363635,"merged_pull_requests_count":10,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":11,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":249660.54545454544,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":11,"past_year_pull_request_authors_count":2,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":1.3636363636363635,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":10,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Ftesting-ai-sdk-integrations/issues","maintainers":[{"login":"nicohrubec","count":6,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/nicohrubec"},{"login":"constantinius","count":5,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/constantinius"}],"active_maintainers":[{"login":"nicohrubec","count":6,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/nicohrubec"},{"login":"constantinius","count":5,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/constantinius"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/getsentry%2Ftesting-ai-sdk-integrations/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/getsentry%2Ftesting-ai-sdk-integrations/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/getsentry%2Ftesting-ai-sdk-integrations/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/getsentry%2Ftesting-ai-sdk-integrations/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/getsentry%2Ftesting-ai-sdk-integrations/codemeta","maintainers":[]}