Skip to content

apply service bot changes #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025
Merged

apply service bot changes #537

merged 1 commit into from
Apr 3, 2025

Conversation

wadhwa1
Copy link
Member

@wadhwa1 wadhwa1 commented Apr 3, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings April 3, 2025 04:04
@wadhwa1 wadhwa1 requested a review from a team as a code owner April 3, 2025 04:04
Copy link

@Copilot Copilot AI left a comment

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 applies changes to support skipping community builds and promotions for docker images based on community settings.

  • Introduces new community-related configuration keys and flags in service.yml
  • Adds environment variables and conditional logic in Semaphore configuration files to skip community docker image operations
  • Updates build and promotion pipelines to include the DOCKER_IMAGE variable for community filtering

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
service.yml Added community_docker_repos, community_maven_modules, and SKIP_COMMUNITY parameters for build and publish steps
.semaphore/semaphore.yml Included COMMUNITY_DOCKER_REPOS and conditional logic to skip community images in build jobs
.semaphore/cp_dockerfile_promote.yml Added community filtering logic and env variable DOCKER_IMAGE for promotions
.semaphore/cp_dockerfile_build.yml Updated build pipeline with community skipping logic and DOCKER_IMAGE env variable

if [ "$skip_repo" = "$DOCKER_IMAGE" ]; then
echo "Skipping build for $DOCKER_IMAGE as it is in COMMUNITY_DOCKER_REPOS list"
export SEMAPHORE_JOB_RESULT=passed
return 130
Copy link
Preview

Copilot AI Apr 3, 2025

Choose a reason for hiding this comment

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

Using 'return' outside of a function may cause errors in a shell script. Consider using 'exit 130' if this script block is not within a function.

Suggested change
return 130
exit 130

Copilot uses AI. Check for mistakes.

if [ "$skip_repo" = "$DOCKER_IMAGE" ]; then
echo "Skipping promotion for $DOCKER_IMAGE as it is in COMMUNITY_DOCKER_REPOS list"
export SEMAPHORE_JOB_RESULT=passed
return 130
Copy link
Preview

Copilot AI Apr 3, 2025

Choose a reason for hiding this comment

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

Using 'return' outside of a function may not work as expected. Use 'exit 130' if this command is not part of a function.

Suggested change
return 130
exit 130

Copilot uses AI. Check for mistakes.

if [ "$skip_repo" = "$DOCKER_IMAGE" ]; then
echo "Skipping build for $DOCKER_IMAGE as it is in COMMUNITY_DOCKER_REPOS list"
export SEMAPHORE_JOB_RESULT=passed
return 130
Copy link
Preview

Copilot AI Apr 3, 2025

Choose a reason for hiding this comment

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

Using 'return' may be problematic if not within a function context. Replace it with 'exit 130' to ensure the script terminates correctly.

Suggested change
return 130
exit 130

Copilot uses AI. Check for mistakes.

@sonarqube-confluent
Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (0.00% Estimated after merge)
  • Duplications No duplication information (48.70% Estimated after merge)

Project ID: kafka-streams-examples

View in SonarQube

@wadhwa1 wadhwa1 merged commit 324b9fc into master Apr 3, 2025
2 of 3 checks passed
@wadhwa1 wadhwa1 deleted the cpbr-2445 branch April 3, 2025 07:21
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