Repository navigation
Commit c9ebfa7
committed
fix(trainer): keep the server in UNC file URIs and warn on HTTP source failures
Address review feedback:
- Path.as_uri() writes a UNC path as file://server/share/dir. Rebuild it
as //server/share/dir instead of turning it into a relative path.
- Log a configured HTTP(S) source that can't be fetched at WARNING, so it
isn't silently replaced by the built-in runtimes.
- Add type hints to the new tests.
Signed-off-by: Ashish Ranjan <ashishranjaniitp@gmail.com>1 parent b655a1c commit c9ebfa7
2 files changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
| |||
536 | 539 | | |
537 | 540 | | |
538 | 541 | | |
539 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
540 | 545 | | |
541 | 546 | | |
542 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
180 | 190 | | |
181 | 191 | | |
182 | 192 | | |
| |||
714 | 724 | | |
715 | 725 | | |
716 | 726 | | |
717 | | - | |
| 727 | + | |
718 | 728 | | |
719 | 729 | | |
720 | 730 | | |
| |||
731 | 741 | | |
732 | 742 | | |
733 | 743 | | |
734 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
735 | 747 | | |
736 | 748 | | |
737 | 749 | | |
738 | 750 | | |
739 | 751 | | |
740 | 752 | | |
741 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
0 commit comments