From 10f50564ac4595b726259c3e118d17747bd5d345 Mon Sep 17 00:00:00 2001 From: Tre Date: Mon, 2 Dec 2024 09:12:56 +0000 Subject: [PATCH] [Ownership] Add quick check to prevent test files from being added without an owner (#201979) ## Summary Add quick check to prevent test files from being added without an owner Resolves: #192979 Co-authored-by: Elastic Machine Co-authored-by: Robert Oskamp --- .buildkite/scripts/steps/checks/quick_checks.txt | 1 + .../scripts/steps/checks/test_files_missing_owner.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 .buildkite/scripts/steps/checks/test_files_missing_owner.sh diff --git a/.buildkite/scripts/steps/checks/quick_checks.txt b/.buildkite/scripts/steps/checks/quick_checks.txt index 9bd9224673905..7aa0f68118466 100644 --- a/.buildkite/scripts/steps/checks/quick_checks.txt +++ b/.buildkite/scripts/steps/checks/quick_checks.txt @@ -17,3 +17,4 @@ .buildkite/scripts/steps/checks/prettier_topology.sh .buildkite/scripts/steps/checks/renovate.sh .buildkite/scripts/steps/checks/native_modules.sh +.buildkite/scripts/steps/checks/test_files_missing_owner.sh diff --git a/.buildkite/scripts/steps/checks/test_files_missing_owner.sh b/.buildkite/scripts/steps/checks/test_files_missing_owner.sh new file mode 100755 index 0000000000000..4dfec4e18ab61 --- /dev/null +++ b/.buildkite/scripts/steps/checks/test_files_missing_owner.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -euo pipefail + +source .buildkite/scripts/common/util.sh + +echo --- Check for Test Files missing an owner +node scripts/check_ftr_code_owners