diff --git a/.github/workflows/CI_coverage_comment.yml b/.github/workflows/CI_coverage_comment.yml index eae5fa8d28..c786bf6698 100644 --- a/.github/workflows/CI_coverage_comment.yml +++ b/.github/workflows/CI_coverage_comment.yml @@ -75,3 +75,5 @@ jobs: GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }} SUBPROJECT_ID: ${{ steps.integration.outputs.name }} COMMENT_ARTIFACT_NAME: coverage-comment-${{ steps.integration.outputs.name }} + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 diff --git a/.github/workflows/aimlapi.yml b/.github/workflows/aimlapi.yml index dd69640045..b8409dde09 100644 --- a/.github/workflows/aimlapi.yml +++ b/.github/workflows/aimlapi.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/aimlapi SUBPROJECT_ID: aimlapi COMMENT_ARTIFACT_NAME: coverage-comment-aimlapi + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,6 +107,8 @@ jobs: COVERAGE_PATH: integrations/aimlapi SUBPROJECT_ID: aimlapi-combined COMMENT_ARTIFACT_NAME: coverage-comment-aimlapi-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/amazon_bedrock.yml b/.github/workflows/amazon_bedrock.yml index fe45a9a56c..b740a62f35 100644 --- a/.github/workflows/amazon_bedrock.yml +++ b/.github/workflows/amazon_bedrock.yml @@ -103,6 +103,8 @@ jobs: COVERAGE_PATH: integrations/amazon_bedrock SUBPROJECT_ID: amazon_bedrock COMMENT_ARTIFACT_NAME: coverage-comment-amazon_bedrock + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 # Do not authenticate on PRs from forks and on PRs created by dependabot - name: AWS authentication @@ -125,6 +127,8 @@ jobs: COVERAGE_PATH: integrations/amazon_bedrock SUBPROJECT_ID: amazon_bedrock-combined COMMENT_ARTIFACT_NAME: coverage-comment-amazon_bedrock-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/amazon_sagemaker.yml b/.github/workflows/amazon_sagemaker.yml index 91197e82d5..fe5d583ab8 100644 --- a/.github/workflows/amazon_sagemaker.yml +++ b/.github/workflows/amazon_sagemaker.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/amazon_sagemaker SUBPROJECT_ID: amazon_sagemaker COMMENT_ARTIFACT_NAME: coverage-comment-amazon_sagemaker + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/amazon_sagemaker SUBPROJECT_ID: amazon_sagemaker-combined COMMENT_ARTIFACT_NAME: coverage-comment-amazon_sagemaker-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/anthropic.yml b/.github/workflows/anthropic.yml index e96b3911e9..a07c7dbf5c 100644 --- a/.github/workflows/anthropic.yml +++ b/.github/workflows/anthropic.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/anthropic SUBPROJECT_ID: anthropic COMMENT_ARTIFACT_NAME: coverage-comment-anthropic + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,6 +107,8 @@ jobs: COVERAGE_PATH: integrations/anthropic SUBPROJECT_ID: anthropic-combined COMMENT_ARTIFACT_NAME: coverage-comment-anthropic-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/arcadedb.yml b/.github/workflows/arcadedb.yml index 9d64b19e41..c7077e9567 100644 --- a/.github/workflows/arcadedb.yml +++ b/.github/workflows/arcadedb.yml @@ -98,6 +98,8 @@ jobs: COVERAGE_PATH: integrations/arcadedb SUBPROJECT_ID: arcadedb COMMENT_ARTIFACT_NAME: coverage-comment-arcadedb + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -110,6 +112,8 @@ jobs: COVERAGE_PATH: integrations/arcadedb SUBPROJECT_ID: arcadedb-combined COMMENT_ARTIFACT_NAME: coverage-comment-arcadedb-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/astra.yml b/.github/workflows/astra.yml index 5f79654418..99c5d89019 100644 --- a/.github/workflows/astra.yml +++ b/.github/workflows/astra.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/astra SUBPROJECT_ID: astra COMMENT_ARTIFACT_NAME: coverage-comment-astra + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests env: @@ -108,6 +110,8 @@ jobs: COVERAGE_PATH: integrations/astra SUBPROJECT_ID: astra-combined COMMENT_ARTIFACT_NAME: coverage-comment-astra-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/azure_ai_search.yml b/.github/workflows/azure_ai_search.yml index 6f9dd1f742..ceb99b62e0 100644 --- a/.github/workflows/azure_ai_search.yml +++ b/.github/workflows/azure_ai_search.yml @@ -90,6 +90,8 @@ jobs: COVERAGE_PATH: integrations/azure_ai_search SUBPROJECT_ID: azure_ai_search COMMENT_ARTIFACT_NAME: coverage-comment-azure_ai_search + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -102,6 +104,8 @@ jobs: COVERAGE_PATH: integrations/azure_ai_search SUBPROJECT_ID: azure_ai_search-combined COMMENT_ARTIFACT_NAME: coverage-comment-azure_ai_search-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/azure_doc_intelligence.yml b/.github/workflows/azure_doc_intelligence.yml index 787cc8aca5..8cf3a210a1 100644 --- a/.github/workflows/azure_doc_intelligence.yml +++ b/.github/workflows/azure_doc_intelligence.yml @@ -90,6 +90,8 @@ jobs: COVERAGE_PATH: integrations/azure_doc_intelligence SUBPROJECT_ID: azure_doc_intelligence COMMENT_ARTIFACT_NAME: coverage-comment-azure_doc_intelligence + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -102,6 +104,8 @@ jobs: COVERAGE_PATH: integrations/azure_doc_intelligence SUBPROJECT_ID: azure_doc_intelligence-combined COMMENT_ARTIFACT_NAME: coverage-comment-azure_doc_intelligence-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/chroma.yml b/.github/workflows/chroma.yml index de0d924c9b..6fc868b5e8 100644 --- a/.github/workflows/chroma.yml +++ b/.github/workflows/chroma.yml @@ -96,6 +96,8 @@ jobs: COVERAGE_PATH: integrations/chroma SUBPROJECT_ID: chroma COMMENT_ARTIFACT_NAME: coverage-comment-chroma + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -108,6 +110,8 @@ jobs: COVERAGE_PATH: integrations/chroma SUBPROJECT_ID: chroma-combined COMMENT_ARTIFACT_NAME: coverage-comment-chroma-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/cohere.yml b/.github/workflows/cohere.yml index 1a92d33e11..9fae6d5945 100644 --- a/.github/workflows/cohere.yml +++ b/.github/workflows/cohere.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/cohere SUBPROJECT_ID: cohere COMMENT_ARTIFACT_NAME: coverage-comment-cohere + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,6 +107,8 @@ jobs: COVERAGE_PATH: integrations/cohere SUBPROJECT_ID: cohere-combined COMMENT_ARTIFACT_NAME: coverage-comment-cohere-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/cometapi.yml b/.github/workflows/cometapi.yml index 85fb704ddb..273bd70b7f 100644 --- a/.github/workflows/cometapi.yml +++ b/.github/workflows/cometapi.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/cometapi SUBPROJECT_ID: cometapi COMMENT_ARTIFACT_NAME: coverage-comment-cometapi + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,6 +107,8 @@ jobs: COVERAGE_PATH: integrations/cometapi SUBPROJECT_ID: cometapi-combined COMMENT_ARTIFACT_NAME: coverage-comment-cometapi-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/deepeval.yml b/.github/workflows/deepeval.yml index 311a5a99eb..42bac716f0 100644 --- a/.github/workflows/deepeval.yml +++ b/.github/workflows/deepeval.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/deepeval SUBPROJECT_ID: deepeval COMMENT_ARTIFACT_NAME: coverage-comment-deepeval + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/deepeval SUBPROJECT_ID: deepeval-combined COMMENT_ARTIFACT_NAME: coverage-comment-deepeval-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/elasticsearch.yml b/.github/workflows/elasticsearch.yml index 8c57afa172..c879b07849 100644 --- a/.github/workflows/elasticsearch.yml +++ b/.github/workflows/elasticsearch.yml @@ -90,6 +90,8 @@ jobs: COVERAGE_PATH: integrations/elasticsearch SUBPROJECT_ID: elasticsearch COMMENT_ARTIFACT_NAME: coverage-comment-elasticsearch + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -102,6 +104,8 @@ jobs: COVERAGE_PATH: integrations/elasticsearch SUBPROJECT_ID: elasticsearch-combined COMMENT_ARTIFACT_NAME: coverage-comment-elasticsearch-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/faiss.yml b/.github/workflows/faiss.yml index 82e718fa72..55efc3ea5b 100644 --- a/.github/workflows/faiss.yml +++ b/.github/workflows/faiss.yml @@ -88,6 +88,8 @@ jobs: COVERAGE_PATH: integrations/faiss SUBPROJECT_ID: faiss COMMENT_ARTIFACT_NAME: coverage-comment-faiss + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -100,6 +102,8 @@ jobs: COVERAGE_PATH: integrations/faiss SUBPROJECT_ID: faiss-combined COMMENT_ARTIFACT_NAME: coverage-comment-faiss-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: matrix.python-version == '3.10' && runner.os == 'Linux' run: | diff --git a/.github/workflows/fastembed.yml b/.github/workflows/fastembed.yml index 48b77efb45..12a5da023d 100644 --- a/.github/workflows/fastembed.yml +++ b/.github/workflows/fastembed.yml @@ -80,6 +80,8 @@ jobs: COVERAGE_PATH: integrations/fastembed SUBPROJECT_ID: fastembed COMMENT_ARTIFACT_NAME: coverage-comment-fastembed + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -92,6 +94,8 @@ jobs: COVERAGE_PATH: integrations/fastembed SUBPROJECT_ID: fastembed-combined COMMENT_ARTIFACT_NAME: coverage-comment-fastembed-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/firecrawl.yml b/.github/workflows/firecrawl.yml index f9eb42f74c..b4a283020f 100644 --- a/.github/workflows/firecrawl.yml +++ b/.github/workflows/firecrawl.yml @@ -88,6 +88,8 @@ jobs: COVERAGE_PATH: integrations/firecrawl SUBPROJECT_ID: firecrawl COMMENT_ARTIFACT_NAME: coverage-comment-firecrawl + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -100,6 +102,8 @@ jobs: COVERAGE_PATH: integrations/firecrawl SUBPROJECT_ID: firecrawl-combined COMMENT_ARTIFACT_NAME: coverage-comment-firecrawl-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index 43f553aed8..20e4a428fe 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -91,6 +91,8 @@ jobs: COVERAGE_PATH: integrations/github SUBPROJECT_ID: github COMMENT_ARTIFACT_NAME: coverage-comment-github + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed diff --git a/.github/workflows/google_genai.yml b/.github/workflows/google_genai.yml index 3aa6e7b66d..7e4dd26013 100644 --- a/.github/workflows/google_genai.yml +++ b/.github/workflows/google_genai.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/google_genai SUBPROJECT_ID: google_genai COMMENT_ARTIFACT_NAME: coverage-comment-google_genai + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,6 +107,8 @@ jobs: COVERAGE_PATH: integrations/google_genai SUBPROJECT_ID: google_genai-combined COMMENT_ARTIFACT_NAME: coverage-comment-google_genai-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/hanlp.yml b/.github/workflows/hanlp.yml index 2dcaa6cbc0..a092083548 100644 --- a/.github/workflows/hanlp.yml +++ b/.github/workflows/hanlp.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/hanlp SUBPROJECT_ID: hanlp COMMENT_ARTIFACT_NAME: coverage-comment-hanlp + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/hanlp SUBPROJECT_ID: hanlp-combined COMMENT_ARTIFACT_NAME: coverage-comment-hanlp-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/jina.yml b/.github/workflows/jina.yml index 9a808740b3..28003fc17f 100644 --- a/.github/workflows/jina.yml +++ b/.github/workflows/jina.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/jina SUBPROJECT_ID: jina COMMENT_ARTIFACT_NAME: coverage-comment-jina + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/jina SUBPROJECT_ID: jina-combined COMMENT_ARTIFACT_NAME: coverage-comment-jina-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/kreuzberg.yml b/.github/workflows/kreuzberg.yml index ef0dbd1f25..4d5e115b68 100644 --- a/.github/workflows/kreuzberg.yml +++ b/.github/workflows/kreuzberg.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/kreuzberg SUBPROJECT_ID: kreuzberg COMMENT_ARTIFACT_NAME: coverage-comment-kreuzberg + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/kreuzberg SUBPROJECT_ID: kreuzberg-combined COMMENT_ARTIFACT_NAME: coverage-comment-kreuzberg-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/langfuse.yml b/.github/workflows/langfuse.yml index 13b5175b8e..360c0fd48d 100644 --- a/.github/workflows/langfuse.yml +++ b/.github/workflows/langfuse.yml @@ -97,6 +97,8 @@ jobs: COVERAGE_PATH: integrations/langfuse SUBPROJECT_ID: langfuse COMMENT_ARTIFACT_NAME: coverage-comment-langfuse + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -109,6 +111,8 @@ jobs: COVERAGE_PATH: integrations/langfuse SUBPROJECT_ID: langfuse-combined COMMENT_ARTIFACT_NAME: coverage-comment-langfuse-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/lara.yml b/.github/workflows/lara.yml index 125a998461..b168120a80 100644 --- a/.github/workflows/lara.yml +++ b/.github/workflows/lara.yml @@ -90,6 +90,8 @@ jobs: COVERAGE_PATH: integrations/lara SUBPROJECT_ID: lara COMMENT_ARTIFACT_NAME: coverage-comment-lara + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -102,6 +104,8 @@ jobs: COVERAGE_PATH: integrations/lara SUBPROJECT_ID: lara-combined COMMENT_ARTIFACT_NAME: coverage-comment-lara-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/libreoffice.yml b/.github/workflows/libreoffice.yml index bd57d74687..888bb102db 100644 --- a/.github/workflows/libreoffice.yml +++ b/.github/workflows/libreoffice.yml @@ -106,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/libreoffice SUBPROJECT_ID: libreoffice COMMENT_ARTIFACT_NAME: coverage-comment-libreoffice + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -118,6 +120,8 @@ jobs: COVERAGE_PATH: integrations/libreoffice SUBPROJECT_ID: libreoffice-combined COMMENT_ARTIFACT_NAME: coverage-comment-libreoffice-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/llama_cpp.yml b/.github/workflows/llama_cpp.yml index d92455ff00..345001a993 100644 --- a/.github/workflows/llama_cpp.yml +++ b/.github/workflows/llama_cpp.yml @@ -102,6 +102,8 @@ jobs: COVERAGE_PATH: integrations/llama_cpp SUBPROJECT_ID: llama_cpp COMMENT_ARTIFACT_NAME: coverage-comment-llama_cpp + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -114,6 +116,8 @@ jobs: COVERAGE_PATH: integrations/llama_cpp SUBPROJECT_ID: llama_cpp-combined COMMENT_ARTIFACT_NAME: coverage-comment-llama_cpp-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/llama_stack.yml b/.github/workflows/llama_stack.yml index d908e3a4ab..25357e67d5 100644 --- a/.github/workflows/llama_stack.yml +++ b/.github/workflows/llama_stack.yml @@ -155,6 +155,8 @@ jobs: COVERAGE_PATH: integrations/llama_stack SUBPROJECT_ID: llama_stack COMMENT_ARTIFACT_NAME: coverage-comment-llama_stack + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -167,6 +169,8 @@ jobs: COVERAGE_PATH: integrations/llama_stack SUBPROJECT_ID: llama_stack-combined COMMENT_ARTIFACT_NAME: coverage-comment-llama_stack-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/markitdown.yml b/.github/workflows/markitdown.yml index dfb290ba24..ce0bf73fcb 100644 --- a/.github/workflows/markitdown.yml +++ b/.github/workflows/markitdown.yml @@ -91,6 +91,8 @@ jobs: COVERAGE_PATH: integrations/markitdown SUBPROJECT_ID: markitdown COMMENT_ARTIFACT_NAME: coverage-comment-markitdown + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,6 +105,8 @@ jobs: COVERAGE_PATH: integrations/markitdown SUBPROJECT_ID: markitdown-combined COMMENT_ARTIFACT_NAME: coverage-comment-markitdown-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/mcp.yml b/.github/workflows/mcp.yml index d2c7506858..eb2eee5e73 100644 --- a/.github/workflows/mcp.yml +++ b/.github/workflows/mcp.yml @@ -106,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/mcp SUBPROJECT_ID: mcp COMMENT_ARTIFACT_NAME: coverage-comment-mcp + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -118,6 +120,8 @@ jobs: COVERAGE_PATH: integrations/mcp SUBPROJECT_ID: mcp-combined COMMENT_ARTIFACT_NAME: coverage-comment-mcp-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/meta_llama.yml b/.github/workflows/meta_llama.yml index ddbf272bf9..e785cd9c07 100644 --- a/.github/workflows/meta_llama.yml +++ b/.github/workflows/meta_llama.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/meta_llama SUBPROJECT_ID: meta_llama COMMENT_ARTIFACT_NAME: coverage-comment-meta_llama + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,6 +107,8 @@ jobs: COVERAGE_PATH: integrations/meta_llama SUBPROJECT_ID: meta_llama-combined COMMENT_ARTIFACT_NAME: coverage-comment-meta_llama-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/mistral.yml b/.github/workflows/mistral.yml index 03d79465e6..1057139fc1 100644 --- a/.github/workflows/mistral.yml +++ b/.github/workflows/mistral.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/mistral SUBPROJECT_ID: mistral COMMENT_ARTIFACT_NAME: coverage-comment-mistral + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -105,6 +107,8 @@ jobs: COVERAGE_PATH: integrations/mistral SUBPROJECT_ID: mistral-combined COMMENT_ARTIFACT_NAME: coverage-comment-mistral-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/mongodb_atlas.yml b/.github/workflows/mongodb_atlas.yml index a5452f9b05..e96dca97a4 100644 --- a/.github/workflows/mongodb_atlas.yml +++ b/.github/workflows/mongodb_atlas.yml @@ -89,6 +89,8 @@ jobs: COVERAGE_PATH: integrations/mongodb_atlas SUBPROJECT_ID: mongodb_atlas COMMENT_ARTIFACT_NAME: coverage-comment-mongodb_atlas + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -101,6 +103,8 @@ jobs: COVERAGE_PATH: integrations/mongodb_atlas SUBPROJECT_ID: mongodb_atlas-combined COMMENT_ARTIFACT_NAME: coverage-comment-mongodb_atlas-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/nvidia.yml b/.github/workflows/nvidia.yml index f223130748..1499ea02f1 100644 --- a/.github/workflows/nvidia.yml +++ b/.github/workflows/nvidia.yml @@ -94,6 +94,8 @@ jobs: COVERAGE_PATH: integrations/nvidia SUBPROJECT_ID: nvidia COMMENT_ARTIFACT_NAME: coverage-comment-nvidia + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,6 +108,8 @@ jobs: COVERAGE_PATH: integrations/nvidia SUBPROJECT_ID: nvidia-combined COMMENT_ARTIFACT_NAME: coverage-comment-nvidia-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index 6c948a95bb..77217c1a46 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -131,6 +131,8 @@ jobs: COVERAGE_PATH: integrations/ollama SUBPROJECT_ID: ollama COMMENT_ARTIFACT_NAME: coverage-comment-ollama + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -143,6 +145,8 @@ jobs: COVERAGE_PATH: integrations/ollama SUBPROJECT_ID: ollama-combined COMMENT_ARTIFACT_NAME: coverage-comment-ollama-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/openrouter.yml b/.github/workflows/openrouter.yml index e9227ba1c2..90ad267f1d 100644 --- a/.github/workflows/openrouter.yml +++ b/.github/workflows/openrouter.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/openrouter SUBPROJECT_ID: openrouter COMMENT_ARTIFACT_NAME: coverage-comment-openrouter + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/openrouter SUBPROJECT_ID: openrouter-combined COMMENT_ARTIFACT_NAME: coverage-comment-openrouter-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/opensearch.yml b/.github/workflows/opensearch.yml index 13cdd70ebf..4086a83f57 100644 --- a/.github/workflows/opensearch.yml +++ b/.github/workflows/opensearch.yml @@ -90,6 +90,8 @@ jobs: COVERAGE_PATH: integrations/opensearch SUBPROJECT_ID: opensearch COMMENT_ARTIFACT_NAME: coverage-comment-opensearch + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests (in parallel, using 4 cores) run: hatch run test:integration-cov-append-retry -n 4 # GA runner has 4 cores @@ -102,6 +104,8 @@ jobs: COVERAGE_PATH: integrations/opensearch SUBPROJECT_ID: opensearch-combined COMMENT_ARTIFACT_NAME: coverage-comment-opensearch-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/optimum.yml b/.github/workflows/optimum.yml index db7db9c083..470fd94d79 100644 --- a/.github/workflows/optimum.yml +++ b/.github/workflows/optimum.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/optimum SUBPROJECT_ID: optimum COMMENT_ARTIFACT_NAME: coverage-comment-optimum + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/optimum SUBPROJECT_ID: optimum-combined COMMENT_ARTIFACT_NAME: coverage-comment-optimum-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/paddleocr.yml b/.github/workflows/paddleocr.yml index a2b8aa1956..612c019d16 100644 --- a/.github/workflows/paddleocr.yml +++ b/.github/workflows/paddleocr.yml @@ -94,6 +94,8 @@ jobs: COVERAGE_PATH: integrations/paddleocr SUBPROJECT_ID: paddleocr COMMENT_ARTIFACT_NAME: coverage-comment-paddleocr + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,6 +108,8 @@ jobs: COVERAGE_PATH: integrations/paddleocr SUBPROJECT_ID: paddleocr-combined COMMENT_ARTIFACT_NAME: coverage-comment-paddleocr-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/pgvector.yml b/.github/workflows/pgvector.yml index c40efa3852..c0ff6d2dc5 100644 --- a/.github/workflows/pgvector.yml +++ b/.github/workflows/pgvector.yml @@ -96,6 +96,8 @@ jobs: COVERAGE_PATH: integrations/pgvector SUBPROJECT_ID: pgvector COMMENT_ARTIFACT_NAME: coverage-comment-pgvector + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -108,6 +110,8 @@ jobs: COVERAGE_PATH: integrations/pgvector SUBPROJECT_ID: pgvector-combined COMMENT_ARTIFACT_NAME: coverage-comment-pgvector-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/pinecone.yml b/.github/workflows/pinecone.yml index 238e072088..f5b8c3acc1 100644 --- a/.github/workflows/pinecone.yml +++ b/.github/workflows/pinecone.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/pinecone SUBPROJECT_ID: pinecone COMMENT_ARTIFACT_NAME: coverage-comment-pinecone + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests env: @@ -106,6 +108,8 @@ jobs: COVERAGE_PATH: integrations/pinecone SUBPROJECT_ID: pinecone-combined COMMENT_ARTIFACT_NAME: coverage-comment-pinecone-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/pyversity.yml b/.github/workflows/pyversity.yml index 796e3d76cb..3ccd29a345 100644 --- a/.github/workflows/pyversity.yml +++ b/.github/workflows/pyversity.yml @@ -81,6 +81,8 @@ jobs: COVERAGE_PATH: integrations/pyversity SUBPROJECT_ID: pyversity COMMENT_ARTIFACT_NAME: coverage-comment-pyversity + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed diff --git a/.github/workflows/qdrant.yml b/.github/workflows/qdrant.yml index d60d1c6df9..3e3781129c 100644 --- a/.github/workflows/qdrant.yml +++ b/.github/workflows/qdrant.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/qdrant SUBPROJECT_ID: qdrant COMMENT_ARTIFACT_NAME: coverage-comment-qdrant + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/qdrant SUBPROJECT_ID: qdrant-combined COMMENT_ARTIFACT_NAME: coverage-comment-qdrant-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/ragas.yml b/.github/workflows/ragas.yml index 4a2690dc6b..f5fa7748e0 100644 --- a/.github/workflows/ragas.yml +++ b/.github/workflows/ragas.yml @@ -93,6 +93,8 @@ jobs: COVERAGE_PATH: integrations/ragas SUBPROJECT_ID: ragas COMMENT_ARTIFACT_NAME: coverage-comment-ragas + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed diff --git a/.github/workflows/snowflake.yml b/.github/workflows/snowflake.yml index 9a6c29d96c..9d367f179b 100644 --- a/.github/workflows/snowflake.yml +++ b/.github/workflows/snowflake.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/snowflake SUBPROJECT_ID: snowflake COMMENT_ARTIFACT_NAME: coverage-comment-snowflake + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 # No integration tests yet — add integration-cov-append-retry + combined coverage step when needed diff --git a/.github/workflows/stackit.yml b/.github/workflows/stackit.yml index 70e263460a..e3705e6554 100644 --- a/.github/workflows/stackit.yml +++ b/.github/workflows/stackit.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/stackit SUBPROJECT_ID: stackit COMMENT_ARTIFACT_NAME: coverage-comment-stackit + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/stackit SUBPROJECT_ID: stackit-combined COMMENT_ARTIFACT_NAME: coverage-comment-stackit-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/tavily.yml b/.github/workflows/tavily.yml index 42fccf69a7..d4b3e4ad7c 100644 --- a/.github/workflows/tavily.yml +++ b/.github/workflows/tavily.yml @@ -91,6 +91,8 @@ jobs: COVERAGE_PATH: integrations/tavily SUBPROJECT_ID: tavily COMMENT_ARTIFACT_NAME: coverage-comment-tavily + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,6 +105,8 @@ jobs: COVERAGE_PATH: integrations/tavily SUBPROJECT_ID: tavily-combined COMMENT_ARTIFACT_NAME: coverage-comment-tavily-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/togetherai.yml b/.github/workflows/togetherai.yml index a483e5bdc9..9ac95aa693 100644 --- a/.github/workflows/togetherai.yml +++ b/.github/workflows/togetherai.yml @@ -92,6 +92,8 @@ jobs: COVERAGE_PATH: integrations/togetherai SUBPROJECT_ID: togetherai COMMENT_ARTIFACT_NAME: coverage-comment-togetherai + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -104,6 +106,8 @@ jobs: COVERAGE_PATH: integrations/togetherai SUBPROJECT_ID: togetherai-combined COMMENT_ARTIFACT_NAME: coverage-comment-togetherai-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/unstructured.yml b/.github/workflows/unstructured.yml index 7a36528501..71543e0604 100644 --- a/.github/workflows/unstructured.yml +++ b/.github/workflows/unstructured.yml @@ -104,6 +104,8 @@ jobs: COVERAGE_PATH: integrations/unstructured SUBPROJECT_ID: unstructured COMMENT_ARTIFACT_NAME: coverage-comment-unstructured + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -116,6 +118,8 @@ jobs: COVERAGE_PATH: integrations/unstructured SUBPROJECT_ID: unstructured-combined COMMENT_ARTIFACT_NAME: coverage-comment-unstructured-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/valkey.yml b/.github/workflows/valkey.yml index 3eaa7ab1fa..af81c060eb 100644 --- a/.github/workflows/valkey.yml +++ b/.github/workflows/valkey.yml @@ -98,6 +98,8 @@ jobs: COVERAGE_PATH: integrations/valkey SUBPROJECT_ID: valkey COMMENT_ARTIFACT_NAME: coverage-comment-valkey + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -110,6 +112,8 @@ jobs: COVERAGE_PATH: integrations/valkey SUBPROJECT_ID: valkey-combined COMMENT_ARTIFACT_NAME: coverage-comment-valkey-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/watsonx.yml b/.github/workflows/watsonx.yml index a7118bdac1..f69eb3bc33 100644 --- a/.github/workflows/watsonx.yml +++ b/.github/workflows/watsonx.yml @@ -94,6 +94,8 @@ jobs: COVERAGE_PATH: integrations/watsonx SUBPROJECT_ID: watsonx COMMENT_ARTIFACT_NAME: coverage-comment-watsonx + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -106,6 +108,8 @@ jobs: COVERAGE_PATH: integrations/watsonx SUBPROJECT_ID: watsonx-combined COMMENT_ARTIFACT_NAME: coverage-comment-watsonx-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/weave.yml b/.github/workflows/weave.yml index 0ba4aaeb3a..30ad0ba2e7 100644 --- a/.github/workflows/weave.yml +++ b/.github/workflows/weave.yml @@ -89,6 +89,8 @@ jobs: COVERAGE_PATH: integrations/weave SUBPROJECT_ID: weave COMMENT_ARTIFACT_NAME: coverage-comment-weave + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -101,6 +103,8 @@ jobs: COVERAGE_PATH: integrations/weave SUBPROJECT_ID: weave-combined COMMENT_ARTIFACT_NAME: coverage-comment-weave-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/.github/workflows/weaviate.yml b/.github/workflows/weaviate.yml index e6db4dd744..28dfd7b478 100644 --- a/.github/workflows/weaviate.yml +++ b/.github/workflows/weaviate.yml @@ -90,6 +90,8 @@ jobs: COVERAGE_PATH: integrations/weaviate SUBPROJECT_ID: weaviate COMMENT_ARTIFACT_NAME: coverage-comment-weaviate + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -102,6 +104,8 @@ jobs: COVERAGE_PATH: integrations/weaviate SUBPROJECT_ID: weaviate-combined COMMENT_ARTIFACT_NAME: coverage-comment-weaviate-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 65b5dbba33..c282b017e9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -256,6 +256,7 @@ The script takes care of the full setup in one step: source package, tests, pydoc config, example components, and a README). - Creates a GitHub Actions CI workflow at `.github/workflows/.yml`. - Adds label rules to `.github/labeler.yml`. +- Registers the new workflow in `.github/workflows/CI_coverage_comment.yml` so PR coverage comments work automatically. - Adds the new integration to the table in the root `README.md`. Once the script finishes, follow the printed next-steps to fill in your component code, add dependencies, and diff --git a/scripts/create_new_integration.py b/scripts/create_new_integration.py index 8108a1acf8..12511c7c6c 100644 --- a/scripts/create_new_integration.py +++ b/scripts/create_new_integration.py @@ -11,6 +11,7 @@ from utils.scaffold import ( create_integration_files, create_workflow, + update_coverage_comment_workflow, update_labeler, update_root_readme, ) @@ -136,6 +137,9 @@ def main(): labeler_path = update_labeler(name, repo_root=REPO_ROOT) print(f" Updated: {labeler_path}") + coverage_path = update_coverage_comment_workflow(name, repo_root=REPO_ROOT) + print(f" Updated: {coverage_path}") + readme_path = update_root_readme(name, component_type, TYPE_LABELS, repo_root=REPO_ROOT) print(f" Updated: {readme_path}") diff --git a/scripts/utils/scaffold.py b/scripts/utils/scaffold.py index 836840924f..8e6eec3eee 100644 --- a/scripts/utils/scaffold.py +++ b/scripts/utils/scaffold.py @@ -102,6 +102,35 @@ def update_labeler(name: str, *, repo_root: Path) -> str: return str(labeler_path.relative_to(repo_root)) +def update_coverage_comment_workflow(name: str, *, repo_root: Path) -> str: + """Insert a workflow trigger entry in CI_coverage_comment.yml in alphabetical order. Returns the relative path.""" + workflow_path = repo_root / ".github" / "workflows" / "CI_coverage_comment.yml" + content = workflow_path.read_text() + + new_entry = f' - "Test / {name}"' + + # Find all existing workflow trigger entries and insert in sorted order + entry_pattern = re.compile(r'^ - "Test / ([^"]+)"', re.MULTILINE) + matches = list(entry_pattern.finditer(content)) + + insert_pos = None + for match in matches: + if match.group(1) > name: + insert_pos = match.start() + break + + if insert_pos is not None: + content = content[:insert_pos] + new_entry + "\n" + content[insert_pos:] + else: + # Insert after the last entry (before the `types:` line) + last_match = matches[-1] + insert_pos = last_match.end() + content = content[:insert_pos] + "\n" + new_entry + content[insert_pos:] + + workflow_path.write_text(content) + return str(workflow_path.relative_to(repo_root)) + + def update_root_readme( name: str, component_type: str, diff --git a/scripts/utils/templates/workflow.yml b/scripts/utils/templates/workflow.yml index ac003c0d31..54e641e375 100644 --- a/scripts/utils/templates/workflow.yml +++ b/scripts/utils/templates/workflow.yml @@ -91,6 +91,8 @@ jobs: COVERAGE_PATH: integrations/$name SUBPROJECT_ID: $name COMMENT_ARTIFACT_NAME: coverage-comment-$name + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run integration tests run: hatch run test:integration-cov-append-retry @@ -103,6 +105,8 @@ jobs: COVERAGE_PATH: integrations/$name SUBPROJECT_ID: $name-combined COMMENT_ARTIFACT_NAME: coverage-comment-$name-combined + MINIMUM_GREEN: 90 + MINIMUM_ORANGE: 60 - name: Run unit tests with lowest direct dependencies if: github.event_name != 'push'