[ 
https://issues.apache.org/jira/browse/BEAM-4371?focusedWorklogId=106080&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-106080
 ]

ASF GitHub Bot logged work on BEAM-4371:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/May/18 00:40
            Start Date: 26/May/18 00:40
    Worklog Time Spent: 10m 
      Work Description: chamikaramj closed pull request #5452: [BEAM-4371] 
Namespace shares the same name between Jenkins Performance test jobs
URL: https://github.com/apache/beam/pull/5452
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.test-infra/jenkins/common_job_properties.groovy 
b/.test-infra/jenkins/common_job_properties.groovy
index f07ac59e08d..52e1dd86a49 100644
--- a/.test-infra/jenkins/common_job_properties.groovy
+++ b/.test-infra/jenkins/common_job_properties.groovy
@@ -290,8 +290,9 @@ class common_job_properties {
     }
   }
 
+  // Namespace must contain lower case alphanumeric characters or '-'
   static String getKubernetesNamespace(def testName) {
-    return "${testName}-${new Date().getTime()}"
+    return "${testName}-\${BUILD_ID}"
   }
 
   static String getKubeconfigLocationForNamespace(def namespace) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 106080)
    Time Spent: 10h 20m  (was: 10h 10m)

> Namespace shares the same name between Jenkins Performance test jobs
> --------------------------------------------------------------------
>
>                 Key: BEAM-4371
>                 URL: https://issues.apache.org/jira/browse/BEAM-4371
>             Project: Beam
>          Issue Type: Bug
>          Components: testing
>            Reporter: Kasia Kucharczyk
>            Assignee: Kasia Kucharczyk
>            Priority: Major
>          Time Spent: 10h 20m
>  Remaining Estimate: 0h
>
> In _common_job_properties.groovy_ is defined _getKubernetesNamespace(def 
> testName)_ which runs only after _seed job_.
> Expected behaviour is to create a new namespace with every test run.
> The failure was observed after retrying JdbcIOIT job. The first failure did 
> not deleted namespace. Next jobs failed because of:
> {code}
> + kubectl 
> --kubeconfig=/home/jenkins/jenkins-slave/workspace/beam_PerformanceTests_JDBC/config-jdbcioit-1526904136153
>  create namespace jdbcioit-1526904136153 Error from server (AlreadyExists): 
> namespaces "jdbcioit-1526904136153" already exists
> {code}
> Here are examples of jobs on Jenkins:
> [https://builds.apache.org/view/A-D/view/Beam/job/beam_PerformanceTests_JDBC/601/console]
> and
> [https://builds.apache.org/view/A-D/view/Beam/job/beam_PerformanceTests_JDBC/602/console]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to