@@ -38,11 +38,16 @@ var cntsRequiredEnvironmentVariables = [...]string{
3838}
3939
4040type TestInfo struct {
41- Name string `json:"name"`
42- Status string `json:"status"`
43- Service string `json:"service"`
44- ErrorMessage string `json:"error_message"`
45- LogLink string `json"log_link`
41+ Name string `json:"name"`
42+ Status string `json:"status"`
43+ Service string `json:"service"`
44+ ErrorMessage string `json:"error_message"`
45+ LogLink string `json"log_link`
46+ ProviderVersion string `json:"provider_version"`
47+ QueuedDate string `json:"queuedDate"`
48+ StartDate string `json:"startDate"`
49+ FinishDate string `json:"finishDate"`
50+ Duration int `json:"duration"`
4651}
4752
4853// collectNightlyTestStatusCmd represents the collectNightlyTestStatus command
@@ -87,8 +92,8 @@ var collectNightlyTestStatusCmd = &cobra.Command{
8792 // check if a specific date is provided
8893 if customDate != "" {
8994 parsedDate , err := time .Parse ("2006-01-02" , customDate ) // input format YYYY-MM-DD
90- // Set the time to 6pm PT
91- date = time .Date (parsedDate .Year (), parsedDate .Month (), parsedDate .Day (), 18 , 0 , 0 , 0 , loc )
95+ // Set the time to 7pm PT
96+ date = time .Date (parsedDate .Year (), parsedDate .Month (), parsedDate .Day (), 19 , 0 , 0 , 0 , loc )
9297 if err != nil {
9398 return fmt .Errorf ("invalid input time format: %w" , err )
9499 }
@@ -164,11 +169,16 @@ func createTestReport(pVersion provider.Version, tc TeamcityClient, gcs Cloudsto
164169 errorMessage = convertErrorMessage (testResult .ErrorMessage )
165170 }
166171 testInfoList = append (testInfoList , TestInfo {
167- Name : testResult .Name ,
168- Status : testResult .Status ,
169- Service : serviceName ,
170- ErrorMessage : errorMessage ,
171- LogLink : logLink ,
172+ Name : testResult .Name ,
173+ Status : testResult .Status ,
174+ Service : serviceName ,
175+ ErrorMessage : errorMessage ,
176+ LogLink : logLink ,
177+ ProviderVersion : pVersion .String (),
178+ Duration : testResult .Duration ,
179+ QueuedDate : build .QueuedDate ,
180+ StartDate : build .StartDate ,
181+ FinishDate : build .FinishDate ,
172182 })
173183 }
174184 }
0 commit comments