This guide describes the standard workflow for debugging CI/CD failures in Infinito.Nexus. Following this process ensures efficient troubleshooting, proper documentation, and optimal usage of GitHub Action runner resources.
1. Identify and Export Failing Job Logs
When a deployment job fails:
Always export the full logs
- Open the failed job in GitHub Actions
- Click “View raw logs”
- Download and save the file as:
job-logs.txt
This step is mandatory — debugging without raw logs leads to incomplete analysis.
2. Determine Scope of the Error
Case A: Error belongs to your current development (same branch / related app)
If the error:
- Occurs in an app you are working on
- Is related to your current branch
Then:
- Place
job-logs.txtinside the affected repository - Commit it to the same branch where the error occurred
3. Use AI Agent for Debugging
Open your IDE with the repository and ask the AI Agent:
Where does the error from the job-logs.txt come from? Debug the error and implement a solution.
Expected outcome:
- Root cause is identified
- Fix is implemented directly in code
- Solution is validated locally (if possible)
4. Commit the Fix
After resolving the issue:
- Remove or keep
job-logs.txtdepending on usefulness - Commit the fix to the same branch
5. Optimize CI Usage (Best Practice)
To save GitHub Actions runner resources, avoid triggering full pipelines unnecessarily.
Instead, run a targeted manual workflow:
-
Use:
https://github.com/infinito-nexus/core/blob/main/.github/workflows/entry-manual.yml -
Configure:
- Distro:
debian - App: name of the affected app
- Distro:
This ensures:
- Faster feedback
- Lower CI cost
- Reduced system load
6. Case B: Error is NOT related to your branch
If the error:
- Comes from an unrelated app
- Is not caused by your current changes
Then DO NOT fix it in your branch.
7. Create an Issue
Create an issue here:
https://s.infinito.nexus/issues
Include:
- Upload
job-logs.txt - Clear description of the failure
Important:
Check: “explored during CI/CD run”
8. Fixing Unrelated Issues
If you want to fix the unrelated issue:
-
Follow the official forking process:
https://s.infinito.nexus/forking -
Create a new branch
-
Implement the fix there
-
Open a pull request
Summary Workflow
CI fails → Export logs → Analyze scope
IF related:
→ Add logs to branch
→ Ask AI agent
→ Fix + commit
→ Run manual workflow (debian + app)
ELSE:
→ Create issue
→ Upload logs
→ Mark as "explored during CI/CD run"
→ Fix via new branch (forking process)
Key Principles
Logs are the single source of truth
AI-assisted debugging is mandatory workflow
Use manual workflows to save CI resources
Keep fixes scoped and clean
Separate concerns via issues and branches
If you follow this process consistently, CI/CD debugging becomes fast, reproducible, and scalable ![]()