build(yarn): increase yarn timeout and version bump (#11461)

This commit is contained in:
david-leifker 2024-09-23 19:29:50 -05:00 committed by GitHub
parent 68b188a011
commit fe12395e8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -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"

View File

@ -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.

View File

@ -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

View File

@ -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) {