Skip to content

Commit 7f337e8

Browse files
Revert "Tests: Properly catch all invalid artifacts" (#236)
This reverts commit cf80d58.
1 parent b824ed9 commit 7f337e8

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

.github/actions/features_parse/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ outputs:
1111
runs:
1212
using: composite
1313
steps:
14-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@0.10.0
14+
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@0.10.3
1515
- id: result
1616
shell: bash
1717
run: |

.github/actions/flavors_parse/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ outputs:
1313
runs:
1414
using: composite
1515
steps:
16-
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@0.10.0
16+
- uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@0.10.3
1717
- id: matrix
1818
shell: bash
1919
run: |

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Installs the given GardenLinux Python library
44
inputs:
55
version:
66
description: GardenLinux Python library version
7-
default: "0.10.2"
7+
default: "0.10.3"
88
python_version:
99
description: Python version to setup
1010
default: "3.13"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gardenlinux"
3-
version = "0.10.2"
3+
version = "0.10.3"
44
description = "Contains tools to work with the features directory of gardenlinux, for example deducting dependencies from feature sets or validating cnames"
55
authors = ["Garden Linux Maintainers <contact@gardenlinux.io>"]
66
license = "Apache-2.0"

src/gardenlinux/s3/s3_artifacts.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,6 @@ def upload_from_directory(
189189
"paths": [],
190190
}
191191

192-
# Catch any invalid artifacts
193-
bad_files = [
194-
f
195-
for f in artifacts_dir.iterdir()
196-
if not f.name.startswith(cname)
197-
and f.suffix not in [".release", ".requirements"]
198-
]
199-
if bad_files:
200-
raise RuntimeError(
201-
f"Artifact name '{bad_files[0].name}' does not start with cname '{cname}'"
202-
)
203-
204192
for artifact in artifacts_dir.iterdir():
205193
if not artifact.match(f"{cname}*"):
206194
continue

0 commit comments

Comments
 (0)