Skip to content

Commit

Permalink
Fix python sdk pipeline (Azure#25728)
Browse files Browse the repository at this point in the history
* fix python sdk pipeline

* changlog fix
  • Loading branch information
msyyc authored and mccoyp committed Sep 22, 2022
1 parent cc1d0db commit e242458
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions tools/azure-sdk-tools/packaging_tools/auto_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ def main(generate_input, generate_output):
python_tag = data.get("python_tag")
package_total = set()
for input_readme in data["relatedReadmeMdFiles"]:
# skip codegen for data-plane temporarily since it is useless now and may block PR
if "resource-manager" not in input_readme:
continue
relative_path_readme = str(Path(spec_folder, input_readme))
_LOGGER.info(f"[CODEGEN]({input_readme})codegen begin")
if 'resource-manager' in input_readme:
Expand Down
2 changes: 1 addition & 1 deletion tools/azure-sdk-tools/packaging_tools/auto_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main(generate_input, generate_output):
# Changelog
last_version = ["first release"]
if "azure-mgmt-" in package_name:
md_output = change_log_generate(package_name, last_version)
md_output = change_log_generate(package_name, last_version, package["tagIsStable"])
else:
md_output = "data-plan skip changelog generation temporarily"
package["changelog"] = {
Expand Down
1 change: 1 addition & 0 deletions tools/azure-sdk-tools/packaging_tools/change_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def get_report_from_parameter(input_parameter, tag_is_stable: bool = False):
package_name,
version=version if version not in ["pypi", "latest"] else None,
last_pypi=version == "pypi",
last_pypi_stable=tag_is_stable,
)
if not result:
raise ValueError("Was not able to build a report")
Expand Down
1 change: 1 addition & 0 deletions tools/azure-sdk-tools/packaging_tools/generate_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def generate(
restapi_git_folder,
autorest_bin=None,
force_generation=False,
python_tag=None,
):

sdk_folder = Path(sdk_folder).expanduser()
Expand Down
5 changes: 0 additions & 5 deletions tools/azure-sdk-tools/packaging_tools/sdk_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ def main(generate_input, generate_output):
package_total = set()

input_readme = data["relatedReadmeMdFile"]
# skip codegen for data-plane temporarily since it is useless now and may block PR
if "resource-manager" not in input_readme:
# continue
_LOGGER.error(f"[CODEGEN]({input_readme}) 'resource-manager' not in [relatedReadmeMdFile]")
return
relative_path_readme = str(Path(spec_folder, input_readme))
_LOGGER.info(f"[CODEGEN]({input_readme})codegen begin")

Expand Down

0 comments on commit e242458

Please sign in to comment.