-
Notifications
You must be signed in to change notification settings - Fork 0
🤖 Add Mass Repository CI/CD Analysis System (956 repos) #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
- Creates 956 agent runs for comprehensive Repomix-based analysis - Analyzes all Zeeeepa org repos for Enterprise CI/CD compatibility - Rates each repo on 8 criteria (Build, CI/CD, Quality, Docs, Docker, Tests, Security, Enterprise) - Automatic rate limiting (30 agents/min) - All ratings committed to single branch → one PR - Comprehensive documentation and usage instructions Execution time: ~30 minutes for 956 repositories Output: ratings/<repo-name>.json for each repository Co-authored-by: Zeeeepa <[email protected]>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 issues found across 4 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="create_analysis_agents.sh">
<violation number="1" location="create_analysis_agents.sh:153">
P2: JSON array construction produces invalid JSON when the last repository (or trailing repos) fail. The comma is added based on INDEX position, not on whether this is actually the last successful entry. Consider tracking successful entries separately or building the JSON differently.</violation>
</file>
<file name="mass_repo_analysis.py">
<violation number="1" location="mass_repo_analysis.py:159">
P2: `datetime.utcnow()` is deprecated since Python 3.12. Use `datetime.now(datetime.timezone.utc)` instead. This pattern also appears on lines 207 and 234.</violation>
</file>
Reply to cubic to teach it or ask questions. Tag @cubic-dev-ai to re-run a review.
|
|
||
| # Save to results | ||
| echo "$BODY" | jq -c ". + {repo_name: \"$REPO_NAME\"}" >> "$RESULTS_FILE" | ||
| if [ $INDEX -lt $TOTAL_REPOS ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: JSON array construction produces invalid JSON when the last repository (or trailing repos) fail. The comma is added based on INDEX position, not on whether this is actually the last successful entry. Consider tracking successful entries separately or building the JSON differently.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At create_analysis_agents.sh, line 153:
<comment>JSON array construction produces invalid JSON when the last repository (or trailing repos) fail. The comma is added based on INDEX position, not on whether this is actually the last successful entry. Consider tracking successful entries separately or building the JSON differently.</comment>
<file context>
@@ -0,0 +1,193 @@
+
+ # Save to results
+ echo "$BODY" | jq -c ". + {repo_name: \"$REPO_NAME\"}" >> "$RESULTS_FILE"
+ if [ $INDEX -lt $TOTAL_REPOS ]; then
+ echo "," >> "$RESULTS_FILE"
+ fi
</file context>
| "success": True, | ||
| "run_id": run.id, | ||
| "repo": repo_name, | ||
| "created_at": datetime.utcnow().isoformat() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: datetime.utcnow() is deprecated since Python 3.12. Use datetime.now(datetime.timezone.utc) instead. This pattern also appears on lines 207 and 234.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At mass_repo_analysis.py, line 159:
<comment>`datetime.utcnow()` is deprecated since Python 3.12. Use `datetime.now(datetime.timezone.utc)` instead. This pattern also appears on lines 207 and 234.</comment>
<file context>
@@ -0,0 +1,279 @@
+ "success": True,
+ "run_id": run.id,
+ "repo": repo_name,
+ "created_at": datetime.utcnow().isoformat()
+ }
+
</file context>
🎯 Overview
Automated system to analyze all 956 repositories in the Zeeeepa organization for Enterprise CI/CD compatibility using Codegen agents and Repomix.
🚀 What This Adds
Core Components
mass_repo_analysis.py- Main Python script using Codegen SDKcreate_analysis_agents.sh- Bash alternative using curlANALYSIS_README.md- Comprehensive documentationrepos_list.txt- Repository list template📊 Analysis Capabilities
Each repository is analyzed using Repomix and rated on 8 Enterprise CI/CD criteria (1-10 scale):
📁 Output Structure
Generates structured ratings for each repo:
Each rating includes:
🔄 Workflow
graph LR A[Fetch 956 Repos] --> B[Create Agent Runs] B --> C{Rate Limit} C -->|30/min| D[Agent Analyzes Repo] D --> E[Uses Repomix] E --> F[Rates 8 Criteria] F --> G[Generates JSON] G --> H[Commits to Branch] H --> I{More Repos?} I -->|Yes| C I -->|No| J[Create PR]⚡ Quick Start
✅ Benefits
🛠️ Technical Details
📝 Next Steps
repos_list.txtwith all 956 repository namesmass_repo_analysis.pyto create agent runs🎉 Impact
This system enables:
Ready to analyze 956 repositories in 30 minutes! 🚀
💻 View my work • 👤 Initiated by @Zeeeepa • About Codegen
⛔ Remove Codegen from PR • 🚫 Ban action checks
Summary by cubic
Adds an automated system to analyze all 956 Zeeeepa repositories for CI/CD readiness using Codegen agents and Repomix. It creates rate‑limited agent runs, generates per‑repo JSON ratings, and pushes results to a single analysis branch.
New Features
Migration
Written for commit 540ceed. Summary will update automatically on new commits.