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

sdk automation, fix changelog for mpg self-serve #44523

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 14 additions & 2 deletions eng/automation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def sdk_automation_typespec(config: dict) -> List[dict]:

def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:

# TODO(xiaofei) support changelog, etc
base_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
sdk_root = os.path.abspath(os.path.join(base_dir, SDK_ROOT))
spec_root = os.path.abspath(config["specFolder"])
Expand Down Expand Up @@ -272,14 +271,27 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
# compile
succeeded = compile_arm_package(sdk_root, module)
if succeeded:
logging.info("[Changelog] Start breaking change detection for SDK automation.")
breaking, changelog, breaking_change_items = compare_with_maven_package(
sdk_root,
GROUP_ID,
service,
get_latest_ga_version(GROUP_ID, module, stable_version),
current_version,
module,
module
)
logging.info("[Changelog] Complete breaking change detection for SDK automation.")
logging.info("[Changelog] Start generating changelog.")
compare_with_maven_package(
sdk_root,
GROUP_ID,
service,
get_latest_release_version(stable_version, current_version),
current_version,
module
)
update_changelog_version(sdk_root, output_folder, current_version)
logging.info("[Changelog] Complete generating changelog.")

# output
if sdk_folder and module and service:
Expand Down