Commit 8355aac
Fix remaining CI failures
Three issues:
1. Changelog tests used FileSystem.Path.GetTempPath() to generate unique
paths within MockFileSystem. Since MockFS is in-memory, the paths can be
anything in scope — replace with Paths.WorkingDirectoryRoot.FullName as
the base so they stay within the ScopedFileSystem scope bounds. No real
filesystem is touched; all operations remain in-memory.
2. DocsSyncTests.TestApply passed the same WrapToRead FS for both read and
write in AssembleContext. AwsS3SyncApplyStrategy uses context.WriteFileSystem
and needs AllowedSpecialFolders.Temp (present in WriteOptions). Fix by
using WrapToWrite for the write FS.
3. IsolatedBuildService CI fallback defaulted the output path to
Paths.WorkingDirectoryRoot/.artifacts/docs/html. When --path points to a
different repo the write FS is scoped to that repo's root, not
WorkingDirectoryRoot. Derive the default output from `path` instead so it
stays within the write FS scope (same logic as BuildContext uses for the
normal build path).
FileSystemFactory.RealForPathWrite: replace StartsWith string check with
IDirectoryInfo.IsSubPathOf from Nullean.ScopedFileSystem which does a
proper directory-tree walk, preventing sibling-prefix false positives.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent db59cf1 commit 8355aac
22 files changed
Lines changed: 346 additions & 321 deletions
File tree
- src
- Elastic.Documentation.Configuration
- services/Elastic.Documentation.Isolated
- tests-integration/Elastic.Assembler.IntegrationTests
- tests/Elastic.Changelog.Tests/Changelogs
- Create
- Render
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | | - | |
105 | | - | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | | - | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
242 | | - | |
| 244 | + | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
0 commit comments