@@ -31,19 +31,19 @@ describe("collect-stimuli (default discovery)", () => {
3131 before ( ( ) => {
3232 root = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "vally-matrix-" ) ) ;
3333 writeFile (
34- path . join ( root , "evals/ tools/prompt-to-tool-github.eval.yaml" ) ,
34+ path . join ( root , "tools/prompt-to-tool-github.eval.yaml" ) ,
3535 "tags:\n area: github"
3636 ) ;
3737 writeFile (
38- path . join ( root , "evals/ tools/add-arm-resource.eval.yaml" ) ,
38+ path . join ( root , "tools/add-arm-resource.eval.yaml" ) ,
3939 "tags:\n area: typespec"
4040 ) ;
4141 writeFile (
42- path . join ( root , "evals/workflow-scenarios /mock/rename-client-property.eval.yaml" ) ,
42+ path . join ( root , "workflows /mock/rename-client-property.eval.yaml" ) ,
4343 "tags:\n area: typespec"
4444 ) ;
4545 writeFile (
46- path . join ( root , "evals/workflow-scenarios /live/release-planner.eval.yaml" ) ,
46+ path . join ( root , "workflows /live/release-planner.eval.yaml" ) ,
4747 "tags:\n area: release-plan"
4848 ) ;
4949 } ) ;
@@ -70,7 +70,7 @@ describe("collect-stimuli (default discovery)", () => {
7070 const matrix = buildMatrix ( { roots : [ root ] } ) ;
7171 for ( const entry of Object . values ( matrix ) ) {
7272 assert . doesNotMatch ( entry . evalArgs , / \\ / ) ;
73- assert . match ( entry . evalArgs , / ^ - e e v a l s \/ / ) ;
73+ assert . match ( entry . evalArgs , / ^ - e ( t o o l s | w o r k f l o w s ) \/ / ) ;
7474 }
7575 } ) ;
7676
@@ -94,15 +94,15 @@ describe("collect-stimuli (area grouping)", () => {
9494 before ( ( ) => {
9595 root = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "vally-matrix-area-" ) ) ;
9696 writeFile (
97- path . join ( root , "evals/ tools/prompt-to-tool-github.eval.yaml" ) ,
97+ path . join ( root , "tools/prompt-to-tool-github.eval.yaml" ) ,
9898 "tags:\n area: github"
9999 ) ;
100100 writeFile (
101- path . join ( root , "evals/ tools/add-arm-resource.eval.yaml" ) ,
101+ path . join ( root , "tools/add-arm-resource.eval.yaml" ) ,
102102 "tags:\n area: typespec"
103103 ) ;
104104 writeFile (
105- path . join ( root , "evals/workflow-scenarios /mock/rename-client-property.eval.yaml" ) ,
105+ path . join ( root , "workflows /mock/rename-client-property.eval.yaml" ) ,
106106 "tags:\n area: typespec"
107107 ) ;
108108 } ) ;
@@ -127,11 +127,11 @@ describe("collect-stimuli (area grouping)", () => {
127127 const collideRoot = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "vally-matrix-area-collide-" ) ) ;
128128 try {
129129 writeFile (
130- path . join ( collideRoot , "evals/ tools/a.eval.yaml" ) ,
130+ path . join ( collideRoot , "tools/a.eval.yaml" ) ,
131131 "tags:\n area: release-plan"
132132 ) ;
133133 writeFile (
134- path . join ( collideRoot , "evals/ tools/b.eval.yaml" ) ,
134+ path . join ( collideRoot , "tools/b.eval.yaml" ) ,
135135 "tags:\n area: release_plan"
136136 ) ;
137137 assert . throws (
@@ -149,8 +149,8 @@ describe("collect-stimuli (area with an untagged eval)", () => {
149149
150150 before ( ( ) => {
151151 root = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "vally-matrix-ut-" ) ) ;
152- writeFile ( path . join ( root , "evals/ tools/tagged.eval.yaml" ) , "tags:\n area: github" ) ;
153- writeFile ( path . join ( root , "evals/ tools/untagged.eval.yaml" ) , "no tags here" ) ;
152+ writeFile ( path . join ( root , "tools/tagged.eval.yaml" ) , "tags:\n area: github" ) ;
153+ writeFile ( path . join ( root , "tools/untagged.eval.yaml" ) , "no tags here" ) ;
154154 } ) ;
155155
156156 after ( ( ) => fs . rmSync ( root , { recursive : true , force : true } ) ) ;
@@ -159,7 +159,7 @@ describe("collect-stimuli (area with an untagged eval)", () => {
159159 const { result : matrix } = withWarnings ( ( warn ) =>
160160 buildMatrix ( {
161161 roots : [ root ] ,
162- patterns : [ "evals/ tools/*.eval.yaml" ] ,
162+ patterns : [ "tools/*.eval.yaml" ] ,
163163 warn,
164164 } )
165165 ) ;
@@ -172,7 +172,7 @@ describe("collect-stimuli (area with an untagged eval)", () => {
172172 const { result : matrix } = withWarnings ( ( warn ) =>
173173 buildMatrix ( {
174174 roots : [ root ] ,
175- patterns : [ "evals/ tools/*.eval.yaml" ] ,
175+ patterns : [ "tools/*.eval.yaml" ] ,
176176 warn,
177177 } )
178178 ) ;
@@ -183,7 +183,7 @@ describe("collect-stimuli (area with an untagged eval)", () => {
183183 const { warnings } = withWarnings ( ( warn ) =>
184184 buildMatrix ( {
185185 roots : [ root ] ,
186- patterns : [ "evals/ tools/*.eval.yaml" ] ,
186+ patterns : [ "tools/*.eval.yaml" ] ,
187187 warn,
188188 } )
189189 ) ;
@@ -197,11 +197,11 @@ describe("collect-stimuli (overlapping patterns)", () => {
197197 before ( ( ) => {
198198 root = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "vally-matrix-overlap-" ) ) ;
199199 writeFile (
200- path . join ( root , "evals/ tools/add-arm-resource.eval.yaml" ) ,
200+ path . join ( root , "tools/add-arm-resource.eval.yaml" ) ,
201201 "tags:\n area: typespec"
202202 ) ;
203203 writeFile (
204- path . join ( root , "evals/ tools/prompt-to-tool-github.eval.yaml" ) ,
204+ path . join ( root , "tools/prompt-to-tool-github.eval.yaml" ) ,
205205 "tags:\n area: github"
206206 ) ;
207207 } ) ;
@@ -211,7 +211,7 @@ describe("collect-stimuli (overlapping patterns)", () => {
211211 it ( "does not emit a duplicate -e flag for a file matched by multiple patterns" , ( ) => {
212212 const matrix = buildMatrix ( {
213213 roots : [ root ] ,
214- patterns : [ "evals/ tools/*.eval.yaml" , "evals/ tools/add-arm-resource.eval.yaml" ] ,
214+ patterns : [ "tools/*.eval.yaml" , "tools/add-arm-resource.eval.yaml" ] ,
215215 } ) ;
216216 const count = ( matrix . area_typespec . evalArgs . match ( / a d d - a r m - r e s o u r c e / g) || [ ] ) . length ;
217217 assert . equal ( count , 1 ) ;
@@ -226,11 +226,11 @@ describe("collect-stimuli (multiple eval roots: repo + common)", () => {
226226 repoRoot = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "vally-matrix-repo-" ) ) ;
227227 commonRoot = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "vally-matrix-common-" ) ) ;
228228 writeFile (
229- path . join ( repoRoot , "evals/ tools/repo-specific.eval.yaml" ) ,
229+ path . join ( repoRoot , "tools/repo-specific.eval.yaml" ) ,
230230 "tags:\n area: repo"
231231 ) ;
232232 writeFile (
233- path . join ( commonRoot , "evals/ tools/shared-scenario.eval.yaml" ) ,
233+ path . join ( commonRoot , "tools/shared-scenario.eval.yaml" ) ,
234234 "tags:\n area: shared"
235235 ) ;
236236 } ) ;
@@ -243,7 +243,7 @@ describe("collect-stimuli (multiple eval roots: repo + common)", () => {
243243 it ( "collects evals from both roots into one matrix" , ( ) => {
244244 const matrix = buildMatrix ( {
245245 roots : [ repoRoot , commonRoot ] ,
246- patterns : [ "evals/ tools/*.eval.yaml" ] ,
246+ patterns : [ "tools/*.eval.yaml" ] ,
247247 } ) ;
248248 const keys = Object . keys ( matrix ) ;
249249 assert . equal ( keys . length , 2 ) ;
@@ -254,11 +254,11 @@ describe("collect-stimuli (multiple eval roots: repo + common)", () => {
254254 it ( "computes each file's relative path against its own root" , ( ) => {
255255 const matrix = buildMatrix ( {
256256 roots : [ repoRoot , commonRoot ] ,
257- patterns : [ "evals/ tools/*.eval.yaml" ] ,
257+ patterns : [ "tools/*.eval.yaml" ] ,
258258 } ) ;
259259 assert . equal (
260260 matrix . area_shared . evalArgs ,
261- "-e evals/ tools/shared-scenario.eval.yaml"
261+ "-e tools/shared-scenario.eval.yaml"
262262 ) ;
263263 } ) ;
264264} ) ;
@@ -275,11 +275,11 @@ describe("collect-stimuli (pathBase anchors scattered roots to one run root)", (
275275 runRoot = path . join ( parent , "project" ) ;
276276 scatteredRoot = path . join ( parent , "extra" ) ;
277277 writeFile (
278- path . join ( runRoot , "evals/ tools/in-project.eval.yaml" ) ,
278+ path . join ( runRoot , "tools/in-project.eval.yaml" ) ,
279279 "tags:\n area: inproject"
280280 ) ;
281281 writeFile (
282- path . join ( scatteredRoot , "evals /out-of-tree.eval.yaml" ) ,
282+ path . join ( scatteredRoot , "workflows /out-of-tree.eval.yaml" ) ,
283283 "tags:\n area: scattered"
284284 ) ;
285285 } ) ;
@@ -290,28 +290,28 @@ describe("collect-stimuli (pathBase anchors scattered roots to one run root)", (
290290 const matrix = buildMatrix ( {
291291 roots : [ runRoot , scatteredRoot ] ,
292292 pathBase : runRoot ,
293- patterns : [ "evals /**/*.eval.yaml" , "evals /*.eval.yaml" ] ,
293+ patterns : [ "tools /**/*.eval.yaml" , "workflows /*.eval.yaml" ] ,
294294 } ) ;
295295 // The in-project file stays a simple relative path; the scattered one walks up.
296296 assert . equal (
297297 matrix . area_inproject . evalArgs ,
298- "-e evals/ tools/in-project.eval.yaml"
298+ "-e tools/in-project.eval.yaml"
299299 ) ;
300300 assert . equal (
301301 matrix . area_scattered . evalArgs ,
302- "-e ../extra/evals /out-of-tree.eval.yaml"
302+ "-e ../extra/workflows /out-of-tree.eval.yaml"
303303 ) ;
304304 } ) ;
305305
306306 it ( "falls back to per-root relative paths when no pathBase is given" , ( ) => {
307307 const matrix = buildMatrix ( {
308308 roots : [ scatteredRoot ] ,
309- patterns : [ "evals /*.eval.yaml" ] ,
309+ patterns : [ "workflows /*.eval.yaml" ] ,
310310 } ) ;
311311 // Without a base, the path is relative to the root it was found under (no `../`).
312312 assert . equal (
313313 matrix . area_scattered . evalArgs ,
314- "-e evals /out-of-tree.eval.yaml"
314+ "-e workflows /out-of-tree.eval.yaml"
315315 ) ;
316316 } ) ;
317317} ) ;
0 commit comments