Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ci-demos
wan2.1
Commits
9bfe0ef6
Commit
9bfe0ef6
authored
Jan 31, 2026
by
jerrrrry
Browse files
Update .gitlab-ci.yml
parent
746d7ec0
Pipeline
#3302
passed with stage
in 8 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
20 deletions
+33
-20
.gitlab-ci.yml
.gitlab-ci.yml
+33
-20
No files found.
.gitlab-ci.yml
View file @
9bfe0ef6
...
@@ -160,18 +160,18 @@ benchmark_wan2.1:
...
@@ -160,18 +160,18 @@ benchmark_wan2.1:
with open('temp_test2.py', 'w') as f:
with open('temp_test2.py', 'w') as f:
f.write(content)
f.write(content)
"
"
# 再次验证
# 再次验证
if grep -q '"seed": 1234567890,' temp_test2.py; then
if grep -q '"seed": 1234567890,' temp_test2.py; then
echo "✓ Seed 1234567890 successfully set using Python method"
echo "✓ Seed 1234567890 successfully set using Python method"
grep -n '"seed": 1234567890,' temp_test2.py
grep -n '"seed": 1234567890,' temp_test2.py
else
else
echo "✗ All methods failed to set seed 1234567890"
echo "✗ All methods failed to set seed 1234567890"
echo "Full file content for debugging:"
echo "Full file content for debugging:"
cat temp_test2.py
cat temp_test2.py
exit 1
exit 1
fi
fi
fi
fi
# 记录开始时间
# 记录开始时间
start_time=$(date +%s)
start_time=$(date +%s)
...
@@ -207,7 +207,7 @@ benchmark_wan2.1:
...
@@ -207,7 +207,7 @@ benchmark_wan2.1:
echo "Test 2 completed in $duration seconds"
echo "Test 2 completed in $duration seconds"
-
echo "========================================="
-
echo "========================================="
-
echo "Step 6 Verifying and collecting results"
-
echo "Step 6 Verifying and collecting results
(robust version)
"
-
echo "========================================="
-
echo "========================================="
-
|
-
|
# 验证两个webp文件都已生成
# 验证两个webp文件都已生成
...
@@ -223,23 +223,36 @@ benchmark_wan2.1:
...
@@ -223,23 +223,36 @@ benchmark_wan2.1:
# 查找并复制最新的两个webp文件
# 查找并复制最新的两个webp文件
find output -name "*.webp" -type f -exec ls -lt {} + | head -n 2 > results/latest_files.txt
find output -name "*.webp" -type f -exec ls -lt {} + | head -n 2 > results/latest_files.txt
# 复制文件到结果目录
# 复制文件到结果目录
,添加文件存在性检查
while read line; do
while read line; do
filepath=$(echo "$line" | awk '{print $NF}')
filepath=$(echo "$line" | awk '{print $NF}')
cp "$filepath" results/
if [ -f "$filepath" ]; then
echo "Copied: $filepath"
cp "$filepath" results/
echo "Copied: $filepath"
else
echo "Warning: File not found, skipping: $filepath"
fi
done < results/latest_files.txt
done < results/latest_files.txt
# 创建结果摘要
# 创建结果摘要
,使用不会失败的方法
echo "=== Test Results Summary ===" > results/summary.txt
echo "=== Test Results Summary ===" > results/summary.txt
echo "Test 1 (seed=2675441231):" >> results/summary.txt
echo "Test 1 (seed=2675441231):" >> results/summary.txt
grep "Prompt executed in" results/test1_output.log >> results/summary.txt
test1_time=$(grep "Prompt executed in" results/test1_output.log || echo "Execution time not found in log")
echo "$test1_time" >> results/summary.txt
echo "" >> results/summary.txt
echo "" >> results/summary.txt
echo "Test 2 (seed=1234567890):" >> results/summary.txt
echo "Test 2 (seed=1234567890):" >> results/summary.txt
grep "Prompt executed in" results/test2_output.log >> results/summary.txt
test2_time=$(grep "Prompt executed in" results/test2_output.log || echo "Execution time not found in log")
echo "$test2_time" >> results/summary.txt
echo "" >> results/summary.txt
echo "Performance data from script timing:" >> results/summary.txt
cat results/performance.log >> results/summary.txt
echo "" >> results/summary.txt
echo "" >> results/summary.txt
echo "Generated files:" >> results/summary.txt
echo "Generated files:" >> results/summary.txt
ls results/*.webp >> results/summary.txt
ls results/*.webp >> results/summary.txt
2>/dev/null || echo "No .webp files found in results directory" >> results/summary.txt
echo "All tests completed successfully!"
echo "All tests completed successfully!"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment