Commit 9b6d770
Fix temp-path related failures.
- The fix in bd36730 (which addresses Windows Update changes that
cause the root disk to run out of space in some deployment scenarios)
failed for some deployments (with a "cannot find path" error
originating from groot). We suspect (but are having trouble
validating) that the problem is incomplete percolation of the
SystemTemp env var.
- This commit reverts bd36730 in favor of sym-linking
C:\Windows\SystemTemp, another way of achieving the desired outcome:
making sure lifecycle scripts write temp data to the ephermeral disk.
A deployment configuration that failed with the changes in bd36730
completes successfully with this change.
- A possible risk here is anything that might have previously
_explicitly_ written to C:\Windows\SystemTemp will now appear instead
in C:\var\vcap\data\tmp, which may have different permissions -- an
incremental change to bd36730, which would have seen processes
previously acquiring a temp dir from system calls writing to
C:\var\vcap\data\tmp. Given that we would expect processes prior to
the Windows Update change to _also_ have been writing to
C:\var\vcap\data\tmp (via the TEMP and TMP env vars), this would not
seem to overall change current behavior, although could be surprising
with regards to future expectations around temp dirs.
- n.b.: our test does not check that existing files in SystemTemp are
removed, but we would expect this behavior to be the case (because the
file system fake currently does NOT emulate this behavior, although
this behavior IS expected from the concrete file system). At the
moment modifying the fake to include this behavior doesn't seem to
provide much benefit as this makes the test is more about fake
behavior than concrete behavior.1 parent 99cdc1a commit 9b6d770
2 files changed
Lines changed: 29 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
585 | 591 | | |
586 | 592 | | |
587 | 593 | | |
| |||
592 | 598 | | |
593 | 599 | | |
594 | 600 | | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | 601 | | |
601 | 602 | | |
602 | 603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
177 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
178 | 183 | | |
179 | 184 | | |
180 | 185 | | |
| |||
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
200 | | - | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
207 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
208 | 227 | | |
209 | 228 | | |
210 | 229 | | |
| |||
0 commit comments