From a3f8ed2bf8d13b6a25f56433c6f3fa77fc0f2630 Mon Sep 17 00:00:00 2001 From: somya-confluent Date: Fri, 6 Dec 2024 18:56:03 +0530 Subject: [PATCH 1/4] add new block --- .semaphore/semaphore.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index bb8689f89..266558b48 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -285,3 +285,26 @@ blocks: - cd .. - artifact push project artifacts/confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz --destination confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz - echo Thank you + - name: "Docs" + task: + jobs: + - name: Build Docs + commands: + - sem-version python 3.9 + - export TAR_FILE_PATH="./docs-dependencies" + - pip install avro-python3 requests fastavro jsonschema protobuf Sphinx==4.0.2 sphinx_rtd_theme==0.2.5b1 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 + - git clone git@github.com:confluentinc/librdkafka.git && cd librdkafka + - export LIBRDKAFKA_DIR=${PWD} + - ./configure --clean + - ./configure --prefix=${LIBRDKAFKA_DIR}/compiled --disable-ssl + - make libs install + - cd .. + - export OUTPUT_PATH="./docs/_build/html" + - CFLAGS=-I${LIBRDKAFKA_DIR}/compiled/include LDFLAGS=-L${LIBRDKAFKA_DIR}/compiled/lib/ python setup.py build + - cd docs + - LD_LIBRARY_PATH=${LIBRDKAFKA_DIR}/compiled/lib/ make clean html && cd .. + - ls ${OUTPUT_PATH} + - export TAR_NAME="dotnet-docs.tgz" + - mkdir -p ${TAR_FILE_PATH} + - tar -cvzf ${TAR_FILE_PATH}/${TAR_NAME} ${OUTPUT_PATH} + - artifact push workflow ${TAR_FILE_PATH} From 87ead3052cbb0a90addc4f1c341c08108bbc1456 Mon Sep 17 00:00:00 2001 From: somya-confluent Date: Fri, 6 Dec 2024 19:01:13 +0530 Subject: [PATCH 2/4] add new block --- .semaphore/semaphore.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 266558b48..221993e1b 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -286,6 +286,7 @@ blocks: - artifact push project artifacts/confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz --destination confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz - echo Thank you - name: "Docs" + dependencies: [] task: jobs: - name: Build Docs From 58850312d244487d3a2166b5daa407f5f15abe80 Mon Sep 17 00:00:00 2001 From: somya-confluent Date: Fri, 6 Dec 2024 19:04:36 +0530 Subject: [PATCH 3/4] check new commit --- .semaphore/semaphore.yml | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 221993e1b..19db1fbd9 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -285,27 +285,27 @@ blocks: - cd .. - artifact push project artifacts/confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz --destination confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz - echo Thank you - - name: "Docs" - dependencies: [] - task: - jobs: - - name: Build Docs - commands: - - sem-version python 3.9 - - export TAR_FILE_PATH="./docs-dependencies" - - pip install avro-python3 requests fastavro jsonschema protobuf Sphinx==4.0.2 sphinx_rtd_theme==0.2.5b1 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 - - git clone git@github.com:confluentinc/librdkafka.git && cd librdkafka - - export LIBRDKAFKA_DIR=${PWD} - - ./configure --clean - - ./configure --prefix=${LIBRDKAFKA_DIR}/compiled --disable-ssl - - make libs install - - cd .. - - export OUTPUT_PATH="./docs/_build/html" - - CFLAGS=-I${LIBRDKAFKA_DIR}/compiled/include LDFLAGS=-L${LIBRDKAFKA_DIR}/compiled/lib/ python setup.py build - - cd docs - - LD_LIBRARY_PATH=${LIBRDKAFKA_DIR}/compiled/lib/ make clean html && cd .. - - ls ${OUTPUT_PATH} - - export TAR_NAME="dotnet-docs.tgz" - - mkdir -p ${TAR_FILE_PATH} - - tar -cvzf ${TAR_FILE_PATH}/${TAR_NAME} ${OUTPUT_PATH} - - artifact push workflow ${TAR_FILE_PATH} + # - name: "Docs" + # dependencies: [] + # task: + # jobs: + # - name: Build Docs + # commands: + # - sem-version python 3.9 + # - export TAR_FILE_PATH="./docs-dependencies" + # - pip install avro-python3 requests fastavro jsonschema protobuf Sphinx==4.0.2 sphinx_rtd_theme==0.2.5b1 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 + # - git clone git@github.com:confluentinc/librdkafka.git && cd librdkafka + # - export LIBRDKAFKA_DIR=${PWD} + # - ./configure --clean + # - ./configure --prefix=${LIBRDKAFKA_DIR}/compiled --disable-ssl + # - make libs install + # - cd .. + # - export OUTPUT_PATH="./docs/_build/html" + # - CFLAGS=-I${LIBRDKAFKA_DIR}/compiled/include LDFLAGS=-L${LIBRDKAFKA_DIR}/compiled/lib/ python setup.py build + # - cd docs + # - LD_LIBRARY_PATH=${LIBRDKAFKA_DIR}/compiled/lib/ make clean html && cd .. + # - ls ${OUTPUT_PATH} + # - export TAR_NAME="dotnet-docs.tgz" + # - mkdir -p ${TAR_FILE_PATH} + # - tar -cvzf ${TAR_FILE_PATH}/${TAR_NAME} ${OUTPUT_PATH} + # - artifact push workflow ${TAR_FILE_PATH} From 8f2ec5a1ee43a65e2b229d8f9a11deeaf4126323 Mon Sep 17 00:00:00 2001 From: somya-confluent Date: Fri, 6 Dec 2024 19:09:35 +0530 Subject: [PATCH 4/4] add machine --- .semaphore/semaphore.yml | 51 +++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 19db1fbd9..50633272f 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -285,27 +285,30 @@ blocks: - cd .. - artifact push project artifacts/confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz --destination confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz - echo Thank you - # - name: "Docs" - # dependencies: [] - # task: - # jobs: - # - name: Build Docs - # commands: - # - sem-version python 3.9 - # - export TAR_FILE_PATH="./docs-dependencies" - # - pip install avro-python3 requests fastavro jsonschema protobuf Sphinx==4.0.2 sphinx_rtd_theme==0.2.5b1 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 - # - git clone git@github.com:confluentinc/librdkafka.git && cd librdkafka - # - export LIBRDKAFKA_DIR=${PWD} - # - ./configure --clean - # - ./configure --prefix=${LIBRDKAFKA_DIR}/compiled --disable-ssl - # - make libs install - # - cd .. - # - export OUTPUT_PATH="./docs/_build/html" - # - CFLAGS=-I${LIBRDKAFKA_DIR}/compiled/include LDFLAGS=-L${LIBRDKAFKA_DIR}/compiled/lib/ python setup.py build - # - cd docs - # - LD_LIBRARY_PATH=${LIBRDKAFKA_DIR}/compiled/lib/ make clean html && cd .. - # - ls ${OUTPUT_PATH} - # - export TAR_NAME="dotnet-docs.tgz" - # - mkdir -p ${TAR_FILE_PATH} - # - tar -cvzf ${TAR_FILE_PATH}/${TAR_NAME} ${OUTPUT_PATH} - # - artifact push workflow ${TAR_FILE_PATH} + - name: "Docs" + dependencies: [] + task: + agent: + machine: + type: s1-prod-ubuntu22-04-amd64-1 + jobs: + - name: Build Docs + commands: + - sem-version python 3.9 + - export TAR_FILE_PATH="./docs-dependencies" + - pip install avro-python3 requests fastavro jsonschema protobuf Sphinx==4.0.2 sphinx_rtd_theme==0.2.5b1 sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 + - git clone git@github.com:confluentinc/librdkafka.git && cd librdkafka + - export LIBRDKAFKA_DIR=${PWD} + - ./configure --clean + - ./configure --prefix=${LIBRDKAFKA_DIR}/compiled --disable-ssl + - make libs install + - cd .. + - export OUTPUT_PATH="./docs/_build/html" + - CFLAGS=-I${LIBRDKAFKA_DIR}/compiled/include LDFLAGS=-L${LIBRDKAFKA_DIR}/compiled/lib/ python setup.py build + - cd docs + - LD_LIBRARY_PATH=${LIBRDKAFKA_DIR}/compiled/lib/ make clean html && cd .. + - ls ${OUTPUT_PATH} + - export TAR_NAME="dotnet-docs.tgz" + - mkdir -p ${TAR_FILE_PATH} + - tar -cvzf ${TAR_FILE_PATH}/${TAR_NAME} ${OUTPUT_PATH} + - artifact push workflow ${TAR_FILE_PATH}