Skip to content

Commit 73336f3

Browse files
authored
[CI] Fix driver update script with IGC (#16647)
A couple of things changed that cause the script to break: 1. The `.sum` file in the `compute-runtime` release no longer lists IGC debs. 2. The format of the IGC tags changed Update the script to find the IGC tag using a regex in the `compute-runtime` release description, which is the only place that lists the corresponding IGC version. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent fa46cbe commit 73336f3

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

devops/scripts/update_drivers.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,18 @@ def uplift_linux_igfx_driver(config, platform_tag, igc_dev_only):
4848
config[platform_tag]['compute_runtime']['version'] = compute_runtime['tag_name']
4949
config[platform_tag]['compute_runtime']['url'] = 'https://github.com/intel/compute-runtime/releases/tag/' + compute_runtime['tag_name']
5050

51-
for a in compute_runtime['assets']:
52-
if a['name'].endswith('.sum'):
53-
deps = str(urlopen(a['browser_download_url']).read())
54-
m = re.search(r"intel-igc-core_([0-9\.]*)_amd64", deps)
55-
if m is not None:
56-
ver = m.group(1)
57-
config[platform_tag]['igc']['github_tag'] = 'igc-' + ver
58-
config[platform_tag]['igc']['version'] = ver
59-
config[platform_tag]['igc']['url'] = 'https://github.com/intel/intel-graphics-compiler/releases/tag/igc-' + ver
60-
break
51+
m = re.search(
52+
re.escape("https://github.com/intel/intel-graphics-compiler/releases/tag/")
53+
+ r"(v[\.0-9]+)",
54+
compute_runtime["body"],
55+
)
56+
if m is not None:
57+
ver = m.group(1)
58+
config[platform_tag]["igc"]["github_tag"] = ver
59+
config[platform_tag]["igc"]["version"] = ver
60+
config[platform_tag]["igc"]["url"] = (
61+
"https://github.com/intel/intel-graphics-compiler/releases/tag/" + ver
62+
)
6163

6264
cm = get_latest_release('intel/cm-compiler')
6365
config[platform_tag]['cm']['github_tag'] = cm['tag_name']

0 commit comments

Comments
 (0)