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
0a286b32
Commit
0a286b32
authored
Jan 31, 2026
by
jerrrrry
Browse files
Update .gitlab-ci.yml
parent
4ff44857
Pipeline
#3297
failed
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
58 deletions
+42
-58
.gitlab-ci.yml
.gitlab-ci.yml
+42
-58
No files found.
.gitlab-ci.yml
View file @
0a286b32
...
...
@@ -150,16 +150,16 @@ benchmark_wan2.1:
# 备用方法:使用Python直接修改
python3 -c "
import re
with open('temp_test2.py', 'r') as f:
import re
with open('temp_test2.py', 'r') as f
:
content = f.read()
# 使用正则表达式替换seed值
content = re.sub(r'(\"seed\":\s*)\d+', r'\g<1>1234567890', content)
# 使用正则表达式替换seed值
content = re.sub(r'(\"seed\":\s*)\d+', r'\g<1>1234567890', content)
with open('temp_test2.py', 'w') as f:
with open('temp_test2.py', 'w') as f
:
f.write(content)
"
"
#
再次验证
if
grep
-q
'"seed"
:
1234567890,' temp_test2.py; then
...
...
@@ -209,39 +209,25 @@ benchmark_wan2.1:
- echo "========================================="
- echo "Step 6 Verifying and collecting results"
- echo "========================================="
-
|
# 验证两个webp文件都已生成
webp_count=$(find output -name "*.webp" -type f | wc -l)
echo "Total webp files found: $webp_count"
if [ $webp_count -lt 2 ]; then
echo "ERROR: Expected 2 webp files, but found $webp_count"
find output -name "*.webp" -type f -ls
exit 1
fi
- webp_count=$(find output -name "*.webp" -type f | wc -l)
- echo "Total webp files found
:
$webp_count"
-
if [ $webp_count -lt 2 ]; then echo "ERROR
:
Expected 2 webp files, but found $webp_count"; find output -name "*.webp" -type f -ls; exit 1; fi
# 查找并复制最新的两个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
filepath=$(echo "$line" | awk '{print $NF}')
cp "$filepath" results/
echo "Copied: $filepath"
done < results/latest_files.txt
-
cat results/latest_files.txt | awk '{print $NF}' | while read filepath; do cp "$filepath" results/ && echo "Copied
:
$filepath"; done
# 创建结果摘要
echo "=== Test Results Summary ===" > results/summary.txt
echo "Test 1 (seed=2675441231):" >> results/summary.txt
grep "Prompt executed in" results/test1_output.log >> results/summary.txt
echo "" >> results/summary.txt
echo "Test 2 (seed=1234567890):" >> results/summary.txt
grep "Prompt executed in" results/test2_output.log >> results/summary.txt
echo "" >> results/summary.txt
echo "Generated files:" >> results/summary.txt
ls results/*.webp >> results/summary.txt
echo "All tests completed successfully!"
-
echo "=== Test Results Summary ===" > results/summary.txt
-
echo "Test 1 (seed=2675441231):" >> results/summary.txt
-
grep "Prompt executed in" results/test1_output.log >> results/summary.txt || echo "No execution time found in test1" >> results/summary.txt
-
echo "" >> results/summary.txt
-
echo "Test 2 (seed=1234567890):" >> results/summary.txt
-
grep "Prompt executed in" results/test2_output.log >> results/summary.txt || echo "No execution time found in test2" >> results/summary.txt
-
echo "" >> results/summary.txt
-
echo "Generated files:" >> results/summary.txt
-
ls results/*.webp >> results/summary.txt || echo "No webp files found in results" >> results/summary.txt
-
echo "All tests completed successfully!"
-
echo "========================================="
-
echo "Step 7 Cleaning up"
...
...
@@ -256,8 +242,6 @@ benchmark_wan2.1:
artifacts
:
name
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths
:
-
"
results/*.webp"
-
"
results/*.log"
-
"
results/*.txt"
-
"
logs/comfyui.log"
-
"
results/"
-
"
logs/"
expire_in
:
1 week
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