Commit 2704e65
Remove enable_shared_helpers_command_timeout feature flag (#14125)
* Remove enable_shared_helpers_command_timeout feature flag from shared_helpers_spec.rb
Co-authored-by: pavera <660677+pavera@users.noreply.github.com>
* Remove enable_shared_helpers_command_timeout experiment mocks from all spec files
Co-authored-by: pavera <660677+pavera@users.noreply.github.com>
* Fix Sorbet type errors by defaulting stdout/stderr to empty strings
Co-authored-by: pavera <660677+pavera@users.noreply.github.com>
* Fix Sorbet type errors: use T.let for stdout/stderr type narrowing
Replace `||=` pattern with explicit T.let to properly narrow
T.nilable(String) to String, satisfying Sorbet strict type checking.
Co-authored-by: pavera <660677+pavera@users.noreply.github.com>
* Fix CI failures: update Open3 mocks to SharedHelpers and handle EPIPE
- github_actions/update_checker_spec.rb: Replace Open3.capture2e mocks
with Dependabot::SharedHelpers.run_shell_command mocks since the
feature flag removal means run_shell_command now always uses
CommandHelpers.capture3_with_timeout (which uses Open3.popen3 internally)
- command_helpers.rb: Catch Errno::EPIPE during stdin.write in
capture3_with_timeout - this occurs when the process exits before
reading its input (e.g. the `false` builtin used in npm tests)
Co-authored-by: pavera <660677+pavera@users.noreply.github.com>
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Remove process startup error handling
Removed error handling for process startup failure.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pavera <660677+pavera@users.noreply.github.com>
Co-authored-by: Tom Christensen <pavera@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 57ab757 commit 2704e65
26 files changed
Lines changed: 132 additions & 383 deletions
File tree
- bun/spec/dependabot/bun
- update_checker
- common
- lib/dependabot
- spec/dependabot
- devcontainers/spec/dependabot/devcontainers
- github_actions/spec/dependabot/github_actions
- go_modules/spec/dependabot/go_modules/update_checker
- npm_and_yarn/spec/dependabot/npm_and_yarn
- dependency_grapher
- file_updater
- update_checker
- pub/spec/dependabot/pub
- python/spec/dependabot/python
- updater/spec/dependabot
- updater/operations
- uv/spec/dependabot/uv
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
| |||
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
499 | 491 | | |
500 | 492 | | |
501 | 493 | | |
| |||
0 commit comments