Skip to content

Fix devconnect idempotency#142

Open
alex-doudou wants to merge 2 commits intomainfrom
fix-devconnect-idempotency
Open

Fix devconnect idempotency#142
alex-doudou wants to merge 2 commits intomainfrom
fix-devconnect-idempotency

Conversation

@alex-doudou
Copy link
Copy Markdown
Contributor

  • Tests pass
  • Appropriate changes to documentation are included in the PR

This PR:

  • updated create_git_repository_link tool to check for existing repository links before attempting creation.
  • added a new test case TestAddDevConnectGitRepoLink_ExistingLink to verify the idempotent behavior.

- Updated create_git_repository_link tool to check for existing repository links before attempting creation.
- If an existing link is found, it is returned with a success message instead of failing with an "already exists" error.
- Fixed a typo in the create_git_connection success message ("pre-exsisting" -> "pre-existing").
- Added a new test case TestAddDevConnectGitRepoLink_ExistingLink to verify the idempotent behavior.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces an automated evaluation framework, including a new Dockerfile, evaluation configurations, and shell scripts for deployment and validation. It also updates the cicd-mcp-server to check for existing git repository links before creation. Key feedback includes fixing an invalid Terraform version and an incorrect Gemini model name, using a stable Debian base image, and ensuring consistent return types in the MCP server tools.

Comment thread Dockerfile.eval Outdated
Comment thread cicd-mcp-server/devconnect/devconnect.go Outdated
Comment thread cicd-mcp-server/devconnect/devconnect_test.go Outdated
Comment thread Dockerfile.eval Outdated
Comment thread eval.yaml Outdated
@alex-doudou alex-doudou force-pushed the fix-devconnect-idempotency branch from c7e5de1 to f409845 Compare April 15, 2026 17:58
@alex-doudou
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces idempotency checks for adding Git repository links by verifying if a link already exists before attempting to create a new one. It also corrects a typo in the connection setup tool and includes a new test case for the existing link scenario. The review feedback highlights inconsistencies in the return types between the new idempotency paths and the existing success paths, suggesting that objects be returned directly or with consistent messaging to ensure reliable client-side parsing.

Comment thread cicd-mcp-server/devconnect/devconnect.go Outdated
Comment thread cicd-mcp-server/devconnect/devconnect.go
Comment thread cicd-mcp-server/devconnect/devconnect_test.go Outdated
Return the GitRepositoryLink directly instead of a ResultWrapper when
an existing link is found, ensuring consistency with the success path.
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.

1 participant