mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[CI] Improve Code Prepare stability and cleanup logic (#7198)
This commit is contained in:
@@ -78,11 +78,27 @@ jobs:
|
||||
if ls /workspace/* >/dev/null 2>&1; then
|
||||
echo "ERROR: Failed to clean /workspace/* after multiple attempts"
|
||||
ls -ld /workspace/*
|
||||
exit 1
|
||||
echo "Attempting force cleanup with find..."
|
||||
find /workspace -mindepth 1 -maxdepth 1 -type d -exec chmod -R u+rwx {} \; -exec rm -rf {} + 2>/dev/null || true
|
||||
if ls /workspace/* >/dev/null 2>&1; then
|
||||
echo "ERROR: Force cleanup failed. Exiting..."
|
||||
exit 1
|
||||
else
|
||||
echo "Force cleanup succeeded."
|
||||
fi
|
||||
fi
|
||||
'
|
||||
wget -q --no-proxy ${paddletest_archive_url}
|
||||
tar -xf PaddleTest.tar.gz
|
||||
|
||||
wget -q --no-proxy ${paddletest_archive_url} || {
|
||||
echo "ERROR: Failed to download archive from ${paddletest_archive_url}"
|
||||
exit 1
|
||||
}
|
||||
|
||||
tar --no-same-owner -xf PaddleTest.tar.gz || {
|
||||
echo "ERROR: Failed to extract archive"
|
||||
exit 1
|
||||
}
|
||||
|
||||
rm -rf PaddleTest.tar.gz
|
||||
cd PaddleTest
|
||||
git config --global user.name "FastDeployCI"
|
||||
|
||||
Reference in New Issue
Block a user