Skip to content

Commit ddf94c6

Browse files
BigCat20196msyycZhou Zheng
authored
[Script] Update Auto release debug (Azure#25595)
* fix auto-ask-check bug * update comment * update comment * fix bug * Update main.py * Update main.py * Update main.py * fix changelog format for new service * fix check_pprint_name bug * Update main.py * fix check_pprint_name bug * Update main.py * Update main.py * test * test * change to azclibot * change to azure * fix push * test * update * update * test * test * reduction * update main * delete f * Update main.py * test * test * test * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * remove surplus code * Update PythonSdkLiveTest.yml for Azure Pipelines * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * fix bug * update * test * update code * update bot * update main bot * Update PythonSdkLiveTest.yml for Azure Pipelines * Update main.py * Update main.py * change branch for test * for test * for test * for test * add PyYAML * code * README.md format * multi client * code * add python_tag * restore branch * Update PythonSdkLiveTest.yml * gen multi client * update global_conf * Update auto_codegen.py * Update generate_sdk.py * Update generate_sdk.py * Update generate_sdk.py * single client gen * Update main.py * compatible with meta storage code * add log to lookup readme * dpg package does not need _meta.json in MAINFEST.in * Update main.py * Update PythonSdkLiveTest.yml for Azure Pipelines * add language, apiviewartifacts * uodate edit_sdk_setup * fix * test * test * fix bug * debug * fix bug * fix bug * Update main.py * move to ci check * Update main.py * for test * restore * update msg for failed version * for testing * for testing * restore * restore * pin fastcore version * test * debug * debug * optimize * Update setup.py * sdk generation pipeline support dpg Signed-off-by: Zhou Zheng <zhouzheng@microsoft.com> * auto codegen don't use specFolder to define swagger repo's location Signed-off-by: Zhou Zheng <zhouzheng@microsoft.com> * fetch automation_generate.sh recent change to sdk_generate.sh Signed-off-by: Zhou Zheng <zhouzheng@microsoft.com> * set default spec flord as global constant Signed-off-by: Zhou Zheng <zhouzheng@microsoft.com> * set DEFAULT_SPEC_FOLDER in generate_utils Signed-off-by: Zhou Zheng <zhouzheng@microsoft.com> * code * fix auto-release utils Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: Zhou Zheng <zhouzheng@microsoft.com>
1 parent 8feb9d1 commit ddf94c6

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

scripts/auto_release/requirement.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ ghapi==0.1.19
44
packaging==21.3
55
pytest==6.2.5
66
azure-storage-blob==12.9.0
7-
fastcore==1.3.25
7+
fastcore==1.3.25

scripts/auto_release/util.py

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
11
from pathlib import Path
22

3-
CERTIFICATION = '''
4-
-----BEGIN CERTIFICATE-----
5-
MIIDSDCCAjCgAwIBAgIUPMKpJ/j10eQrcQBNnkImIaOYHakwDQYJKoZIhvcNAQEL
6-
BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTIxMDgwNTAwMzU1NloXDTIyMDgw
7-
NTAwMzU1NlowFDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEF
8-
AAOCAQ8AMIIBCgKCAQEAxe/ZseXgOTVoF7uTjX5Leknk95jIoyGc+VlxA8BhzGOr
9-
r4u6VNQZRCMq+svHY36tW4+u/xHNe2kvbwy2mnS8cFFLfst+94qBZVJDBxSGZ9I/
10-
wekErNsjFsik4UrMvcC+ZlGPh7hb3f7tSx29tn1DIkAUXVnbZ6TT5s+mYRQpZ6fW
11-
6kR3RNfc0A1IUM7Zs9yfNEr0O2H41P2HcLKoOPtvd7GvTQm9Ofh3srKvII+sZn/J
12-
WH7r76oRQMX904mOMdryQwZLObsqX4dXIEbafKVSecB3PBVIhv8gVtJhcZbQP1pI
13-
mMiWd6PHv46ZhGf7+cKnYUSa8Ia2t/wetK1wd00dFwIDAQABo4GRMIGOMA8GA1Ud
14-
EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGmMBYGA1UdJQEB/wQMMAoGCCsGAQUF
15-
BwMBMBcGA1UdEQEB/wQNMAuCCWxvY2FsaG9zdDA6BgorBgEEAYI3VAEBBCwMKkFT
16-
UC5ORVQgQ29yZSBIVFRQUyBkZXZlbG9wbWVudCBjZXJ0aWZpY2F0ZTANBgkqhkiG
17-
9w0BAQsFAAOCAQEAIj2VlBVcXGSly6KCBg6lgwFi+henWfSox77iuGAaAxDjN3jd
18-
9lZahW4MPNLHKSrPRb4YNSLZ2jh7zdcttQrqd4qH65o1q56q5JrCmli99iIzY9Y8
19-
RdYyxK4Zzr31wjpsyFiWQfqJTuSFUUg9uDDj0negwEZLIGlt7nr12wflt2+QOJtD
20-
byMeSZLbB5dPzn341DK0qfJEJMMgL0XsPEVZ3TQ6Alc9zq5wI608C/mXnz3xJE05
21-
UTYD8pRJJ/DyG0empvOVE8Sg93msHPquAbgqO9aqCpykgg/a8CFvI4wRdfvGEFlv
22-
8XJKL8Y/PFsmFeO3axq3zUYKFVdc9Un4dFIaag==
23-
-----END CERTIFICATE-----
24-
'''
3+
4+
def _find_certificate():
5+
devcert_path = Path('eng/common/testproxy/dotnet-devcert.crt')
6+
with open(devcert_path, 'r') as fr:
7+
return fr.read()
258

269

2710
def add_certificate():
11+
certification = _find_certificate()
2812
cacert_path = Path('../venv-sdk/lib/python3.8/site-packages/certifi/cacert.pem')
2913
with open(cacert_path, 'a+') as f:
3014
f.seek(0, 0)
31-
f.write(CERTIFICATION)
15+
f.write(certification)

0 commit comments

Comments
 (0)