Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 30, 2025

The git-agent CLI entry-point and associated code has been replaced with the prefect worker system as mentioned in issue #5584. This PR completes the removal of the deprecated CLI utility while preserving all underlying git functionality.

Changes Made

Removed Files

  • backend/infrahub/cli/git_agent.py - The CLI module itself
  • docs/docs/reference/infrahub-cli/infrahub-git-agent.mdx - CLI documentation

Updated Files

  • backend/infrahub/cli/__init__.py - Removed git_agent import and CLI integration
  • backend/tests/unit/cli/test_cli.py - Removed test_git_agent_app test
  • tasks/docs.py - Removed git-agent from documentation generation

What's Preserved

  • GIT_AGENT component type - Still used by prefect workers for git operations
  • All git functionality - Now handled via prefect worker system instead of standalone CLI
  • Git-related user authentication - Config references to git-agent accounts preserved

Migration Path

The functionality previously provided by:

infrahub git-agent start

Is now handled automatically by the prefect worker system, providing better reliability, error handling, and supervision as described in the 1.1.0 release notes.

This completes the migration started in PR #6026.

Fixes #5584.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copy link

cla-assistant bot commented Jun 30, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

cla-assistant bot commented Jun 30, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Copilot Copilot AI changed the title [WIP] task: Remove git-agent command line utility and code Remove git-agent CLI utility replaced by prefect worker Jun 30, 2025
@Copilot Copilot AI requested a review from dgarros June 30, 2025 07:09
Copilot finished work on behalf of dgarros June 30, 2025 07:09
@github-actions github-actions bot added type/documentation Improvements or additions to documentation group/backend Issue related to the backend (API Server, Git Agent) labels Jul 2, 2025
@dgarros dgarros force-pushed the copilot/fix-5584 branch from 5ca3bb8 to 236df44 Compare July 2, 2025 04:29
Copy link

codspeed-hq bot commented Jul 2, 2025

CodSpeed Performance Report

Merging #6755 will not alter performance

Comparing copilot/fix-5584 (236df44) with stable (69b9ef5)

Summary

✅ 10 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

task: Remove git-agent command line utility and code
2 participants