Re-enable tests in RC build (#1130)

There has been a case where the CI was broken on Friday and no one
noticied or fixed it and a RC build was built with broken tests.
The tests were disabled due to unknown test failures that have since
been fixed.

Also update the machine type used by GCB to be more powerful. This is
necessary for the tests to past because N1_HIGHCPU_8 is RAM constraint
and the tests crashes. I updated all jobs to use the new type which
hopefully will make the build faster as well.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1130)
<!-- Reviewable:end -->
This commit is contained in:
Lai Jiang 2021-05-05 13:53:21 -04:00 committed by GitHub
parent 34edff2a14
commit 4c0f221e8c
11 changed files with 22 additions and 19 deletions

View file

@ -1,4 +1,5 @@
python/ python/
node_modules/
**/build/ **/build/
**/out/ **/out/
.*/ .*/

View file

@ -48,6 +48,8 @@ apt-get install docker.io -y
apt-get install wget -y apt-get install wget -y
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb -y apt install ./google-chrome-stable_current_amd64.deb -y
# Install libxss1 (needed by Karma)
apt install libxss1
apt-get remove apt-utils locales -y apt-get remove apt-utils locales -y
apt-get autoclean -y apt-get autoclean -y
apt-get autoremove -y apt-get autoremove -y

View file

@ -95,4 +95,4 @@ steps:
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -35,4 +35,4 @@ steps:
'gs://${PROJECT_ID}-er-diagram'] 'gs://${PROJECT_ID}-er-diagram']
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -58,4 +58,4 @@ artifacts:
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -20,16 +20,16 @@ steps:
- name: 'gcr.io/${PROJECT_ID}/builder:latest' - name: 'gcr.io/${PROJECT_ID}/builder:latest'
args: ['mkdir', 'nomulus'] args: ['mkdir', 'nomulus']
# Run tests # Run tests
#- name: 'gcr.io/${PROJECT_ID}/builder:latest' - name: 'gcr.io/${PROJECT_ID}/builder:latest'
# # Set home for Gradle caches. Must be consistent with last step below # Set home for Gradle caches. Must be consistent with last step below
# # and ./build_nomulus_for_env.sh # and ./build_nomulus_for_env.sh
# env: [ 'GRADLE_USER_HOME=./cloudbuild-caches' ] env: [ 'GRADLE_USER_HOME=./cloudbuild-caches' ]
# args: ['./gradlew', args: ['./gradlew',
# 'test', 'test',
# '-PskipDockerIncompatibleTests=true', '-PskipDockerIncompatibleTests=true',
# '-PmavenUrl=gcs://domain-registry-maven-repository/maven', '-PmavenUrl=gcs://domain-registry-maven-repository/maven',
# '-PpluginsUrl=gcs://domain-registry-maven-repository/plugins' '-PpluginsUrl=gcs://domain-registry-maven-repository/plugins'
# ] ]
# Build the tool binary and image. # Build the tool binary and image.
- name: 'gcr.io/${PROJECT_ID}/builder:latest' - name: 'gcr.io/${PROJECT_ID}/builder:latest'
args: ['release/build_nomulus_for_env.sh', 'tool', 'output'] args: ['release/build_nomulus_for_env.sh', 'tool', 'output']
@ -138,4 +138,4 @@ artifacts:
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -64,4 +64,4 @@ artifacts:
- 'release/cloudbuild-tag.yaml' - 'release/cloudbuild-tag.yaml'
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -184,4 +184,4 @@ steps:
git push origin ${TAG_NAME} git push origin ${TAG_NAME}
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -94,4 +94,4 @@ steps:
gsutil cp - gs://$PROJECT_ID-deployed-tags/sql.${_ENV}.tag\ gsutil cp - gs://$PROJECT_ID-deployed-tags/sql.${_ENV}.tag\
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -29,4 +29,4 @@ steps:
- gs://$PROJECT_ID-deploy/live - gs://$PROJECT_ID-deploy/live
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'

View file

@ -29,4 +29,4 @@ steps:
- gcr.io/$PROJECT_ID/${_IMAGE}:live - gcr.io/$PROJECT_ID/${_IMAGE}:live
timeout: 3600s timeout: 3600s
options: options:
machineType: 'N1_HIGHCPU_8' machineType: 'E2_HIGHCPU_32'