From 73e6742ba2a1226b4954bcd69deae6514106795d Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Wed, 29 Aug 2018 12:53:17 -0700 Subject: [PATCH 1/3] Use gradle to detect java (#2888) --- build/repo.targets | 47 ++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/build/repo.targets b/build/repo.targets index 85e3b13e5a..ffd96ceae7 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -10,29 +10,15 @@ - - - $(JAVA_HOME)\bin\javac.exe - $(JAVA_HOME)/bin/javac - - true - + -PpackageVersion="$(JavaPackageVersion)" $(GradleOptions) -Dorg.gradle.daemon=false + + true - - - - - - - - $(RestoreDependsOn);RestoreNpm @@ -58,7 +44,7 @@ - + @@ -66,7 +52,6 @@ $(GetArtifactInfoDependsOn);GetNpmArtifactInfo;GetJavaArtifactInfo - $(PrepareDependsOn);GetNpmArtifactInfo;GetJavaArtifactInfo @@ -91,7 +76,7 @@ - + JavaJar $(JavaClientVersion) @@ -108,6 +93,24 @@ + + DetectJava;$(PrepareDependsOn) + + + + + + + + + + + + + true + + + Restore;BuildNPMPackages;$(CompileDependsOn);BuildJavaClient @@ -118,7 +121,7 @@ - + @@ -143,7 +146,7 @@ - + From e2cc0e2a19f8cb87789cba953bb13afdcc331d05 Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Wed, 29 Aug 2018 12:55:19 -0700 Subject: [PATCH 2/3] add --no-restore when building functional test proj (#2889) --- clients/ts/FunctionalTests/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/ts/FunctionalTests/package.json b/clients/ts/FunctionalTests/package.json index 34ab4d831e..bc2d8bb23a 100644 --- a/clients/ts/FunctionalTests/package.json +++ b/clients/ts/FunctionalTests/package.json @@ -39,7 +39,7 @@ "build:lint": "node ../common/node_modules/tslint/bin/tslint -c ../tslint.json -p ./tsconfig.json", "build:webpack": "node ../common/node_modules/webpack-cli/bin/cli.js", "build:parent": "cd .. && npm run build", - "pretest": "npm run build:parent && npm run build && dotnet build", + "pretest": "npm run build:parent && npm run build && dotnet build --no-restore", "test": "npm run test:local --", "test:inner": "npm run build && dotnet build && npm run test:local --", "test:local": "ts-node --project ./scripts/tsconfig.json ./scripts/run-tests.ts", From f91ba389077b43fcab85a9a31e5678229093295a Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Wed, 29 Aug 2018 12:55:57 -0700 Subject: [PATCH 3/3] fix chrome headless lag on Win7 (#2890) --- clients/ts/FunctionalTests/scripts/karma.local.conf.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/ts/FunctionalTests/scripts/karma.local.conf.js b/clients/ts/FunctionalTests/scripts/karma.local.conf.js index d9751a447b..3c127435b9 100644 --- a/clients/ts/FunctionalTests/scripts/karma.local.conf.js +++ b/clients/ts/FunctionalTests/scripts/karma.local.conf.js @@ -56,7 +56,9 @@ try { customLaunchers: { ChromeHeadlessNoSandbox: { base: 'ChromeHeadless', - flags: ['--no-sandbox'] + + // ChromeHeadless runs about 10x slower on Windows 7 machines without the --proxy switches below. Why? ¯\_(ツ)_/¯ + flags: ["--no-sandbox", "--proxy-server='direct://'", "--proxy-bypass-list=*"] } }, });