Commit 97bdf85
Fix changelog test paths: replace out-of-scope absolute paths with WorkingDirectoryRoot-relative
Tests that extend ChangelogTestBase use a ScopedFileSystem wrapping MockFileSystem,
bounded to [WorkingDirectoryRoot, ApplicationData]. Several tests used absolute paths
like /tmp/config, /docs/changelog, /test-root, and relative paths like docs/changelog
that resolved outside the scope root on CI runners.
- ChangelogPrEvaluationServiceTests: /tmp/config/changelog.yml →
Path.Join(WorkingDirectoryRoot, "config/changelog.yml"); "docs/changelog" →
Path.Join(WorkingDirectoryRoot, "docs/changelog")
- ChangelogCreationServiceTests: /tmp/config → Path.Join(WorkingDirectoryRoot, "config");
/tmp/output → Path.Join(WorkingDirectoryRoot, "output")
- BundleChangelogsTests: /test-root → WorkingDirectoryRoot; use MockFileSystemOptions
{ CurrentDirectory = root } so relative paths within service code resolve correctly;
switch YAML template config strings to $$""" raw literals so {version}/{lifecycle}
stay as literal text while {{Path.Join(...)}} is interpolated
- ChangelogTestBase: set MockFileSystem CurrentDirectory to WorkingDirectoryRoot so
paths within the test base resolve within scope
BundleLoaderTests (standalone, unscoped MockFileSystem) does not extend ChangelogTestBase
and is not affected.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent a5e1c17 commit 97bdf85
4 files changed
Lines changed: 74 additions & 65 deletions
File tree
- tests/Elastic.Changelog.Tests
- Changelogs
- Creation
- Evaluation
Lines changed: 25 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3307 | 3307 | | |
3308 | 3308 | | |
3309 | 3309 | | |
| 3310 | + | |
3310 | 3311 | | |
3311 | 3312 | | |
3312 | | - | |
| 3313 | + | |
3313 | 3314 | | |
3314 | | - | |
3315 | | - | |
3316 | | - | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
3317 | 3318 | | |
3318 | 3319 | | |
3319 | 3320 | | |
3320 | | - | |
| 3321 | + | |
3321 | 3322 | | |
3322 | | - | |
| 3323 | + | |
3323 | 3324 | | |
3324 | 3325 | | |
3325 | 3326 | | |
3326 | 3327 | | |
3327 | 3328 | | |
3328 | | - | |
| 3329 | + | |
3329 | 3330 | | |
3330 | 3331 | | |
3331 | 3332 | | |
| |||
3339 | 3340 | | |
3340 | 3341 | | |
3341 | 3342 | | |
3342 | | - | |
| 3343 | + | |
3343 | 3344 | | |
3344 | 3345 | | |
3345 | 3346 | | |
3346 | 3347 | | |
3347 | 3348 | | |
3348 | 3349 | | |
3349 | 3350 | | |
3350 | | - | |
3351 | | - | |
| 3351 | + | |
| 3352 | + | |
3352 | 3353 | | |
3353 | 3354 | | |
3354 | 3355 | | |
| |||
3357 | 3358 | | |
3358 | 3359 | | |
3359 | 3360 | | |
3360 | | - | |
| 3361 | + | |
3361 | 3362 | | |
3362 | 3363 | | |
3363 | 3364 | | |
3364 | 3365 | | |
3365 | 3366 | | |
3366 | 3367 | | |
| 3368 | + | |
3367 | 3369 | | |
3368 | 3370 | | |
3369 | | - | |
| 3371 | + | |
3370 | 3372 | | |
3371 | | - | |
3372 | | - | |
3373 | | - | |
3374 | | - | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
3375 | 3377 | | |
3376 | 3378 | | |
3377 | 3379 | | |
3378 | | - | |
| 3380 | + | |
3379 | 3381 | | |
3380 | | - | |
| 3382 | + | |
3381 | 3383 | | |
3382 | 3384 | | |
3383 | 3385 | | |
3384 | 3386 | | |
3385 | 3387 | | |
3386 | 3388 | | |
3387 | | - | |
| 3389 | + | |
3388 | 3390 | | |
3389 | 3391 | | |
3390 | 3392 | | |
| |||
3398 | 3400 | | |
3399 | 3401 | | |
3400 | 3402 | | |
3401 | | - | |
| 3403 | + | |
3402 | 3404 | | |
3403 | 3405 | | |
3404 | 3406 | | |
3405 | 3407 | | |
3406 | 3408 | | |
3407 | 3409 | | |
3408 | 3410 | | |
3409 | | - | |
3410 | | - | |
| 3411 | + | |
| 3412 | + | |
3411 | 3413 | | |
3412 | 3414 | | |
3413 | 3415 | | |
| |||
3416 | 3418 | | |
3417 | 3419 | | |
3418 | 3420 | | |
3419 | | - | |
| 3421 | + | |
3420 | 3422 | | |
3421 | 3423 | | |
3422 | 3424 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
86 | | - | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
129 | | - | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | | - | |
172 | | - | |
| 172 | + | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
0 commit comments