Automated RSS/Atom Feed Validation Workflow
@matrixise ya está trabajando en esto.
Desde el 7/1/2026.
- Lenguaje dominante
- Python
- Estrellas
- 144
- Forks
- 197
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi @hugovk! 👋
Summary
I've been working on improving the issue templates and adding automated RSS/Atom feed validation for Planet Python feed requests. This addresses #579 by implementing automated feed validation in CI.
What I've Implemented
I've created a complete GitHub Actions workflow in my fork (https://github.com/matrixise/planet) that includes:
1. Modernized Issue Templates
- Migrated from old markdown format to GitHub's YAML issue forms
- Two templates: "Add or Edit RSS Feed" and "Bug Report"
- Structured form fields with validation requirements
2. Automated Feed Validation Workflow
The workflow automatically validates feeds when issues are submitted, addressing the concerns raised in #579:
- ✅ Validates URL format
- ✅ Checks feed accessibility (HTTP 200)
- ✅ Validates RSS/Atom structure using feedparser
- ✅ Detects duplicate feeds in config.ini
- ✅ Analyzes Python content (keyword detection)
- 📝 Posts detailed validation results as comments
- 🏷️ Adds labels based on validation status
This provides immediate CI validation for new feed submissions, catching issues before manual review.
3. Validation Results
The workflow posts a comprehensive comment showing:
- All validation checks with emoji indicators (✅/⚠️/❌)
- Python content analysis with keyword detection score
- Duplicate detection against existing feeds
- Sample article titles from the feed
- Clear next steps for contributors and maintainers
- Link to W3C Feed Validator for detailed validation
Example Output
See my test issue for a live example: https://github.com/matrixise/planet/issues/2
Benefits
- Addresses #579: Automatic feed validation in CI for new submissions
- Reduced maintainer workload: Automatic validation catches common issues
- Faster feedback: Contributors get immediate validation results
- Better quality: Ensures feeds are accessible, valid, and Python-relevant before review
- Duplicate prevention: Automatically detects if a feed already exists
- Transparency: Clear, detailed feedback for all submissions
Implementation Details
New Files:
.github/workflows/validate-feed-request.yml- Main validation workflow.github/scripts/validate_feed.py- Feed validation logic (~450 lines).github/scripts/format_comment.py- Comment formatting (~250 lines).github/scripts/get_labels.py- Label extraction helper
Dependencies:
feedparser- RSS/Atom parsingrequests- HTTP accessibility checks
Labels Used:
feed-request- Triggers the workflowvalidation-passed- All checks passedvalidation-warning- Passed with warningsvalidation-failed- Critical failureduplicate-feed- Feed already exists
How This Addresses #579
While #579 requested periodic validation of existing feeds (cron job), this implementation provides:
- Immediate validation for new feed submissions via issues
- CI-based validation that runs automatically on GitHub Actions
- Foundation for future work: The validation scripts can easily be extended to run as a periodic cron job to check all existing feeds
The current implementation focuses on the submission workflow (validating new feeds), which is the most critical use case. Adding periodic validation of all existing feeds would be a natural next step.
Current Status
⚠️ Note: This is still in early testing phase. I haven't completed all test scenarios yet, but the initial results look very promising! The workflow successfully validates feeds and provides helpful feedback. I'm opening this issue to get early feedback from maintainers before investing more time in comprehensive testing and refinement.
Initial Testing
The workflow has been tested on my fork with the following scenario:
- ✅ Valid feed with good Python content (Real Python)
The code includes logic to handle:
- HTTP errors (404, timeouts, connection errors)
- Malformed XML/RSS feeds (via feedparser's bozo detection)
- Duplicate detection in config.ini
- Python content analysis (keyword detection in titles and summaries)
However, I haven't systematically tested all error scenarios yet. The implementation looks solid, but comprehensive testing across different feed types and failure modes is still needed.
Python Content Detection Details
The workflow analyzes up to 10 recent articles and searches for Python-related keywords in titles and article summaries:
- Keywords:
python,django,flask,fastapi,pytest,pip,pandas,numpy,asyncio,pypi,virtualenv,conda,jupyter,matplotlib,scikit,tensorflow,pytorch - Score = percentage of articles containing at least one keyword
- Thresholds: <30% = warning, 30-60% = suggestion to filter, >60% = good
Next Steps
I'd like to contribute this to the main python/planet repository. The workflow is:
- Non-blocking (informational, doesn't prevent issue creation)
- Complements manual review (doesn't replace maintainer judgment)
- Fully automated (no maintenance required once set up)
Would you be interested in this addition? I'm happy to:
- Complete more comprehensive testing
- Open a PR with the implementation
- Make any adjustments based on feedback
- Help with documentation
- Extend it to add periodic validation of existing feeds (to fully address #579)
Let me know if you'd like me to proceed with a PR or if you'd like to see more testing first!
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.