Skip to content

Commit 0943a33

Browse files
inner loop, update-changelogcontent tool, add script to integrate (Azure#47079)
* add script on update changelog * code clean up * update comments * update comment and add config * add comments * Update eng/automation/generate.py Co-authored-by: Copilot <[email protected]> * Update eng/scripts/Automation-Sdk-UpdateChangelog.ps1 Co-authored-by: Copilot <[email protected]> * update comments * update comments * Use engsys common script to update changelog * refactor and use engsys common script's logging utils * explicitly return 0 for successful updates --------- Co-authored-by: Copilot <[email protected]>
1 parent 558fe1a commit 0943a33

File tree

4 files changed

+627
-1
lines changed

4 files changed

+627
-1
lines changed

eng/automation/generate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
328328
update_service_files_for_new_lib(sdk_root, service, GROUP_ID, module)
329329
update_root_pom(sdk_root, service)
330330

331+
# get the stable version and current version from version_client.txt, current version in version_client will be updated if the release type is GA.
332+
# e.g. If current version is 1.2.0-beta.1 and the release type is GA, then current version will be updated to 1.2.0
331333
stable_version, current_version = set_or_increase_version(sdk_root, GROUP_ID, module, preview=release_beta_sdk)
332334
update_parameters(None)
333335
output_folder = OUTPUT_FOLDER_FORMAT.format(service)
@@ -339,6 +341,7 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
339341
if is_mgmt_premium(module):
340342
move_premium_samples(sdk_root, service, module)
341343
update_azure_resourcemanager_pom(sdk_root, module, current_version)
344+
# For output breaking changes, useful in sdk validation pipeline
342345
logging.info("[Changelog] Start breaking change detection for SDK automation.")
343346
breaking, changelog, breaking_change_items = compare_with_maven_package(
344347
sdk_root,
@@ -349,6 +352,7 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
349352
module,
350353
)
351354
logging.info("[Changelog] Complete breaking change detection for SDK automation.")
355+
# For changelog content update
352356
logging.info("[Changelog] Start generating changelog.")
353357
compare_with_maven_package(
354358
sdk_root,

eng/automation/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def set_or_increase_version(
373373
def is_windows():
374374
return platform.system().lower() == "windows"
375375

376-
376+
# Get the latest release version based on current version. If current version is beta, get latest beta version; if current version is GA, get latest GA version.
377377
def get_latest_release_version(previous_version: str, current_version: str) -> str:
378378
if "-beta." in current_version and "-beta." not in previous_version:
379379
# if current version is preview, try compare it with a previous preview release

0 commit comments

Comments
 (0)