From e86bf23f5436a8477eb4af79b96b425c3d1c37f4 Mon Sep 17 00:00:00 2001 From: Tyler Jang Date: Thu, 30 May 2024 10:21:34 -0700 Subject: [PATCH] handle eslint --- tests/parse/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/parse/index.ts b/tests/parse/index.ts index 210e45f49..3a4bd4602 100644 --- a/tests/parse/index.ts +++ b/tests/parse/index.ts @@ -16,6 +16,9 @@ const RESULTS_FILE = path.resolve(REPO_ROOT, "results.json"); const FAILURES_FILE = path.resolve(REPO_ROOT, "failures.json"); const RERUN_FILE = path.resolve(REPO_ROOT, "reruns.txt"); +// TODO(Tyler): Remove this blocklist once eslint-friendly release is out. +const VALIDATED_LINTER_BLOCKLIST = ["eslint"]; + const RUN_ID = process.env.RUN_ID ?? ""; const TEST_REF = process.env.TEST_REF ?? "latest release"; const GITHUB_REPOSITORY = process.env.GITHUB_REPOSITORY ?? "missing_repo"; @@ -323,7 +326,11 @@ const writeTestResults = (testResults: TestResultSummary) => { const pluginVersion = PLUGIN_VERSION; const validatedVersions = Array.from(testResults.testResults).reduce( (accumulator: ValidatedVersion[], [linter, { version, testResultStatus }]) => { - if (testResultStatus === "passed" && version) { + if ( + testResultStatus === "passed" && + version && + !VALIDATED_LINTER_BLOCKLIST.includes(linter) + ) { const additionalValidatedVersion: ValidatedVersion = { linter, version }; return accumulator.concat([additionalValidatedVersion]); }