Skip to content

Commit 93056eb

Browse files
authored
Update identity build machine for msal 3.7 from ubunto 18.04 to 20.04 (#25807)
* update identity build machine for msal 3.7 from ubunto 18.04 to 20.04 * updating parse_requirements in inject_custom_reqs
1 parent 4d1b261 commit 93056eb

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

scripts/devops_tasks/tox_harness.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import re
66
import multiprocessing
77
import glob
8-
import pdb
98

109
if sys.version_info < (3, 0):
1110
from Queue import Queue
@@ -208,9 +207,11 @@ def inject_custom_reqs(file, injected_packages, package_dir):
208207
)
209208
with open(file, "r") as f:
210209
for line in f:
210+
logging.info("Attempting to parse {}".format(line))
211211
try:
212212
parsed_req = [req for req in parse_requirements(line)]
213-
except RequirementParseError as e:
213+
except Exception as e:
214+
logging.error(e)
214215
parsed_req = [None]
215216
req_lines.append((line, parsed_req))
216217

@@ -226,6 +227,8 @@ def inject_custom_reqs(file, injected_packages, package_dir):
226227
else:
227228
all_adjustments = injected_packages
228229

230+
logging.info("Generated Custom Reqs: {}".format(req_lines))
231+
229232
with open(file, "w") as f:
230233
# note that we directly use '\n' here instead of os.linesep due to how f.write() actually handles this stuff internally
231234
# If a file is opened in text mode (the default), during write python will accidentally double replace due to "\r" being

sdk/identity/platform-matrix.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"include": [
99
{
1010
"Config": {
11-
"ubuntu_18.04_3.7_msal": {
12-
"OSVmImage": "MMSUbuntu18.04",
13-
"Pool": "azsdk-pool-mms-ubuntu-1804-general",
11+
"ubuntu_20.04_3.7_msal": {
12+
"OSVmImage": "MMSUbuntu20.04",
13+
"Pool": "azsdk-pool-mms-ubuntu-2004-general",
1414
"PythonVersion": "3.7",
1515
"CoverageArg": "--disablecov",
1616
"InjectedPackages": "git+https://github.com/AzureAD/microsoft-authentication-library-for-python@dev",

0 commit comments

Comments
 (0)