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
b002a294
Commit
b002a294
authored
Jan 31, 2026
by
jerrrrry
Browse files
Update .gitlab-ci.yml
parent
0a286b32
Pipeline
#3298
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
.gitlab-ci.yml
.gitlab-ci.yml
+21
-21
No files found.
.gitlab-ci.yml
View file @
b002a294
...
@@ -150,28 +150,28 @@ benchmark_wan2.1:
...
@@ -150,28 +150,28 @@ benchmark_wan2.1:
# 备用方法:使用Python直接修改
# 备用方法:使用Python直接修改
python3 -c "
python3 -c "
import re
import re
with open('temp_test2.py', 'r') as f
:
with open('temp_test2.py', 'r') as f:
content = f.read()
content = f.read()
# 使用正则表达式替换seed值
# 使用正则表达式替换seed值
content = re.sub(r'(\"seed\":\s*)\d+', r'\g<1>1234567890', content)
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)
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)
...
...
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