|
|
|
|
|
name: test-simple |
|
|
|
|
|
resources: |
|
|
use_spot: true |
|
|
cpus: 2+ |
|
|
memory: 8+ |
|
|
disk_size: 30 |
|
|
|
|
|
setup: | |
|
|
echo "==================================================" |
|
|
echo "π§ͺ SIMPLE SKYPILOT TEST" |
|
|
echo "==================================================" |
|
|
echo "" |
|
|
|
|
|
|
|
|
echo "π Machine Info:" |
|
|
echo " Hostname: $(hostname)" |
|
|
echo " CPU cores: $(nproc)" |
|
|
echo " Memory: $(free -h | grep Mem | awk '{print $2}')" |
|
|
echo "" |
|
|
|
|
|
|
|
|
echo "π¦ Installing dependencies..." |
|
|
pip install -q numpy soundfile librosa |
|
|
echo " β Installed: numpy, soundfile, librosa" |
|
|
echo "" |
|
|
|
|
|
|
|
|
echo "π₯ Cloning repository..." |
|
|
git clone -q https://huggingface.co/marcosremar2/ensemble-tts-annotation |
|
|
echo " β Repository cloned" |
|
|
echo "" |
|
|
|
|
|
echo "β
Setup complete!" |
|
|
|
|
|
run: | |
|
|
cd ensemble-tts-annotation |
|
|
|
|
|
echo "" |
|
|
echo "==================================================" |
|
|
echo "π§ͺ RUNNING TESTS" |
|
|
echo "==================================================" |
|
|
echo "" |
|
|
|
|
|
|
|
|
echo "π Checking key files..." |
|
|
for file in README.md QUICK_START_SKYPILOT.md ensemble_tts/__init__.py; do |
|
|
if [ -f "$file" ]; then |
|
|
echo " β $file" |
|
|
else |
|
|
echo " β $file MISSING" |
|
|
fi |
|
|
done |
|
|
echo "" |
|
|
|
|
|
|
|
|
echo "π Testing Python imports..." |
|
|
python3 -c "import numpy; import soundfile; import librosa; print(' β All imports work')" |
|
|
echo "" |
|
|
|
|
|
|
|
|
echo "π΅ Generating test audio..." |
|
|
python3 scripts/data/create_synthetic_test_data.py --output test_tmp --samples 1 |
|
|
echo "" |
|
|
|
|
|
|
|
|
AUDIO_COUNT=$(find test_tmp -name "*.wav" | wc -l) |
|
|
echo "π Created $AUDIO_COUNT audio files" |
|
|
|
|
|
if [ "$AUDIO_COUNT" -eq 7 ]; then |
|
|
echo " β Expected 7 files - CORRECT" |
|
|
else |
|
|
echo " β Expected 7 but got $AUDIO_COUNT" |
|
|
fi |
|
|
echo "" |
|
|
|
|
|
|
|
|
rm -rf test_tmp |
|
|
|
|
|
echo "==================================================" |
|
|
echo "β
ALL TESTS PASSED!" |
|
|
echo "==================================================" |
|
|
echo "" |
|
|
echo "π SkyPilot successfully:" |
|
|
echo " β Provisioned machine" |
|
|
echo " β Installed dependencies" |
|
|
echo " β Cloned repository" |
|
|
echo " β Generated synthetic audio" |
|
|
echo "" |
|
|
echo "π° Cost: ~\$0.05 for this test" |
|
|
echo "" |
|
|
|