Troubleshooting
Solutions to common problems you might encounter while using Unentropy.
Configuration Issues
Section titled “Configuration Issues”Invalid Metric Key
Section titled “Invalid Metric Key”Symptoms: Error: Invalid metric key "Test-Coverage"
Cause: Metric keys must be lowercase with hyphens only
Solution: Use pattern ^[a-z0-9-]+$:
{ "metrics": { "test-coverage": { ... } // ✅ Valid // "Test-Coverage": { ... } ❌ Invalid }}Metric Collection Issues
Section titled “Metric Collection Issues”Coverage Collection Fails
Section titled “Coverage Collection Fails”Symptoms: Error: coverage/lcov.info not found
Cause: Coverage report not generated before metric collection
Solution: Run tests with coverage first:
bun test --coverage --coverage-reporter=lcovbunx unentropy testFor CI workflows, ensure test step runs before metrics:
- name: Run tests with coverage run: bun test --coverage --coverage-reporter=lcov
- name: Track metrics uses: unentropy/track-metrics-action@v1Storage Issues
Section titled “Storage Issues”Artifact Not Found
Section titled “Artifact Not Found”Symptoms: Warning: No database artifact found
Cause: First run or artifact expired
Solution: This is normal on first run. The action creates a new database. On subsequent runs, the artifact should be found.
Check artifact retention in repository Settings → Actions → Artifact retention (default: 90 days).
S3 Authentication Failed
Section titled “S3 Authentication Failed”Symptoms: Error: S3 authentication failed
Cause: Invalid or missing credentials
Solutions:
-
Verify credentials in GitHub Secrets:
- Go to Settings → Secrets and variables → Actions
- Confirm
S3_ACCESS_KEY_IDandS3_SECRET_ACCESS_KEYexist - Check values are correct (no extra spaces)
-
Verify IAM permissions:
s3:GetObjects3:PutObjects3:ListBucket -
Check endpoint URL is correct:
s3-endpoint: https://s3.amazonaws.com # AWSs3-endpoint: https://<account-id>.r2.cloudflarestorage.com # R2
Database Download Failed
Section titled “Database Download Failed”Symptoms: Error: Failed to download database from S3
Cause: Network, permissions, or bucket configuration issue
Solutions:
- Verify bucket name and region are correct
- Check bucket exists and is accessible
- Ensure credentials have
s3:GetObjectpermission - Test S3 connectivity from GitHub Actions runner
- Check S3 provider status page for outages
Database Upload Failed
Section titled “Database Upload Failed”Symptoms: Error: Failed to upload database to S3
Cause: Permission or quota issue
Solutions:
- Verify credentials have
s3:PutObjectpermission - Check bucket quota/storage limits
- Ensure bucket allows uploads
- Review bucket policies for restrictions
- Try uploading a small test file manually
Concurrent Workflow Runs
Section titled “Concurrent Workflow Runs”Symptoms: Database corruption or lost data
Cause: Multiple workflows updating database simultaneously
Solution: Use workflow concurrency groups:
concurrency: group: unentropy-${{ github.ref }} cancel-in-progress: falseThis ensures only one workflow processes metrics at a time per branch.
Quality Gate Comment Not Posted
Section titled “Quality Gate Comment Not Posted”Symptoms: No comment appears on PR
Cause: Permissions or workflow context issue
Solutions:
-
Verify
pull-requests: writepermission:jobs:quality-gate:permissions:pull-requests: write -
Check workflow runs in PR context:
on:pull_request: # Not pull_request_target -
Review workflow logs for GitHub API errors
-
Ensure
GITHUB_TOKENhas sufficient permissions:- Go to Settings → Actions → General
- Check “Workflow permissions”
Report Issues
Section titled “Report Issues”Report Shows No Data
Section titled “Report Shows No Data”Symptoms: Empty charts despite successful collection
Cause: Database not accessible or empty
Solutions:
- Verify metrics collected successfully in workflow logs
- Check storage backend is working
- Download database artifact and verify it contains data
- Ensure report generation uses same database as collection
CLI Issues
Section titled “CLI Issues”Project Type Not Detected
Section titled “Project Type Not Detected”Symptoms: Error: Cannot detect project type
Cause: No marker files in current directory
Solutions:
-
Specify type explicitly:
Terminal window bunx unentropy init --type javascript -
Ensure marker files are in current directory (not subdirectories):
- JavaScript:
package.json - PHP:
composer.json - Go:
go.mod - Python:
pyproject.toml,requirements.txt
- JavaScript:
Getting Help
Section titled “Getting Help”-
Check GitHub Issues: https://github.com/unentropy/unentropy/issues
-
Enable Verbose Logging:
Terminal window bunx unentropy test --verbose -
Collect Debug Info:
- Unentropy version:
bunx unentropy --version - Node/Bun version:
bun --version - OS:
uname -a(Linux/Mac) orver(Windows) - Configuration:
bunx unentropy verify
- Unentropy version:
-
File an Issue: Include:
- Steps to reproduce
- Expected vs actual behavior
- Error messages (full text)
- Debug info from above
Related Resources
Section titled “Related Resources”- Getting Started Guide - Initial setup
- Configuration Reference - Config syntax
- CLI Commands - Command reference
- GitHub Actions - Workflow setup