From c2b86c48b9402cc2e7514883789d612c51497397 Mon Sep 17 00:00:00 2001 From: Juanpe Araque Date: Tue, 19 Aug 2025 17:29:52 +0200 Subject: [PATCH 1/3] Modify master run to avoid running in commits that do not modify specific files --- .github/workflows/master.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index e23d4828323d0..925ff11ead4fc 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -4,6 +4,25 @@ on: push: branches: - master + paths: + # List of files/paths that should trigger the run. The intention is to avoid running all tests if the commit only includes changes on assets or README + - '*/datadog_checks/**' + - '*/tests/**' + - 'ddev/src/**' + - 'ddev' + - 'datadog_check_base' + - 'datadog_checks_dev' + # Contains overrides for testing + - '.ddev' + # Want to ensure any change in workflows is validated + - '.github/workflows/**' + # Test matrices and dependencies + - '*/hatch.toml' + - '*/pyproject.toml' + # Some integrations might use this file to validate metrics emission + - '*/metadata.csv' + # In case some linting formatting config has changed + - 'pyproject.toml' jobs: cache: From 782dab162fcb09a0d9dfd8f82d2d937523e996ca Mon Sep 17 00:00:00 2001 From: Juanpe Araque Date: Tue, 19 Aug 2025 17:35:54 +0200 Subject: [PATCH 2/3] Add path filtering to master-windows as well --- .github/workflows/master-windows.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/master-windows.yml b/.github/workflows/master-windows.yml index 814a89787683b..fdb043df8892e 100644 --- a/.github/workflows/master-windows.yml +++ b/.github/workflows/master-windows.yml @@ -6,6 +6,25 @@ on: push: branches: - master + paths: + # List of files/paths that should trigger the run. The intention is to avoid running all tests if the commit only includes changes on assets or README + - '*/datadog_checks/**' + - '*/tests/**' + - 'ddev/src/**' + - 'ddev' + - 'datadog_check_base' + - 'datadog_checks_dev' + # Contains overrides for testing + - '.ddev' + # Want to ensure any change in workflows is validated + - '.github/workflows/**' + # Test matrices and dependencies + - '*/hatch.toml' + - '*/pyproject.toml' + # Some integrations might use this file to validate metrics emission + - '*/metadata.csv' + # In case some linting formatting config has changed + - 'pyproject.toml' jobs: cache: From 578ff895f7bb9475425d5e6d641ca7e68c8402cd Mon Sep 17 00:00:00 2001 From: Juanpe Araque Date: Tue, 19 Aug 2025 17:36:42 +0200 Subject: [PATCH 3/3] Remove duplicated ddev --- .github/workflows/master-windows.yml | 1 - .github/workflows/master.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/master-windows.yml b/.github/workflows/master-windows.yml index fdb043df8892e..3418bc68fc0de 100644 --- a/.github/workflows/master-windows.yml +++ b/.github/workflows/master-windows.yml @@ -10,7 +10,6 @@ on: # List of files/paths that should trigger the run. The intention is to avoid running all tests if the commit only includes changes on assets or README - '*/datadog_checks/**' - '*/tests/**' - - 'ddev/src/**' - 'ddev' - 'datadog_check_base' - 'datadog_checks_dev' diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 925ff11ead4fc..a006fa2734982 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -8,7 +8,6 @@ on: # List of files/paths that should trigger the run. The intention is to avoid running all tests if the commit only includes changes on assets or README - '*/datadog_checks/**' - '*/tests/**' - - 'ddev/src/**' - 'ddev' - 'datadog_check_base' - 'datadog_checks_dev'