Home

Troubleshooting

Common issues and solutions for Exolar integration. Can't find your issue? Open an issue on GitHub.

Quick Diagnostic

First, check your CI logs for these messages:

# ✅ Good - Reporter initialized
[Exolar] Initialized - will send results to dashboard
[Exolar] Sending 15 results to dashboard...
[Exolar] Results sent successfully - execution_id: 123

# ❌ Bad - API key missing
[Exolar] EXOLAR_API_KEY not set, reporter disabled

# ❌ Bad - Auth failed
[Exolar] Failed to send results: 401 Unauthorized

No results appearing in dashboard

Symptoms

  • Tests run successfully but nothing shows in Exolar
  • No errors in CI logs
  • Dashboard shows empty or stale data

Solutions

Verify API key is set

Check that EXOLAR_API_KEY is properly set in your GitHub Secrets and passed to the test job.

# In your workflow
env:
  EXOLAR_API_KEY: ${{ secrets.EXOLAR_API_KEY }}
Check CI logs for initialization

Look for the Exolar reporter initialization message in your CI output.

[Exolar] Initialized - will send results to dashboard
Verify API key is valid

Make sure your API key starts with 'exolar_' and hasn't been revoked.

Check organization

Results are scoped to the organization that owns the API key. Make sure you're viewing the correct organization in the dashboard.

Authentication failed / 401 error

Symptoms

  • CI logs show 'Unauthorized' or '401' error
  • Results not being uploaded

Solutions

Create a new API key

Go to Settings > API Keys and create a fresh key.

Update GitHub Secret

Replace the old secret with the new API key in your repository settings.

Check for typos

Ensure the secret name matches exactly: EXOLAR_API_KEY

Screenshots/videos not uploading

Symptoms

  • Test results appear but no artifacts
  • Artifact links missing or broken
  • Logs show 'Skipping artifact'

Solutions

Configure Playwright to capture artifacts

Add artifact capture settings to your playwright.config.ts:

use: {
  screenshot: "only-on-failure",
  video: "retain-on-failure",
  trace: "retain-on-failure",
}
Check artifact sizes

Default limit is 5MB. Increase if needed:

[exolar, {
  apiKey: process.env.EXOLAR_API_KEY,
  maxArtifactSize: 10 * 1024 * 1024, // 10MB
}]
Verify includeArtifacts is true

Make sure you haven't disabled artifact uploads:

[exolar, {
  apiKey: process.env.EXOLAR_API_KEY,
  includeArtifacts: true, // default
}]

Reporter disabled / not running in CI

Symptoms

  • No Exolar messages in CI logs
  • Reporter works locally but not in CI

Solutions

Verify CI environment variables

The reporter checks for CI=true or GITHUB_ACTIONS=true. Make sure these are set.

# Should be automatic in GitHub Actions, but you can force it:
env:
  CI: true
Check for disabled flag

Ensure disabled is not set to true:

[exolar, {
  apiKey: process.env.EXOLAR_API_KEY,
  disabled: false, // or remove this line
}]
Test CI detection locally

Run with CI=true to test:

CI=true npx playwright test

Where are local AI context files?

Symptoms

  • Want to use AI-enriched failure context locally
  • Looking for JSON files for debugging

Solutions

Find the files

When tests fail, the reporter creates JSON files in:

test-results/ai-failures/
Use with AI assistants

These files contain structured error context that AI coding assistants can use for intelligent debugging. Point your AI assistant to these files when asking about test failures.

Results showing wrong branch name

Symptoms

  • Branch shows as 'merge' or PR number
  • Expected branch name not appearing

Solutions

This is handled automatically

The reporter prefers GITHUB_HEAD_REF (the actual source branch for PRs) over GITHUB_REF_NAME. If you're still seeing issues, check your workflow is running on the PR event.

For push events

GITHUB_REF_NAME is used, which should be the correct branch name.

Still need help?

If you can't find a solution here, please:

  1. Check your CI logs for any error messages
  2. Verify your API key is correctly set
  3. Open an issue on GitHub with:
    • Your reporter configuration (without the API key)
    • Relevant CI logs
    • Playwright version

Related Documentation