From 0e39ae91c5be77a1dff68b36670bb662cab09e93 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 12 Aug 2025 03:44:40 +0000 Subject: [PATCH 1/2] Initial plan From 54ca92fc905fcb781b583119b66272609da8c529 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 12 Aug 2025 03:58:31 +0000 Subject: [PATCH 2/2] Implement enhanced filtering for TypeSpec integration test generation - Modified gen-cadl-ranch.js to support substring matching in addition to exact matching - Filter now checks outputPath and inputPath for partial matches - Maintains backward compatibility with exact path matching - Tested across all test types (rlc, azure-rlc, modular, azure-modular) Co-authored-by: MaryGao <9943211+MaryGao@users.noreply.github.com> --- packages/typespec-ts/test/commands/gen-cadl-ranch.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/typespec-ts/test/commands/gen-cadl-ranch.js b/packages/typespec-ts/test/commands/gen-cadl-ranch.js index 97b15fbe45..21642b7ebb 100644 --- a/packages/typespec-ts/test/commands/gen-cadl-ranch.js +++ b/packages/typespec-ts/test/commands/gen-cadl-ranch.js @@ -28,7 +28,11 @@ async function generateTypeSpecs(tag = "rlc", isDebugging, pathFilter) { } if (pathFilter) { - list = list.filter((tsp) => tsp.outputPath === pathFilter); + list = list.filter((tsp) => + tsp.outputPath === pathFilter || + tsp.outputPath.includes(pathFilter) || + tsp.inputPath.includes(pathFilter) + ); } const maxConcurrentWorkers = 4;