From 6ad587f5aeda06c4715b1e77ac48750163937f24 Mon Sep 17 00:00:00 2001 From: "service-bot-app[bot]" <189278048+service-bot-app[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 03:04:14 +0000 Subject: [PATCH 1/3] removing generated internal project.yml --- .semaphore/project.yml | 44 ------------------------------------------ 1 file changed, 44 deletions(-) delete mode 100644 .semaphore/project.yml diff --git a/.semaphore/project.yml b/.semaphore/project.yml deleted file mode 100644 index da34603d088..00000000000 --- a/.semaphore/project.yml +++ /dev/null @@ -1,44 +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: debezium - description: "" -spec: - visibility: private - repository: - url: git@github.com:confluentinc/debezium.git - run_on: - - branches - - pull_requests - pipeline_file: .semaphore/semaphore.yml - integration_type: github_app - status: - pipeline_files: - - path: .semaphore/semaphore.yml - level: pipeline - whitelist: - branches: - - master - - main - - /^\d+\.\d+\.x$/ - - /v\d+\.\d+\.\d+\-hotfix\-x/ - - /^gh-readonly-queue.*/ - 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 6a9a37006dba88f94c6ec9bb866a0596e92e96f4 Mon Sep 17 00:00:00 2001 From: "service-bot-app[bot]" <189278048+service-bot-app[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 03:04:14 +0000 Subject: [PATCH 2/3] chore: update repo semaphore config --- .semaphore/semaphore.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 1bfa68319a4..036ca87b1a5 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -14,10 +14,10 @@ fail_fast: when: "true" execution_time_limit: - hours: 4 + hours: 1 queue: - - when: "branch != 'master' and branch !~ '[0-9]+\\.[0-9]+\\.x' and branch !~ 'v\\d+\\.\\d+\\.\\d+\\-hotfix\\-x'" + - when: "branch != 'master' and branch !~ '[0-9]+\\.[0-9]+\\.x'" processing: parallel global_job_config: @@ -37,33 +37,29 @@ blocks: jobs: - name: Test commands: + - . sem-pint -c - mvn -Dcloud -Passembly -pl debezium-connector-mysql,debezium-connector-postgres,debezium-connector-sqlserver -am -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode --no-transfer-progress clean verify install dependency:analyze validate - - . cve-scan + - cve-scan - . cache-maven store - env_vars: - - name: SEMAPHORE_AGENT_UPLOAD_JOB_LOGS - value: when-trimmed epilogue: always: commands: - . publish-test-results - artifact push workflow target/test-results + - artifact push workflow target - name: Release dependencies: ["Test"] run: - when: "branch = 'master' or branch =~ '[0-9]+\\.[0-9]+\\.x' or branch =~ 'v\\d+\\.\\d+\\.\\d+\\-hotfix\\-x'" + when: "branch = 'master' or branch =~ '[0-9]+\\.[0-9]+\\.x'" task: jobs: - name: Release commands: - - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" - - git fetch --unshallow || true - mvn -Dcloud -Passembly -pl debezium-connector-mysql,debezium-connector-postgres,debezium-connector-sqlserver -am -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode -DaltDeploymentRepository=confluent-codeartifact-internal::default::https://confluent-519856050701.d.codeartifact.us-west-2.amazonaws.com/maven/maven-snapshots/ -DrepositoryId=confluent-codeartifact-internal deploy -DskipTests - after_pipeline: task: agent: @@ -80,4 +76,5 @@ after_pipeline: commands: - checkout - sem-version java 11 - - emit-sonarqube-data -a test-results + - artifact pull workflow target + - emit-sonarqube-data --run_only_sonar_scan From 585ca218a3881e7ace0f5cee6f16e95924ffda20 Mon Sep 17 00:00:00 2001 From: "service-bot-app[bot]" <189278048+service-bot-app[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 03:04:14 +0000 Subject: [PATCH 3/3] chore: update sonar-project.properties to reconfigure sonarqube scanning. --- sonar-project.properties | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000000..7b20aef2aa6 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,9 @@ +### service-bot sonarqube plugin managed file +sonar.coverage.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test* +sonar.coverage.jacoco.xmlReportPaths=**/jacoco.xml +sonar.cpd.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test* +sonar.exclusions=**/*.pb.*,**/mk-include/**/* +sonar.java.binaries=. +sonar.language=java +sonar.projectKey=debezium +sonar.sources=.