How regro/cf-scripts works
High-Level Architecture Components
The system should be represented with these main components:
a) Core Bot Services (represented as separate containers/processes):
• Version Update Service (bot-versions.yml)
• PR Management Service (bot-prs.yml)
• Feedstock Management Service (bot-feedstocks.yml)
• Graph Builder Service (bot-make-graph.yml)
• Migration Generator Service (bot-make-migrators.yml)
• PyPI Mapping Service (bot-pypi-mapping.yml)
• Status Page Update Service (bot-update-status-page.yml)
• Main Bot Service (bot-bot.yml)
b) Data Storage Layer:
• Graph Data Store (cf-graph-countyfair repository)
• MongoDB Backend (optional)
• Local File Cache
• GitHub Raw Content Backend
c) External Services Integration:
• GitHub API
• PyPI API
• Conda Repositories
• Docker Container Registry
Data Flow Relationships
a) Data Collection Flows:
• Feedstock Service → Graph Data Store (feedstock metadata)
• Version Service → Graph Data Store (package versions)
• PyPI Mapping Service → Graph Data Store (package mappings)
b) Processing Flows:
• Graph Builder → Graph Data Store (dependency graph)
• Migration Generator → Graph Data Store (migration definitions)
• Main Bot → Graph Data Store (PR status and updates)
c) Output Flows:
• Main Bot → GitHub (PRs and comments)
• Status Page Service → Web (status updates)
Key Architectural Elements
Specific components:
a) LazyJson Backend System:
• File Backend
• MongoDB Backend
• GitHub Backend
• Caching Layer
b) Migration System:
• Migration Classes
• YAML Parser
• Version Update Logic
• Recipe Parser
Important Subsystems to Detail
a) Migration System:
• YAML Parser
• Jinja2 Processing
• Version Update Algorithm
• Selector Management
b) Data Management:
• LazyJson Implementation
• Backend Synchronization
• Caching Strategy
Operational Flow
Event-driven and cron-based execution model:
a) Scheduled Jobs:
• 15-minute keepalive checks
• Version update cycles
• PR status updates
b) Event-Driven Operations:
• PR creation triggers
• Feedstock updates
• Migration processing
Deployment Context
Deployment-specific elements:
a) Container Infrastructure:
• Docker container relationships
• GitHub Actions runners
• Resource allocation
b) Security Boundaries:
• Token management
• API access controls
• Data persistence zones