Skip to content

Commit

Permalink
Never wait for the GA hit on compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Sep 2, 2022
1 parent 32884a2 commit a75de34
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/hardhat-core/src/internal/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import debug from "debug";
import semver from "semver";
import "source-map-support/register";

import { TASK_COMPILE, TASK_HELP } from "../../builtin-tasks/task-names";
import {
TASK_COMPILE,
TASK_HELP,
TASK_TEST,
} from "../../builtin-tasks/task-names";
import { TaskArguments } from "../../types";
import { HARDHAT_NAME } from "../constants";
import { HardhatContext } from "../context";
Expand Down Expand Up @@ -268,7 +272,8 @@ async function main() {

if (
timestampAfterRun - timestampBeforeRun >
ANALYTICS_SLOW_TASK_THRESHOLD
ANALYTICS_SLOW_TASK_THRESHOLD &&
taskName !== TASK_COMPILE
) {
await hitPromise;
} else {
Expand All @@ -288,7 +293,7 @@ async function main() {

// VSCode extension prompt for installation
if (
taskName === "test" &&
taskName === TASK_TEST &&
!isRunningOnCiServer() &&
process.stdout.isTTY === true
) {
Expand Down

0 comments on commit a75de34

Please sign in to comment.