Skip to content

Commit

Permalink
control-service: increase integration test builder memory (#929)
Browse files Browse the repository at this point in the history
what: Increased the gradle builder/worker limits

why: Integration tests keep failing with memory issues.

testing: tests complete

Signed-off-by: Momchil Zhivkov mzhivkov@vmware.com
  • Loading branch information
Momchil Z committed Aug 2, 2022
1 parent 59c8c6a commit 5581c31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/control-service/cicd/.gitlab-ci.yml
Expand Up @@ -24,6 +24,8 @@

.control_service_base_build:
image: docker:19.03.15
variables:
_JAVA_OPTIONS: "-Xms2048m -Xmx4096m"
before_script:
- apk --no-cache add git openjdk11-jdk curl --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
- curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/aws-iam-authenticator
Expand Down Expand Up @@ -84,6 +86,7 @@ control_service_integration_test:
- mkdir -p ~/.kube
- cp $KUBECONFIG ~/.kube/config
- ./gradlew -v
- ./gradlew projects --info
- ./gradlew -Djdk.tls.client.protocols=TLSv1.2 :pipelines_control_service:integrationTest --info --stacktrace
retry: !reference [.control_service_retry, retry_options]
artifacts:
Expand Down
Expand Up @@ -98,6 +98,7 @@ public KerberosCredentialsRepository credentialsRepository(){

@BeforeEach
public void before() throws Exception {
log.info("Running test with: {} bytes of memory.", Runtime.getRuntime().totalMemory());
mockMvc = MockMvcBuilders
.webAppContextSetup(context)
.apply(springSecurity())
Expand Down

0 comments on commit 5581c31

Please sign in to comment.