troubleshooting
Troubleshooting
CI/CD Issues
Shell Syntax Error in sync:auto Job
Problem: Pipeline fails with syntax error: unterminated quoted string
Cause: Alpine Linux uses ash (not bash). Quotes inside JSON strings in heredocs break parsing.
Bad:
"description": "...\n/label ~\"workflow::auto-merge\" ~\"type::maintenance\"",
Good:
"description": "...\\n/label ~workflow::auto-merge ~type::maintenance",
Solution:
- Remove quotes around GitLab label names (they're optional)
- Escape newlines with
\\nnot\nin JSON - Fixed in MR #264
pnpm vs npm Mismatch
Problem: CI job fails because pnpm-lock.yaml doesn't exist
Cause: Project uses npm but some CI jobs were configured for pnpm
Solution: Use npm commands:
# Bad pnpm install --frozen-lockfile # Good npm ci --prefer-offline --no-audit || npm install
Review Environments Stuck in "Stopping" State
Problem: 24+ review environments stuck, cannot be deleted via API (403 Forbidden)
Cause: GitLab has restrictions on environment deletion in certain states
Solution: Manual cleanup via GitLab UI:
- Go to:
Settings CI/CD Environments - Or: https://gitlab.com/blueflyio/ossa/openstandardagents.org/-/environments/folders/review
- Click the trash icon for each stuck environment
Build Issues
Examples Page Shows Empty
Problem: /examples/ page loads but shows no examples
Cause: website/public/examples.json is empty []
Solution:
- Run
npm run fetch-examplesinwebsite/directory - Or trigger the
sync:autoCI job - The scheduled pipeline runs every 6 hours automatically
TypeScript Build Errors
Problem: Build fails with TypeScript errors
Solution:
cd website npm run typecheck # Check for errors npm run build # Full build
Common fixes:
- Check for missing type definitions
- Verify all imports are correct
- Run
npm installto ensure dependencies are current
Development Issues
Local Development Not Loading Data
Problem: Site runs locally but pages are empty
Solution: Fetch all content sources:
cd website npm run fetch-spec # Fetch OSSA schema npm run fetch-examples # Fetch examples npm run fetch-versions # Fetch version info npm run fetch-highlights # Fetch release highlights npm run sync-version # Sync version references npm run fix-versions # Fix any version mismatches
Git Push Rejected - Protected Branch
Problem: git push rejected because branch is protected
Cause: main and release/* branches require merge requests
Solution:
- Create feature branch:
git checkout -b feature/my-change - Push feature branch:
git push -u origin feature/my-change - Create MR in GitLab UI
- MR targets
release/v0.3.x(notmaindirectly)
Deployment Issues
Review App Not Deploying
Problem: Review app job runs but site not accessible
Cause: Requires local Kubernetes cluster (OrbStack) with KUBECONFIG_LOCAL CI variable
Solution:
- Set up OrbStack with K8s enabled
- Export kubeconfig:
kubectl config view --raw | base64 | pbcopy - Add
KUBECONFIG_LOCALas CI/CD variable (masked) - Review apps deploy to
*.openstandardagents.orb.local
GitLab Pages 404
Problem: GitLab Pages returns 404 after deployment
Cause: Build artifacts not in public/ directory
Solution:
- Verify
pagesjob copies build topublic/:script: - cp -r website-build public - Check artifacts path is
public/ - Wait 5-10 minutes for Pages propagation
Performance Issues
Slow Build Times
Problem: CI pipeline takes too long
Solutions:
- Enable caching:
cache: key: ${CI_COMMIT_REF_SLUG} paths: - website/node_modules/ - website/.next/cache/ - Use
npm ciinstead ofnpm install - Skip unnecessary jobs with rules
Getting Help
If you encounter issues not listed here:
- Check existing GitLab issues: https://gitlab.com/blueflyio/ossa/openstandardagents.org/-/issues
- Check CI/CD job logs for specific error messages
- Open a new issue with:
- Error message
- Steps to reproduce
- Expected vs actual behavior