Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only test breaking changes in src + ignoring examples #1430

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/breaking_change_tests/breaking_changes_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,15 @@ def analyze_breaking_changes(verbose: bool = 1) -> List[Dict[str, Union[str, Lis
root_dir = str(Path(__file__).resolve().parents[2])
git_explorer = GitHelper(git_path=root_dir)

changed_sg_modules = [
module_path
for module_path in git_explorer.diff_files(source_branch="master", current_branch="HEAD")
if module_path.startswith("src/super_gradients/") and not module_path.startswith("src/super_gradients/examples/")
]

summary = ""
breaking_changes_list = []
for module_path in git_explorer.diff_files(source_branch="master", current_branch="HEAD"):
for module_path in changed_sg_modules:

master_code = git_explorer.load_branch_file(branch="master", file_path=module_path)
head_code = git_explorer.load_branch_file(branch="HEAD", file_path=module_path)
Expand Down