Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7694e8e

Browse files
committedFeb 19, 2024·
Add more changes
Signed-off-by: Divya Madala <divyaasm@amazon.com>
1 parent f0e32e4 commit 7694e8e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
 

‎src/validation_workflow/validation.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,15 @@ def get_filepath(self, project: str) -> str:
7878
file_name_suffix = "tar.gz" if self.args.distribution == "tar" else self.args.distribution
7979
if self.args.artifact_type == "staging":
8080
if self.args.distribution == "yum":
81-
return f"{self.base_url_staging}{project}/{self.args.version}/{self.args.build_number[project]}/{self.args.platform}/{self.args.arch}/rpm/dist/{project}/{project}-{self.args.version}.staging.repo" # noqa: E501
82-
return f"{self.base_url_staging}{project}/{self.args.version}/{self.args.build_number[project]}/{self.args.platform}/{self.args.arch}/{self.args.distribution}/dist/{project}/{project}-{self.args.version}-{self.args.platform}-{self.args.arch}.{file_name_suffix}" # noqa: E501
81+
return (
82+
f"{self.base_url_staging}{project}/{self.args.version}/{self.args.build_number[project]}/{self.args.platform}/"
83+
f"{self.args.arch}/rpm/dist/{project}/{project}-{self.args.version}.staging.repo"
84+
)
85+
return (
86+
f"{self.base_url_staging}{project}/{self.args.version}/{self.args.build_number[project]}/{self.args.platform}/"
87+
f"{self.args.arch}/{self.args.distribution}/dist/{project}/{project}-{self.args.version}-{self.args.platform}-"
88+
f"{self.args.arch}.{file_name_suffix}"
89+
)
8390
if self.args.distribution == "yum":
8491
return f"{self.base_url_production}{project}/{self.args.version[0:1]}.x/{project}-{self.args.version[0:1]}.x.repo"
8592
return f"{self.base_url_production}{project}/{self.args.version}/{project}-{self.args.version}-{self.args.platform}-{self.args.arch}.{file_name_suffix}"

‎src/validation_workflow/validation_args.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,15 @@ def __init__(self) -> None:
124124
action="store_true",
125125
default=False,
126126
help="(optional) Validate digest only; will not run docker to test API",
127-
dest="validate_digest_only")
127+
dest="validate_digest_only"
128+
)
128129
group.add_argument(
129130
"--using-staging-artifact-only",
130131
action="store_true",
131132
default=False,
132133
help="(optional) Use only staging artifact to run docker and API test, will not validate digest",
133-
dest="using_staging_artifact_only")
134+
dest="using_staging_artifact_only"
135+
)
134136

135137
args = parser.parse_args()
136138

0 commit comments

Comments
 (0)
Please sign in to comment.