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

[Script] Auto release debug #24833

Merged
merged 98 commits into from
Jun 15, 2022
Merged
Changes from 97 commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
b1ca1b7
fix auto-ask-check bug
msyyc Jan 28, 2022
a61a9d5
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Feb 16, 2022
5ae58ab
update comment
BigCat20196 Feb 16, 2022
79a3594
update comment
BigCat20196 Feb 16, 2022
7071377
fix bug
BigCat20196 Feb 17, 2022
8f6fe79
Update main.py
BigCat20196 Feb 17, 2022
8d23d87
Update main.py
msyyc Feb 17, 2022
44faa80
Update main.py
msyyc Feb 17, 2022
84768eb
fix changelog format for new service
BigCat20196 Feb 18, 2022
29f9a86
fix check_pprint_name bug
BigCat20196 Feb 18, 2022
5b11c12
Update main.py
msyyc Feb 18, 2022
6b13133
fix check_pprint_name bug
BigCat20196 Feb 18, 2022
03f63af
Merge branch 'auto-release-debug' of https://github.com/msyyc/azure-s…
BigCat20196 Feb 18, 2022
c53585b
Update main.py
msyyc Feb 21, 2022
8a8b3d7
Merge branch 'main' into auto-release-debug
msyyc Feb 21, 2022
90ab52d
Update main.py
msyyc Mar 4, 2022
c124933
test
BigCat20196 Mar 9, 2022
e6f89a2
test
BigCat20196 Mar 9, 2022
76faf36
change to azclibot
BigCat20196 Mar 9, 2022
ffb8635
change to azure
BigCat20196 Mar 9, 2022
53ada77
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Mar 9, 2022
40a0f74
fix push
BigCat20196 Mar 9, 2022
2f6b174
test
BigCat20196 Mar 9, 2022
d5ce826
update
BigCat20196 Mar 9, 2022
79a553e
update
BigCat20196 Mar 9, 2022
ec747f1
test
BigCat20196 Mar 9, 2022
6f51fc8
test
BigCat20196 Mar 9, 2022
7107723
reduction
BigCat20196 Mar 9, 2022
6885266
update main
BigCat20196 Mar 11, 2022
6c9bbbd
delete f
BigCat20196 Mar 11, 2022
21b6c6b
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Mar 28, 2022
c2cb7e4
Update main.py
BigCat20196 Mar 28, 2022
5164abe
test
BigCat20196 Mar 28, 2022
cdb30c4
test
BigCat20196 Mar 28, 2022
e173adc
test
BigCat20196 Mar 28, 2022
04baa8a
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Mar 28, 2022
2a9f585
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Mar 28, 2022
3575ab3
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Mar 29, 2022
0502b3e
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Apr 26, 2022
8b71e04
remove surplus code
msyyc May 7, 2022
68a5273
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 May 18, 2022
a517b29
Update main.py
BigCat20196 May 18, 2022
3841e32
Update main.py
BigCat20196 May 18, 2022
2fdba35
Update main.py
BigCat20196 May 18, 2022
3ad0f64
Update main.py
BigCat20196 May 18, 2022
a32eac7
Update main.py
BigCat20196 May 18, 2022
7148c2a
Update main.py
BigCat20196 May 18, 2022
6d1fbbb
Update main.py
BigCat20196 May 19, 2022
e008315
Update main.py
BigCat20196 May 19, 2022
63bd619
Update main.py
BigCat20196 May 19, 2022
31a7e2d
Update main.py
BigCat20196 May 19, 2022
dd0c4d8
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 May 19, 2022
225a28e
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 May 20, 2022
79c8572
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 May 20, 2022
9c97784
Merge branch 'auto-release-debug' of https://github.com/msyyc/azure-s…
BigCat20196 May 23, 2022
fe21708
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 May 23, 2022
c725d95
merge code
BigCat20196 May 23, 2022
a41959d
fix bug
BigCat20196 May 23, 2022
aed57d8
update
BigCat20196 May 23, 2022
f5bb4c5
test
BigCat20196 May 23, 2022
38d34ba
update code
BigCat20196 May 23, 2022
1b379c0
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Jun 6, 2022
047f03c
update bot
BigCat20196 Jun 6, 2022
33da045
update main bot
BigCat20196 Jun 6, 2022
a718531
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Jun 6, 2022
4bbcce9
Update main.py
BigCat20196 Jun 6, 2022
bfd4d3e
Update main.py
BigCat20196 Jun 6, 2022
6a6585a
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Jun 7, 2022
82d4b0f
change branch for test
BigCat20196 Jun 7, 2022
d4269a7
for test
BigCat20196 Jun 7, 2022
544efb8
for test
BigCat20196 Jun 7, 2022
7d46cd8
for test
BigCat20196 Jun 7, 2022
539d78c
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Jun 10, 2022
378c1c0
add python_tag
BigCat20196 Jun 10, 2022
6eb0ed1
restore branch
BigCat20196 Jun 10, 2022
1bd12ca
Update PythonSdkLiveTest.yml
BigCat20196 Jun 10, 2022
35e1a19
update global_conf
BigCat20196 Jun 10, 2022
4f13d5d
Merge branch 'auto-release-debug' of https://github.com/msyyc/azure-s…
BigCat20196 Jun 10, 2022
32bd55f
Update auto_codegen.py
BigCat20196 Jun 10, 2022
845a892
Update generate_sdk.py
BigCat20196 Jun 10, 2022
64de6b8
Update generate_sdk.py
BigCat20196 Jun 10, 2022
7e871b6
Update generate_sdk.py
BigCat20196 Jun 10, 2022
091bf1f
Update main.py
BigCat20196 Jun 10, 2022
8af7ccb
Update main.py
BigCat20196 Jun 13, 2022
9dd3b1f
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Jun 13, 2022
293c50f
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Jun 13, 2022
1061cb3
uodate edit_sdk_setup
BigCat20196 Jun 14, 2022
a3e777a
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Jun 14, 2022
ce4bef8
fix
BigCat20196 Jun 14, 2022
916bd3a
test
BigCat20196 Jun 14, 2022
4278ee3
test
BigCat20196 Jun 14, 2022
5fc5ccf
fix bug
BigCat20196 Jun 14, 2022
c895704
debug
BigCat20196 Jun 14, 2022
4c22e5c
fix bug
BigCat20196 Jun 14, 2022
cded964
fix bug
BigCat20196 Jun 14, 2022
cc60f92
Update main.py
BigCat20196 Jun 14, 2022
1f67dfe
move to ci check
BigCat20196 Jun 14, 2022
88323f7
Update main.py
BigCat20196 Jun 15, 2022
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
23 changes: 21 additions & 2 deletions scripts/auto_release/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,21 +375,40 @@ def check_changelog_file(self):
else:
self.edit_changelog()

