Skip to content

Commit 230696a

Browse files
authored
Merge pull request #246 from swastik959/patch
Correct the test and workflow script
2 parents 132b728 + b8eac6f commit 230696a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/test-docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ while true; do
1414
done
1515

1616

17-
test_docker_versions["ubuntu:22.04"]="^23.0.([4-9]|[1-9]\d)$|^24.0|^25.0|^26.0|^26.1|^27.0|^27.1|^28.0|^28.1"
17+
test_docker_versions["ubuntu:22.04"]="^23.0.([4-9]|[1-9]\d)$|^24.0|^25.0|^26.0|^26.1|^27.0|^27.1|^28.0|^28.1|^28.2|^28.3"
1818
test_docker_versions["ubuntu:24.04"]="^26.0|^26.1|^27.0|^27.1|^28.0|^28.1"
1919
test_docker_versions["quay.io/centos/centos:stream9"]="^24.0|^25.0|^26.0|^26.1|^27.0|^27.1|^28.0|^28.1"
2020
test_docker_versions["oraclelinux:8"]="^23.0.([4-9]|[1-9]\d)$|^24.0|^25.0|^26.0|^26.1|^27.0|^27.1|^28.0|^28.1"

workflow_scripts/gen-new-version-files.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ def get_last_added_version(files_dir):
2323
max_modification_time = modification_time
2424
last_added_version = file_version
2525
elif modification_time == max_modification_time:
26-
last_added_version = semver.max_ver(last_added_version,file_version)
26+
try:
27+
last_added_version = semver.max_ver(last_added_version,file_version)
28+
except ValueError:
29+
print(f"Warning: Skipping non-compliant SemVer string {file_version} from file {file}")
30+
continue
2731

2832
return last_added_version
2933

0 commit comments

Comments
 (0)