PrefectHQ
prefect
BlogDocsChangelog

fix deployment name truncation in from_storage and afrom_storage

#19179Merged
Comparing
fix-deployment-name-truncation-from-storage
(
d690fb2
) with
main
(
799771f
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
459.6 µs458.9 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+6%
174.6 ms165.3 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
106 ms106.1 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+19%
4.8 ms4 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-2%
158.2 ms161.9 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+45%
7.1 ms4.9 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1 s1 s

Commits

Click on a commit to change the comparison range
Base
main
799771f
-0.07%
fix deployment name truncation in from_storage and afrom_storage completes the fix from #16553 by removing Path(name).stem from from_storage and afrom_storage methods, which was causing deployment names with dots (e.g., "pricing-subflow-v2.0.1") to be truncated to just the stem (e.g., "pricing-subflow-v2"). the validate_name field validator already handles .py file extensions correctly, so using Path(name).stem is redundant and causes incorrect truncation for version numbers and other dots in deployment names. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
eaab49f
3 days ago
by zzstoatzz
+0.16%
add unit tests for deployment name with dots in from_storage adds regression tests to verify that deployment names with dots (e.g., "pricing-subflow-v2.0.1") are not truncated when using from_storage() and afrom_storage() methods. this provides clear proof that the fix works correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
d690fb2
1 day ago
by zzstoatzz
© 2025 CodSpeed Technology
Home Terms Privacy Docs