Commit aa8ff15
authored
bugfix/unique-temp-filenames (#225)
* Add transcription range fields to database and ingestion models, add validator for time duration, add range filter to ffmpeg audio split, update tests
* Add tests for edge case transcription ranges
* Fix end_time=start_time typo, update tests to be more concise, add ffmpeg error logging
* Updated transcription range to video range, updated video handling to host when limiting video to a range, updated mp4 conversion to allow a range, connected mp4 to clip functionality, updated tests and tried to make testing slightly more consistent, added Session ingestion verification to test out
* Update session hash to reflect trimmed video
* Bypass hash task
* Remove unnecessary logging, duration validation comments, elif typo fix in cdp_will_host control structure
* Reverted function parameter doc for split audio
* Improved documentation for video_start_time in ingestion_models
* Use content hash to name videos and prevent collisions across sessions
* Use pathlib functions from 3.8, add type annotations for mock function
* Add return type annotations for mock function
* Lint updates
* Move file renaming to earliest point, return unique names from file conversion functions
* UUID for original file resource copy task so to prevent collisions earlier in the process
* Minor comment change to force CI reprocessing
* Stop renaming resource within task
* Lint
* Flag for adding source suffix in resource copy
* Log file status after copy for debugging
* Logging to debug file copy
* Logging to debug file copy
* Logging to debug file copy
* Logging to debug file copy
* Remove rename1 parent b00f378 commit aa8ff15
File tree
4 files changed
+171
-24
lines changed- cdp_backend
- pipeline
- tests
- pipeline
- utils
- utils
4 files changed
+171
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
232 | | - | |
| 238 | + | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
| |||
250 | 256 | | |
251 | 257 | | |
252 | 258 | | |
| 259 | + | |
| 260 | + | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| |||
Lines changed: 22 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
580 | 584 | | |
581 | 585 | | |
582 | 586 | | |
| |||
633 | 637 | | |
634 | 638 | | |
635 | 639 | | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
646 | 652 | | |
647 | | - | |
648 | | - | |
649 | | - | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
650 | 656 | | |
651 | | - | |
652 | | - | |
| 657 | + | |
| 658 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
38 | 90 | | |
39 | 91 | | |
40 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
31 | 107 | | |
32 | 108 | | |
33 | 109 | | |
| |||
69 | 145 | | |
70 | 146 | | |
71 | 147 | | |
| 148 | + | |
72 | 149 | | |
73 | 150 | | |
74 | 151 | | |
| |||
90 | 167 | | |
91 | 168 | | |
92 | 169 | | |
| 170 | + | |
93 | 171 | | |
94 | 172 | | |
95 | 173 | | |
| |||
103 | 181 | | |
104 | 182 | | |
105 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
106 | 187 | | |
107 | 188 | | |
108 | 189 | | |
109 | | - | |
| 190 | + | |
110 | 191 | | |
111 | 192 | | |
112 | 193 | | |
| |||
148 | 229 | | |
149 | 230 | | |
150 | 231 | | |
| 232 | + | |
151 | 233 | | |
152 | 234 | | |
153 | 235 | | |
| |||
520 | 602 | | |
521 | 603 | | |
522 | 604 | | |
523 | | - | |
524 | 605 | | |
525 | 606 | | |
526 | 607 | | |
| |||
605 | 686 | | |
606 | 687 | | |
607 | 688 | | |
608 | | - | |
| 689 | + | |
609 | 690 | | |
610 | 691 | | |
611 | 692 | | |
| |||
621 | 702 | | |
622 | 703 | | |
623 | 704 | | |
624 | | - | |
625 | | - | |
626 | 705 | | |
627 | 706 | | |
628 | 707 | | |
| |||
634 | 713 | | |
635 | 714 | | |
636 | 715 | | |
| 716 | + | |
| 717 | + | |
637 | 718 | | |
638 | 719 | | |
639 | 720 | | |
| |||
0 commit comments