Skip to content

Commit

Permalink
[CI] Fix driver update script with IGC (#16647)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sarnex authored Jan 15, 2025
1 parent fa46cbe commit 73336f3
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions devops/scripts/update_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,18 @@ def uplift_linux_igfx_driver(config, platform_tag, igc_dev_only):
config[platform_tag]['compute_runtime']['version'] = compute_runtime['tag_name']
config[platform_tag]['compute_runtime']['url'] = 'https://github.com/intel/compute-runtime/releases/tag/' + compute_runtime['tag_name']

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

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

0 comments on commit 73336f3

Please sign in to comment.