Skip to content

Commit

Permalink
{CI} Fix full test issue (#27839)
Browse files Browse the repository at this point in the history
* add logger

* Update automation_full_test.py

* Update automation_full_test.py

* Update automation_full_test.py
  • Loading branch information
wangzelin007 authored Nov 20, 2023
1 parent 7a20a30 commit efcfabd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/ci/automation_full_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,13 @@ def __init__(self):
def get_all_modules(self):
result = get_path_table()
# only get modules and core, ignore extensions
self.modules = {**result['mod'], **result['core']}
result_mod = result['mod']
result_core = result['core']

# make sure the dictionary is in order, otherwise job assignments will be random.
from collections import OrderedDict
self.modules = OrderedDict(sorted((result_mod | result_core).items()))
logger.info(json.dumps(self.modules, indent=2))

def get_extension_modules(self):
out = subprocess.Popen(['azdev', 'extension', 'list', '-o', 'tsv'], stdout=subprocess.PIPE)
Expand Down Expand Up @@ -569,6 +575,7 @@ def get_instance_modules(self):
self.works[idx][k] = v
# instance_idx: 1~n, python list index: 0~n-1
self.instance_idx -= 1
logger.info(json.dumps(self.works, indent=2))
return self.works[self.instance_idx]

def run_instance_modules(self, instance_modules):
Expand Down

0 comments on commit efcfabd

Please sign in to comment.