Skip to content

Implement Git Flow CI/CD pipeline with automated branch validation and deployment workflows - #179

Merged
makr-code merged 6 commits into
developfrom
copilot/configure-git-flow-strategy
Dec 31, 2025
Merged

makr-code merged 6 commits into
developfrom
copilot/configure-git-flow-strategy

Conversation

Copilot AI commented Dec 31, 2025 •

Copy link
Copy Markdown
Contributor

Restructures CI/CD to enforce Git Flow branching strategy, preventing direct merges to production branches and automating the feature → develop → release → main deployment pipeline.

Workflows

Branch-specific CI pipelines:

  • feature-ci.yml - PRs to develop from feature/* or bugfix/* (build, test, quality)
  • develop-ci.yml - Integration validation on develop (full suite + artifacts)
  • release-ci.yml - Release prep on release/* → main (version validation, packaging)
  • hotfix-ci.yml - Emergency fixes hotfix/* → main (accelerated tests, auto-sync to develop)
  • main-ci.yml - Production deployment on main push/tag (releases, Docker, docs)

Branch validation:

  • Script enforces correct PR targets (feature→develop, release→main, hotfix→main)
  • Semantic versioning validation (X.Y.Z with prerelease support)
  • Automatic rejection of invalid branch strategies with clear error messages

Automation:

  • Hotfixes auto-create PR to sync back to develop after main merge
  • Release artifacts with 30-90 day retention based on stage
  • Parallel job execution with vcpkg/build caching

Example Flow

# Feature development
feature/123-new-feature → develop  # feature-ci.yml validates
                                   # develop-ci.yml on merge

# Release
release/1.4.0 → main              # release-ci.yml validates version, changelog
                                   # main-ci.yml deploys, creates GitHub release
          ↓
       develop                     # manual back-merge

# Hotfix
hotfix/1.3.5-critical → main      # hotfix-ci.yml fast-track validation
                                   # main-ci.yml deploys
                        ↓
                     develop       # auto-created PR

Modified

  • ci.yml - Now supplements Git Flow workflows (removed push triggers for main/develop)
  • BRANCHING_STRATEGY_EN.md - Added CI/CD integration references

Documentation

  • CI_CD_WORKFLOWS.md - Complete workflow documentation with triggers, jobs, troubleshooting
  • GIT_FLOW_QUICK_REFERENCE.md - Trigger matrix and common scenarios
  • GIT_FLOW_IMPLEMENTATION_SUMMARY.md - Technical implementation details
  • CI_CD_FUTURE_IMPROVEMENTS.md - Code review feedback and enhancement opportunities

Branch protection must be configured manually to enforce required status checks (documented in BRANCH_PROTECTION_SETUP.md).

Original prompt

Problem

Currently, the GitHub Actions automation merges directly to the main branch. We need to restructure the CI/CD pipeline to follow a clean Git Flow strategy:

  • Feature/bugfix branches should merge to develop
  • Release preparation should go through release/* branches (develop → release → main)
  • Hotfixes should target main directly and then sync back to develop

Requirements

1. Branch Protection Rules Configuration

  • main: Only allow merges from release/* and hotfix/* branches
  • develop: Only allow merges from feature/*, bugfix/*, and release/* branches
  • All branches require CI checks to pass before merging

2. Workflow Structure

Create the following GitHub Actions workflows:

a) Feature/Bugfix Workflow (feature-ci.yml)

  • Triggers on: PRs to develop from feature/* or bugfix/* branches
  • Runs: Build, test, code quality checks
  • Prevents merge if checks fail

b) Develop Branch Workflow (develop-ci.yml)

  • Triggers on: push to develop and PRs targeting develop
  • Runs: Full CI suite (build, tests, coverage, linting)
  • Uploads artifacts for integration testing

c) Release Workflow (release-ci.yml)

  • Triggers on: push to release/* branches or manual workflow dispatch
  • Validates version number and changelog
  • Runs full build and tests
  • Prepares release artifacts (if merge to main)

d) Hotfix Workflow (hotfix-ci.yml)

  • Triggers on: PRs to main from hotfix/* branches
  • Runs: Accelerated test suite (critical tests only)
  • After merge: Auto-creates PR to merge hotfix back to develop

e) Main Branch Workflow (main-ci.yml)

  • Triggers on: push to main (releases and hotfixes)
  • Runs: Verification suite
  • Publishes release artifacts, documentation, Docker images

3. Branch Strategy Validation

  • Validate PR target branches in CI
  • Prevent direct pushes to main and develop (require PRs)
  • Enforce version number updates in VERSION file for releases

4. Documentation

  • Create BRANCHING_STRATEGY.md with clear guidelines
  • Document merge procedures for each branch type
  • Include examples of correct Git Flow commands

Expected Outcome

A professional, clean CI/CD pipeline that enforces Git Flow best practices and prevents accidental direct merges to production branches.

This pull request was created from Copilot chat.


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

@makr-code
makr-code marked this pull request as ready for review December 31, 2025 09:02
@makr-code
makr-code self-requested a review as a code owner December 31, 2025 09:02
Copilot AI changed the title [WIP] Update CI/CD pipeline for Git Flow strategy Implement Git Flow CI/CD pipeline with automated branch validation and deployment workflows Dec 31, 2025
@makr-code
makr-code merged commit 81801da into develop Dec 31, 2025
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
@makr-code makr-code mentioned this pull request Mar 12, 2026
6 tasks
Copilot AI added a commit that referenced this pull request Mar 16, 2026
… (v1.8.0)

- Mark test_ingestion_coordinator.cpp BETA→PRODUCTION-READY (100/100)
- Mark all 6 acceptance criteria [x] in issue body #179
- Add distributed-ingestion-coordinator-ci.yml (focused test CI)

The IngestionCoordinator implementation was already complete:
  - ConsistentHashRing (150 virtual nodes, O(log n) lookup)
  - InProcessLeaderElection (TTL lease + epoch, split-brain prevention)
  - WorkStealingPool (per-worker deques, automatic load balancing)
  - 45 tests covering all ACs across lifecycle/partitioning/ingestAll/metrics

Co-authored-by: makr-code <[email protected]>

Co-authored-by: makr-code <[email protected]>
makr-code added a commit that referenced this pull request Mar 17, 2026
…-ingestion-coordinator

feat(ingestion): close Issue #179 — Distributed Ingestion Coordinator (v1.8.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants