Repository navigation
Commit f502406
fix: do not apply user ignore_patterns to the SDK-owned sm_drivers channel (#6328)
ModelTrainer forwarded the user's source_code.ignore_patterns to the
sm_drivers input channel, which packages SDK-owned driver content (e.g.
container_drivers/scripts/environment.py). User patterns such as "scripts"
or "environment" then stripped files the container bootstrap requires,
failing execution with
"sm_drivers/scripts/environment.py: No such file or directory". Drop the
ignore_patterns argument on the sm_drivers channel so it uploads unfiltered;
user patterns still apply to the user's own source_dir (SM_CODE) channel.
Also corrects the create_input_data_channel docstring, which wrongly claimed
a default filter list (the default is None -> no filter).
Adds a regression test asserting SM_CODE keeps the user patterns and
SM_DRIVERS receives none.
Fixes #5493
Co-authored-by: Mohamed Zeidan <zeidmo@amazon.com>1 parent 6bf17a5 commit f502406
2 files changed
Lines changed: 48 additions & 4 deletions
File tree
- src/sagemaker/modules/train
- tests/unit/sagemaker/modules/train
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
721 | 725 | | |
722 | 726 | | |
723 | 727 | | |
724 | 728 | | |
725 | | - | |
726 | 729 | | |
727 | 730 | | |
728 | 731 | | |
| |||
881 | 884 | | |
882 | 885 | | |
883 | 886 | | |
884 | | - | |
885 | | - | |
| 887 | + | |
886 | 888 | | |
887 | 889 | | |
888 | 890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
257 | 299 | | |
258 | 300 | | |
259 | 301 | | |
| |||
0 commit comments