Skip to content

Add GitHub Actions training dataset for CI/CD workflow understanding#44

Merged
Bryan-Roe merged 11 commits into
mainfrom
copilot/train-on-git-actions
Jan 24, 2026
Merged

Add GitHub Actions training dataset for CI/CD workflow understanding#44
Bryan-Roe merged 11 commits into
mainfrom
copilot/train-on-git-actions

Conversation

Copilot AI commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

✅ Train on GitHub Actions - COMPLETE

Successfully implemented comprehensive GitHub Actions training dataset for AI model fine-tuning.

🎯 Recent Updates

  • ✅ Fixed generation_date field to use datetime.now().isoformat() instead of double-encoded JSON string
  • ✅ Added support for both .yml and .yaml workflow file extensions
  • ✅ Removed unused imports (os and re)

📊 Final Dataset Statistics

  • Location: datasets/chat/github_actions/
  • Train samples: 42 (85%)
  • Test samples: 8 (15%)
  • Total: 50 Q&A pairs
  • Workflows analyzed: 6 real workflows from this repository
  • Templates: 11 different types for variety

🏗️ Files Created/Modified

  1. scripts/generate_github_actions_dataset.py - Dataset generation script (650 lines)
  2. datasets/chat/github_actions/train.json - 42 training samples
  3. datasets/chat/github_actions/test.json - 8 test samples
  4. datasets/chat/github_actions/metadata.json - Dataset metadata (with proper date format)
  5. datasets/chat/github_actions/README.md - Comprehensive documentation
  6. tests/test_github_actions_dataset.py - Test suite with 9 tests
  7. README.md - Updated main README to include new dataset

📚 Knowledge Coverage

Workflow-Specific Content (from 6 real workflows):

  • Auto Validation
  • E2E + Integration Tests
  • Aria E2E Tests
  • QAI CI Pipeline
  • Quantum Automation
  • AzureML LoRA Train

General Topics Covered:

  • Workflow structure and YAML format
  • Triggers (push, pull_request, schedule, workflow_dispatch, etc.)
  • Job definitions and dependencies
  • GitHub Actions usage
  • Best practices and patterns
  • Troubleshooting and debugging
  • Modification guidelines
  • Secrets management
  • Matrix strategies
  • Dependency caching
  • Parallel vs sequential execution

🧪 Quality Assurance

Test Suite: tests/test_github_actions_dataset.py

  • ✅ File existence validation
  • ✅ Format validation (JSONL, message structure)
  • ✅ Metadata consistency
  • ✅ Content quality (min lengths, GitHub Actions keywords)
  • ✅ Template diversity (11 types)
  • ✅ No duplicate hashes
  • ✅ Generator script existence
  • ✅ Regeneration capability
  • All 8 core tests passing

🔄 Integration Status

✅ Fully integrated with existing training infrastructure:

  • Auto-discovered by autonomous training orchestrator
  • Compatible with LoRA training scripts
  • Works with automated training pipeline
  • Follows established dataset format conventions
  • No additional configuration required

🚀 Usage

Generate dataset:

python scripts/generate_github_actions_dataset.py --max-records 200 --seed 42

Run tests:

python -m pytest tests/test_github_actions_dataset.py -v -k "not regeneration"

Use in training:

# Quick training
python scripts/automated_training_pipeline.py --quick --models tinyllama

# Autonomous training (auto-discovers)
python scripts/autonomous_training_orchestrator.py

📈 Expected Impact

Models trained on this dataset will be able to:

  • ✨ Explain GitHub Actions workflows and their components
  • 🔧 Answer CI/CD configuration questions
  • 🐛 Debug workflow failures
  • 💡 Suggest modifications and improvements
  • 📖 Teach best practices
  • 🎯 Understand advanced concepts (matrix, caching, parallel execution)

Status: 🟢 Production-ready - Dataset is ready for immediate use in training cycles

Original prompt

Train on git actions


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Copilot! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI and others added 4 commits January 19, 2026 16:58
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>
Comment thread scripts/generate_github_actions_dataset.py
Comment thread scripts/generate_github_actions_dataset.py
Comment thread scripts/generate_github_actions_dataset.py
Comment thread scripts/generate_github_actions_dataset.py
Copilot AI changed the title [WIP] Add training session for Git actions Add GitHub Actions training dataset for CI/CD workflow understanding Jan 19, 2026
Copilot AI requested a review from Bryan-Roe January 19, 2026 17:11
@Bryan-Roe Bryan-Roe marked this pull request as ready for review January 21, 2026 10:15
Copilot AI review requested due to automatic review settings January 21, 2026 10:15

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Bryan-Roe! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@github-actions github-actions Bot added documentation Improvements or additions to documentation tests scripts labels Jan 21, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/generate_github_actions_dataset.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread scripts/generate_github_actions_dataset.py Outdated
Comment thread scripts/generate_github_actions_dataset.py Outdated
Comment thread datasets/chat/github_actions/metadata.json Outdated
Comment thread scripts/generate_github_actions_dataset.py Outdated
Comment thread scripts/generate_github_actions_dataset.py Outdated
Bryan-Roe and others added 4 commits January 22, 2026 07:21
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>
@Bryan-Roe Bryan-Roe merged commit 8c0adbe into main Jan 24, 2026
7 of 13 checks passed
@Bryan-Roe Bryan-Roe deleted the copilot/train-on-git-actions branch January 24, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation scripts tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants