From 67cd2ba069a20b1a55e82dbb6d1bb1f4cd535b81 Mon Sep 17 00:00:00 2001 From: ConfluentSemaphore <40306929+ConfluentSemaphore@users.noreply.github.com> Date: Mon, 16 Dec 2024 01:58:11 +0000 Subject: [PATCH 1/3] removing generated internal project.yml --- .semaphore/project.yml | 43 ------------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 .semaphore/project.yml diff --git a/.semaphore/project.yml b/.semaphore/project.yml deleted file mode 100644 index bc5081b48..000000000 --- a/.semaphore/project.yml +++ /dev/null @@ -1,43 +0,0 @@ -# This file is managed by ServiceBot plugin - Semaphore. The content in this file is created using a common -# template and configurations in service.yml. -# Modifications in this file will be overwritten by generated content in the nightly run. -# For more information, please refer to the page: -# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI -apiVersion: v1alpha -kind: Project -metadata: - name: confluent-kafka-go - description: "" -spec: - visibility: private - repository: - url: git@github.com:confluentinc/confluent-kafka-go.git - run_on: - - branches - - tags - - pull_requests - pipeline_file: .semaphore/semaphore.yml - integration_type: github_app - status: - pipeline_files: - - path: .semaphore/semaphore.yml - level: pipeline - whitelist: - branches: - - master - - main - - /^v\d+\.\d+\.x$/ - custom_permissions: true - debug_permissions: - - empty - - default_branch - - non_default_branch - - pull_request - - forked_pull_request - - tag - attach_permissions: - - default_branch - - non_default_branch - - pull_request - - forked_pull_request - - tag From 557ddba623b77b13519a0805c96736b59e57f4ed Mon Sep 17 00:00:00 2001 From: ConfluentSemaphore <40306929+ConfluentSemaphore@users.noreply.github.com> Date: Mon, 16 Dec 2024 01:58:11 +0000 Subject: [PATCH 2/3] chore: update repo semaphore config --- .semaphore/semaphore.yml | 46 +++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 2b6cacf73..a0302e9af 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -1,18 +1,48 @@ +# This file is managed by ServiceBot plugin - Semaphore. The content in this file is created using a common +# template and configurations in service.yml. +# Any modifications made to version, name, agent, and global_job_config will be overwritten by the generated +# content in nightly runs. Code changes made to the remaining sections will not be affected. +# For more information, please refer to the page: +# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI version: v1.0 -name: 'confluent-kafka-go build pipeline' +name: build-test-release agent: machine: type: s1-prod-ubuntu20-04-amd64-1 + +auto_cancel: + running: + when: "branch != 'master'" + +execution_time_limit: + hours: 1 + +queue: + - when: "branch != 'master'" + processing: parallel + global_job_config: - env_vars: - - name: LIBRDKAFKA_VERSION - value: v2.6.1 prologue: commands: + - sem-version go 1.18 + - export "GOPATH=$(go env GOPATH)" + - export "SEMAPHORE_GIT_DIR=${GOPATH}/src/github.com/confluentinc/${SEMAPHORE_PROJECT_NAME}" + - export "PATH=${GOPATH}/bin:${PATH}" + - mkdir -vp "${SEMAPHORE_GIT_DIR}" "${GOPATH}/bin" - checkout + - make show-args + - . vault-setup + - . vault-sem-get-secret ci-reporting + - . vault-sem-get-secret v1/ci/kv/service-foundations/cc-mk-include + - make init-ci + epilogue: + always: + commands: + - make epilogue-ci + blocks: - name: "go 1.21 OSX bundled librdkafka" - dependencies: [ ] + dependencies: [] task: agent: machine: @@ -39,7 +69,7 @@ blocks: value: dynamic commands_file: semaphore_commands.sh - name: "go 1.21 linux bundled librdkafka" - dependencies: [ ] + dependencies: [] task: agent: machine: @@ -84,7 +114,7 @@ blocks: value: consumer commands_file: semaphore_integration_commands.sh - name: "go 1.21 linux arm64 bundled librdkafka" - dependencies: [ ] + dependencies: [] task: agent: machine: @@ -115,7 +145,7 @@ blocks: value: dynamic commands_file: semaphore_commands.sh - name: "go 1.21 Windows bundled librdkafka" - dependencies: [ ] + dependencies: [] task: agent: machine: From 0eda4d76c12209ef635bff3c613c658b008c1f10 Mon Sep 17 00:00:00 2001 From: ConfluentSemaphore <40306929+ConfluentSemaphore@users.noreply.github.com> Date: Mon, 16 Dec 2024 01:58:11 +0000 Subject: [PATCH 3/3] chore: update sonar-project.properties to reconfigure sonarqube scanning. --- sonar-project.properties | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..330a45001 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,8 @@ +### service-bot sonarqube plugin managed file +sonar.coverage.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test* +sonar.cpd.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test* +sonar.exclusions=**/*.pb.*,**/mk-include/**/* +sonar.go.coverage.reportPaths=**/coverage.txt +sonar.language=go +sonar.projectKey=confluent-kafka-go +sonar.sources=.