Skip to content

Commit 65d6296

Browse files
committed
pipeline
1 parent 40f9aa1 commit 65d6296

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

scripts/release/atomic_pipeline.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from concurrent.futures import ProcessPoolExecutor
99
from copy import copy
1010
from queue import Queue
11-
from typing import Dict, Optional, Tuple
11+
from typing import Dict, List, Optional, Tuple
1212

1313
import requests
1414
from opentelemetry import trace
@@ -123,11 +123,9 @@ def generate_agent_build_args(platforms: List[str], agent_version: str, tools_ve
123123
mapping = agent_info["platform_mappings"][platform]
124124
build_arg_names = get_build_arg_names(platform)
125125

126-
# Generate agent build arg
127126
agent_filename = f"{agent_info['base_names']['agent']}-{agent_version}.{mapping['agent_suffix']}"
128127
build_args[build_arg_names["agent_build_arg"]] = agent_filename
129128

130-
# Generate tools build arg
131129
tools_suffix = mapping["tools_suffix"].replace("{TOOLS_VERSION}", tools_version)
132130
tools_filename = f"{agent_info['base_names']['tools']}-{tools_suffix}"
133131
build_args[build_arg_names["tools_build_arg"]] = tools_filename
@@ -499,14 +497,6 @@ def queue_exception_handling(tasks_queue):
499497
)
500498

501499

502-
def get_tools_distro(tools_version: str) -> Dict[str, str]:
503-
new_rhel_tool_version = "100.10.0"
504-
default_distro = {"arm": "rhel90-aarch64", "amd": "rhel90-x86_64"}
505-
if Version(tools_version) >= Version(new_rhel_tool_version):
506-
return {"arm": "rhel93-aarch64", "amd": "rhel93-x86_64"}
507-
return default_distro
508-
509-
510500
def load_release_file() -> Dict:
511501
with open("release.json") as release:
512502
return json.load(release)

0 commit comments

Comments
 (0)