From fe12395e8caf83b35e2fbb9699f5ca557d099d41 Mon Sep 17 00:00:00 2001 From: david-leifker <114954101+david-leifker@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:29:50 -0500 Subject: [PATCH] build(yarn): increase yarn timeout and version bump (#11461) --- build.gradle | 2 +- datahub-web-react/build.gradle | 4 ++-- docs-website/build.gradle | 6 +++--- smoke-test/build.gradle | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index a83d878f46965..dbd6806146654 100644 --- a/build.gradle +++ b/build.gradle @@ -63,7 +63,7 @@ buildscript { buildscript.repositories.addAll(project.repositories) dependencies { classpath 'com.linkedin.pegasus:gradle-plugins:' + pegasusVersion - classpath 'com.github.node-gradle:gradle-node-plugin:7.0.1' + classpath 'com.github.node-gradle:gradle-node-plugin:7.0.2' classpath 'io.acryl.gradle.plugin:gradle-avro-plugin:0.2.0' classpath 'org.springframework.boot:spring-boot-gradle-plugin:' + springBootVersion classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0" diff --git a/datahub-web-react/build.gradle b/datahub-web-react/build.gradle index 05af6871715ce..b9fffce173c5c 100644 --- a/datahub-web-react/build.gradle +++ b/datahub-web-react/build.gradle @@ -19,7 +19,7 @@ node { version = '21.2.0' // Version of Yarn to use. - yarnVersion = '1.22.21' + yarnVersion = '1.22.22' // Base URL for fetching node distributions (set nodeDistBaseUrl if you have a mirror). if (project.hasProperty('nodeDistBaseUrl')) { @@ -43,7 +43,7 @@ node { Wrappers around Yarn Tasks. */ task yarnInstall(type: YarnTask) { - args = ['install'] + args = ['install', '--network-timeout', '300000'] // The node_modules directory can contain built artifacts, so // it's not really safe to cache it. diff --git a/docs-website/build.gradle b/docs-website/build.gradle index 3b78804eafd9d..1860b4a49ae23 100644 --- a/docs-website/build.gradle +++ b/docs-website/build.gradle @@ -17,7 +17,7 @@ node { version = '21.2.0' // Version of Yarn to use. - yarnVersion = '1.22.1' + yarnVersion = '1.22.22' // Base URL for fetching node distributions (set nodeDistBaseUrl if you have a mirror). if (project.hasProperty('nodeDistBaseUrl')) { @@ -64,9 +64,9 @@ task generateJsonSchema(type: Exec, dependsOn: [':metadata-ingestion:docGen']) { task yarnInstall(type: YarnTask) { logger.info('CI = "{}"', System.env.CI) if (System.env.CI != null && System.env.CI == "true") { - args = ['install','--frozen-lockfile'] + args = ['install', '--frozen-lockfile', '--network-timeout', '300000'] } else { - args = ['install'] + args = ['install', '--network-timeout', '300000'] } // The node_modules directory can contain built artifacts, so diff --git a/smoke-test/build.gradle b/smoke-test/build.gradle index eb9ab7dec8f6c..def3e814b2ba0 100644 --- a/smoke-test/build.gradle +++ b/smoke-test/build.gradle @@ -19,7 +19,7 @@ node { version = '21.2.0' // Version of Yarn to use. - yarnVersion = '1.22.1' + yarnVersion = '1.22.22' // Base URL for fetching node distributions (set nodeDistBaseUrl if you have a mirror). if (project.hasProperty('nodeDistBaseUrl')) { @@ -42,7 +42,7 @@ node { task yarnInstall(type: YarnTask) { println "Root directory: ${project.rootDir}"; environment = ['NODE_OPTIONS': '--openssl-legacy-provider'] - args = ['install', '--cwd', "${project.rootDir}/smoke-test/tests/cypress"] + args = ['install', '--network-timeout', '300000', '--cwd', "${project.rootDir}/smoke-test/tests/cypress"] } task cypressLint(type: YarnTask, dependsOn: yarnInstall) {