From 8f25b98e6f5cd276e40786ae27efdde6cef27cb8 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 17 Apr 2023 16:35:54 -0700 Subject: [PATCH] Print the final minimized test plan before sending it to zed.dev --- script/randomized-test-ci | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/randomized-test-ci b/script/randomized-test-ci index 31fdea6aee..7816ebfbbf 100755 --- a/script/randomized-test-ci +++ b/script/randomized-test-ci @@ -40,13 +40,15 @@ async function main() { console.log("found failure at seed", failingSeed) const minimizedSeed = minimizeTestPlan(planPath, minPlanPath) - const minimizedPlan = JSON.parse(fs.readFileSync(minPlanPath, 'utf8')) + const minimizedPlan = fs.readFileSync(minPlanPath, 'utf8') + + console.log("minimized plan:\n", minimizedPlan) const url = `${ZED_SERVER_URL}/api/randomized_test_failure` const body = { seed: minimizedSeed, token: ZED_CLIENT_SECRET_TOKEN, - plan: minimizedPlan, + plan: JSON.parse(minimizedPlan), commit: commit, } await fetch(url, {