Skip to content

Commit

Permalink
[#25522]yugabyted: Updating dependency graph logic for running tests …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
nchandrappa committed Jan 8, 2025
1 parent 4a9292c commit e1c3290
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/yugabyted
Original file line number Diff line number Diff line change
Expand Up @@ -4899,7 +4899,7 @@ class ControlScript(object):
status_details = []
status_display_info = {}

# Case Scenario: When each AZ/region has only 1 node. (Most happy path)
# Case Scenario: When each AZ/region has only 1 node. (Happiest path)
if len(placement_location_map) == replication_factor:
final_status = ""
ft_status = ""
Expand Down
5 changes: 5 additions & 0 deletions python/yugabyte/source_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ def get_file_category(rel_path: str) -> SourceFileCategory:
raise IOError("Relative path expected, got an absolute path: %s" % rel_path)
basename = os.path.basename(rel_path)

# Adding the check for yugabyted file before running the check for
# DIRECTORIES_THAT_DO_NOT_AFFECT_TESTS which contains the bin directory.
if rel_path.startswith('bin/yugabyted'):
return SourceFileCategory.JAVA

if rel_path.split(os.sep)[0] in DIRECTORIES_THAT_DO_NOT_AFFECT_TESTS:
return SourceFileCategory.DOES_NOT_AFFECT_TESTS

Expand Down

0 comments on commit e1c3290

Please sign in to comment.