Skip to content

Commit e1c3290

Browse files
committed
[#25522]yugabyted: Updating dependency graph logic for running tests for yugabyted changes.
Summary: The logic for determining which tests to run in “dependency_graph.py” is updated to run JAVA_TESTS for yugabyted related changes. Jira: DB-14779 Test Plan: ./yb_build.sh --java-test 'org.yb.yugabyted.*' Reviewers: steve.varnau Reviewed By: steve.varnau Differential Revision: https://phorge.dev.yugabyte.com/D41072
1 parent 4a9292c commit e1c3290

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bin/yugabyted

+1-1
Original file line numberDiff line numberDiff line change
@@ -4899,7 +4899,7 @@ class ControlScript(object):
48994899
status_details = []
49004900
status_display_info = {}
49014901

4902-
# Case Scenario: When each AZ/region has only 1 node. (Most happy path)
4902+
# Case Scenario: When each AZ/region has only 1 node. (Happiest path)
49034903
if len(placement_location_map) == replication_factor:
49044904
final_status = ""
49054905
ft_status = ""

python/yugabyte/source_files.py

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ def get_file_category(rel_path: str) -> SourceFileCategory:
8888
raise IOError("Relative path expected, got an absolute path: %s" % rel_path)
8989
basename = os.path.basename(rel_path)
9090

91+
# Adding the check for yugabyted file before running the check for
92+
# DIRECTORIES_THAT_DO_NOT_AFFECT_TESTS which contains the bin directory.
93+
if rel_path.startswith('bin/yugabyted'):
94+
return SourceFileCategory.JAVA
95+
9196
if rel_path.split(os.sep)[0] in DIRECTORIES_THAT_DO_NOT_AFFECT_TESTS:
9297
return SourceFileCategory.DOES_NOT_AFFECT_TESTS
9398

0 commit comments

Comments
 (0)