Skip to content

Commit

Permalink
build(yarn): increase yarn timeout and version bump (datahub-project#…
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Sep 24, 2024
1 parent 68b188a commit fe12395
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions datahub-web-react/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions docs-website/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions smoke-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -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) {
Expand Down

0 comments on commit fe12395

Please sign in to comment.