Add GitHub Actions training dataset for CI/CD workflow understanding#44
Conversation
There was a problem hiding this comment.
Hi @Copilot! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
Co-authored-by: Bryan-Roe <74067792+Bryan-Roe@users.noreply.github.com>
Co-authored-by: Bryan-Roe <74067792+Bryan-Roe@users.noreply.github.com>
Co-authored-by: Bryan-Roe <74067792+Bryan-Roe@users.noreply.github.com>
There was a problem hiding this comment.
Hi @Bryan-Roe! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 375e829d16
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR adds a comprehensive GitHub Actions training dataset to enable AI models to understand CI/CD workflows and DevOps best practices. The implementation includes a generator script that parses real workflow files from the repository and creates Q&A pairs across 11 different templates.
Changes:
- Adds a dataset generator that analyzes 6 real workflows and creates 50 Q&A samples (42 train, 8 test)
- Implements 11 Q&A templates covering workflow structure, triggers, jobs, best practices, and troubleshooting
- Includes comprehensive test coverage with 9 test functions validating format, content quality, and regeneration
- Provides detailed documentation for dataset usage and training integration
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
scripts/generate_github_actions_dataset.py |
Generator script that parses YAML workflows and creates Q&A pairs using 11 templates; includes general GitHub Actions knowledge |
tests/test_github_actions_dataset.py |
Comprehensive test suite with 9 tests covering format validation, content quality, diversity, and regeneration |
datasets/chat/github_actions/train.json |
42 training samples in JSONL format compatible with LoRA training infrastructure |
datasets/chat/github_actions/test.json |
8 test samples for validation |
datasets/chat/github_actions/metadata.json |
Dataset metadata including record counts, seed, and workflow inventory |
datasets/chat/github_actions/README.md |
Comprehensive documentation with usage examples, training instructions, and quality notes |
README.md |
Updated main README to reference the new GitHub Actions dataset |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… JSON Co-authored-by: Bryan-Roe <74067792+Bryan-Roe@users.noreply.github.com>
✅ Train on GitHub Actions - COMPLETE
Successfully implemented comprehensive GitHub Actions training dataset for AI model fine-tuning.
🎯 Recent Updates
datetime.now().isoformat()instead of double-encoded JSON string.ymland.yamlworkflow file extensionsosandre)📊 Final Dataset Statistics
datasets/chat/github_actions/🏗️ Files Created/Modified
scripts/generate_github_actions_dataset.py- Dataset generation script (650 lines)datasets/chat/github_actions/train.json- 42 training samplesdatasets/chat/github_actions/test.json- 8 test samplesdatasets/chat/github_actions/metadata.json- Dataset metadata (with proper date format)datasets/chat/github_actions/README.md- Comprehensive documentationtests/test_github_actions_dataset.py- Test suite with 9 testsREADME.md- Updated main README to include new dataset📚 Knowledge Coverage
Workflow-Specific Content (from 6 real workflows):
General Topics Covered:
🧪 Quality Assurance
Test Suite:
tests/test_github_actions_dataset.py🔄 Integration Status
✅ Fully integrated with existing training infrastructure:
🚀 Usage
Generate dataset:
Run tests:
python -m pytest tests/test_github_actions_dataset.py -v -k "not regeneration"Use in training:
📈 Expected Impact
Models trained on this dataset will be able to:
Status: 🟢 Production-ready - Dataset is ready for immediate use in training cycles
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.