Skip to content
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

chore: update repo by service bot #983

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .semaphore/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
- master
- main
- /^v\d+\.\d+\.x$/
- /^gh-readonly-queue.*/
custom_permissions: true
debug_permissions:
- empty
Expand Down
25 changes: 25 additions & 0 deletions .semaphore/project_public.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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: public
repository:
url: git@github.com:confluentinc/confluent-kafka-go.git
run_on:
- forked_pull_requests
pipeline_file: .semaphore/semaphore.yml
integration_type: github_app
status:
pipeline_files:
- path: .semaphore/semaphore.yml
level: pipeline
forked_pull_requests:
allowed_contributors:
- "ConfluentSemaphore"
46 changes: 38 additions & 8 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -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.4.0
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:
Expand All @@ -39,7 +69,7 @@ blocks:
value: dynamic
commands_file: semaphore_commands.sh
- name: "go 1.21 linux bundled librdkafka"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -115,7 +145,7 @@ blocks:
value: dynamic
commands_file: semaphore_commands.sh
- name: "go 1.21 Windows bundled librdkafka"
dependencies: [ ]
dependencies: []
task:
agent:
machine:
Expand Down
8 changes: 8 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -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=.