Skip to content

Commit

Permalink
[GHA][ov-provider] Exclude custom release packages from matching (ope…
Browse files Browse the repository at this point in the history
…nvinotoolkit#27979)

To filter out automatically picking unwanted custom release builds like
https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.5/windows_vc_mt

Test run:
https://github.com/openvinotoolkit/openvino_tokenizers/actions/runs/12237578864/job/34133648815?pr=338
(now the regular "windows" package is picked)

Signed-off-by: Alina Kladieva <[email protected]>
  • Loading branch information
akladiev authored Dec 9, 2024
1 parent de776f2 commit 67f2537
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/openvino_provider/get_s3_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def main(product, version_pattern, platform, arch, folder):
matching_files = filter_files_by_criteria(all_files, product, version_pattern, platform, arch, folder)
if matching_files:
logger.info(f"Matching packages: {sorted(matching_files)}")
if len(matching_files) > 1:
custom_release_build_pattern = fr".*/{version_pattern}/(linux_|windows_|macos_).*/.*"
# Exclude custom release builds, if any, from matches
matching_files = [file for file in matching_files if not re.search(custom_release_build_pattern, file)]
package_url = f"https://storage.openvinotoolkit.org{sorted(matching_files)[-1]}"
logger.info(f"Returning package URL: {package_url}")
action_utils.set_github_output("package_url", package_url)
Expand Down

0 comments on commit 67f2537

Please sign in to comment.