Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable tarball content type check in ingestion script #186

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/ingest-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,7 @@ is_repo_owner || cvmfs_server="sudo cvmfs_server"
# Do some checks, and ingest the tarball
check_repo_vars
check_version
check_contents_type
bedroge marked this conversation as resolved.
Show resolved Hide resolved
# Disable the call to check_contents_type, as it does not work for tarballs produced
# by our build bot that only contain init files (as they have "software" in the filename)
# check_contents_type
ingest_${tar_contents_type_dir}_tarball
11 changes: 6 additions & 5 deletions scripts/test-ingest-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ tarballs_success=(
# Test that should return an error
tarballs_fail=(
# Non-matching type dirs
"$tstdir/eessi-2000.01-compat-123456.tar.gz 2000.01 init"
"$tstdir/eessi-2000.01-init-123456.tar.gz 2000.01 initt"
"$tstdir/eessi-2000.01-scripts-123456.tar.gz 2000.01 scriptss"
"$tstdir/eessi-2000.01-software-123456.tar.gz 2000.01 soft"
# They have been disabled, as we removed the content type check in the ingestion script
# "$tstdir/eessi-2000.01-compat-123456.tar.gz 2000.01 init"
# "$tstdir/eessi-2000.01-init-123456.tar.gz 2000.01 initt"
# "$tstdir/eessi-2000.01-scripts-123456.tar.gz 2000.01 scriptss"
# "$tstdir/eessi-2000.01-software-123456.tar.gz 2000.01 soft"
# Non-matching versions
"$tstdir/eessi-2000.01-compat-123456.tar.gz 2000.12 compat"
"$tstdir/eessi-2000.01-init-123456.tar.gz 2000.12 init"
Expand Down Expand Up @@ -85,7 +86,7 @@ tarballs_fail=(
# Run the tests that should succeed
for ((i = 0; i < ${#tarballs_success[@]}; i++)); do
t=$(create_tarball ${tarballs_success[$i]})
"${INGEST_SCRIPT}" "$t" > /dev/null
"${INGEST_SCRIPT}" "$t" >& /dev/null
if [ ! $? -eq 0 ]; then
num_tests_failed=$((num_tests_failed + 1))
else
Expand Down
Loading