@staticmethod
def get_need_dependency():
template_path = Path('tools/azure-sdk-tools/packaging_tools/templates/setup.py')
with open(template_path, 'r') as fr:
content = fr.readlines()
for line in content:
if 'msrest>' in line:
target_msrest = line.strip().strip(',').strip('\'')
yield target_msrest
if 'azure-mgmt-core' in line:
target_mgmt_core = line.strip().strip(',').strip('\'')
yield target_mgmt_core

def check_ci_file_proc(self, dependency: str):
def edit_ci_file(content: List[str]):
new_line = f'#override azure-mgmt-{self.package_name} {dependency}'
dependency_name = dependency.split('>')[0]
for i in range(len(content)):
if new_line in content[i]:
return
if f'azure-mgmt-{self.package_name} {dependency_name}' in content[i]:
content[i] = new_line
return
prefix = '' if '\n' in content[-1] else '\n'
content.append(prefix + new_line + '\n')

modify_file(str(Path('shared_requirements.txt')), edit_ci_file)
print_exec('git add shared_requirements.txt')

def check_ci_file(self):
self.check_ci_file_proc('msrest>=0.6.21')
self.check_ci_file_proc('azure-mgmt-core>=1.3.0,<2.0.0')
# eg: target_msrest = 'msrest>=0.6.21', target_mgmt_core = 'azure-mgmt-core>=1.3.0,<2.0.0'
target_msrest, target_mgmt_core = list(self.get_need_dependency())
self.check_ci_file_proc(target_msrest)
self.check_ci_file_proc(target_mgmt_core)

def check_file(self):
self.check_file_with_packaging_tool()
Expand Down