Skip to content

Commit

Permalink
fix-e2e [frontend]: fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-yinyuan committed Sep 11, 2024
1 parent e45a602 commit 4f71de4
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 51 deletions.
24 changes: 12 additions & 12 deletions frontend/e2e/fixtures/create-new/report-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -822,24 +822,24 @@ export const DORA_METRICS_RESULT_FOR_SOURCE_CONTROL: IDoraMetricsResultItem[] =
];

export const BOARD_METRICS_WITH_HOLIDAY_RESULT = {
Velocity: '1',
Throughput: '1',
AverageCycleTime4SP: '0.98',
AverageCycleTime4Card: '0.98',
Velocity: '14',
Throughput: '6',
AverageCycleTime4SP: '0.79',
AverageCycleTime4Card: '1.84',
totalReworkTimes: '0',
totalReworkCards: '0',
reworkCardsRatio: '0.0000',
throughput: '1',
throughput: '6',
};

export const DORA_METRICS_WITH_HOLIDAY_RESULT = {
PrLeadTime: '45.48',
PipelineLeadTime: '0.83',
TotalLeadTime: '46.31',
DeploymentFrequency: '1.00',
FailureRate: '16.67% (1/6)',
DevMeanTimeToRecovery: '0.78',
DeploymentTimes: '5',
PrLeadTime: '13.19',
PipelineLeadTime: '0.47',
TotalLeadTime: '13.66',
DeploymentFrequency: '1.83',
DeploymentTimes: '11',
FailureRate: '0.00% (0/11)',
DevMeanTimeToRecovery: '0.00',
};

export const CYCLE_TIME_WITH_ANALYSIS_STATUS_PROJECT_BOARD_METRICS_RESULT: IBoardMetricsResult = {
Expand Down
70 changes: 39 additions & 31 deletions frontend/e2e/fixtures/import-file/metric-with-holiday-data.csv
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
"Group","Metrics","Value"
"Velocity","Velocity(Story Point)","1.0"
"Velocity","Throughput(Cards Count)","1"
"Cycle time","Average cycle time(days/storyPoint)","0.98"
"Cycle time","Average cycle time(days/card)","0.98"
"Cycle time","Total development time / Total cycle time(%)","14.29"
"Cycle time","Total review time / Total cycle time(%)","0"
"Cycle time","Total waiting for testing time / Total cycle time(%)","85.71"
"Cycle time","Total testing time / Total cycle time(%)","0"
"Cycle time","Average development time(days/storyPoint)","0.14"
"Cycle time","Average development time(days/card)","0.14"
"Cycle time","Average review time(days/storyPoint)","0"
"Cycle time","Average review time(days/card)","0"
"Cycle time","Average waiting for testing time(days/storyPoint)","0.84"
"Cycle time","Average waiting for testing time(days/card)","0.84"
"Cycle time","Average testing time(days/storyPoint)","0"
"Cycle time","Average testing time(days/card)","0"
"Classifications","Issue Type / Bug(Value/Cards count%)","100.00"
"Classifications","Issue Type / Bug(Value/Story point%)","100.00"
"Classifications","Parent / ADM-319(Value/Cards count%)","100.00"
"Classifications","Parent / ADM-319(Value/Story point%)","100.00"
"Velocity","Velocity(Story Point)","14.0"
"Velocity","Throughput(Cards Count)","6"
"Cycle time","Average cycle time(days/storyPoint)","0.79"
"Cycle time","Average cycle time(days/card)","1.84"
"Cycle time","Total development time / Total cycle time(%)","55.02"
"Cycle time","Total review time / Total cycle time(%)","0.81"
"Cycle time","Total waiting for testing time / Total cycle time(%)","1.63"
"Cycle time","Total testing time / Total cycle time(%)","42.53"
"Cycle time","Average development time(days/storyPoint)","0.43"
"Cycle time","Average development time(days/card)","1.01"
"Cycle time","Average review time(days/storyPoint)","0.01"
"Cycle time","Average review time(days/card)","0.02"
"Cycle time","Average waiting for testing time(days/storyPoint)","0.01"
"Cycle time","Average waiting for testing time(days/card)","0.03"
"Cycle time","Average testing time(days/storyPoint)","0.34"
"Cycle time","Average testing time(days/card)","0.78"
"Classifications","Issue Type / Bug(Value/Cards count%)","33.33"
"Classifications","Issue Type / Bug(Value/Story point%)","35.71"
"Classifications","Issue Type / Story(Value/Cards count%)","66.67"
"Classifications","Issue Type / Story(Value/Story point%)","64.29"
"Classifications","Parent / ADM-322(Value/Cards count%)","66.67"
"Classifications","Parent / ADM-322(Value/Story point%)","57.14"
"Classifications","Parent / ADM-319(Value/Cards count%)","33.33"
"Classifications","Parent / ADM-319(Value/Story point%)","42.86"
"Classifications","Story testing-2 / None(Value/Cards count%)","100.00"
"Classifications","Story testing-2 / None(Value/Story point%)","100.00"
"Classifications","Story testing-1 / None(Value/Cards count%)","100.00"
Expand All @@ -27,8 +31,8 @@
"Classifications","Design / None(Value/Story point%)","100.00"
"Classifications","Vulnerability / None(Value/Cards count%)","100.00"
"Classifications","Vulnerability / None(Value/Story point%)","100.00"
"Classifications","Sprint / Sprint37(Value/Cards count%)","100.00"
"Classifications","Sprint / Sprint37(Value/Story point%)","100.00"
"Classifications","Sprint / Sprint42(Value/Cards count%)","100.00"
"Classifications","Sprint / Sprint42(Value/Story point%)","100.00"
"Classifications","Project / Auto Dora Metrics(Value/Cards count%)","100.00"
"Classifications","Project / Auto Dora Metrics(Value/Story point%)","100.00"
"Classifications","Flagged / None(Value/Cards count%)","100.00"
Expand All @@ -43,8 +47,12 @@
"Classifications","Labels / None(Value/Story point%)","100.00"
"Classifications","Time tracking / None(Value/Cards count%)","100.00"
"Classifications","Time tracking / None(Value/Story point%)","100.00"
"Classifications","Story point estimate / 1.0(Value/Cards count%)","100.00"
"Classifications","Story point estimate / 1.0(Value/Story point%)","100.00"
"Classifications","Story point estimate / 1.0(Value/Cards count%)","16.67"
"Classifications","Story point estimate / 1.0(Value/Story point%)","7.14"
"Classifications","Story point estimate / 2.0(Value/Cards count%)","33.33"
"Classifications","Story point estimate / 2.0(Value/Story point%)","28.57"
"Classifications","Story point estimate / 3.0(Value/Cards count%)","50.00"
"Classifications","Story point estimate / 3.0(Value/Story point%)","64.29"
"Classifications","QA / None(Value/Cards count%)","100.00"
"Classifications","QA / None(Value/Story point%)","100.00"
"Classifications","Feature/Operation / None(Value/Cards count%)","100.00"
Expand All @@ -54,10 +62,10 @@
"Rework","Total rework times","0"
"Rework","Total rework cards","0"
"Rework","Rework cards ratio(Total rework cards/Throughput%)","0"
"Deployment frequency","Heartbeat / Deploy prod / Deployment frequency(Deployments/Day)","1.00"
"Deployment frequency","Heartbeat / Deploy prod / Deployment frequency(Deployment times)","5"
"Lead time for changes","Heartbeat / Deploy prod / PR Lead Time","45.48"
"Lead time for changes","Heartbeat / Deploy prod / Pipeline Lead Time","0.83"
"Lead time for changes","Heartbeat / Deploy prod / Total Lead Time","46.31"
"Pipeline change failure rate","Heartbeat / Deploy prod / Pipeline change failure rate(%)","16.67"
"Pipeline mean time to recovery","Heartbeat / Deploy prod / Pipeline mean time to recovery","0.78"
"Deployment frequency","Heartbeat / Deploy prod / Deployment frequency(Deployments/Day)","1.83"
"Deployment frequency","Heartbeat / Deploy prod / Deployment frequency(Deployment times)","11"
"Lead time for changes","Heartbeat / Deploy prod / PR Lead Time","13.19"
"Lead time for changes","Heartbeat / Deploy prod / Pipeline Lead Time","0.47"
"Lead time for changes","Heartbeat / Deploy prod / Total Lead Time","13.66"
"Pipeline change failure rate","Heartbeat / Deploy prod / Pipeline change failure rate(%)","0"
"Pipeline mean time to recovery","Heartbeat / Deploy prod / Pipeline mean time to recovery","0"
17 changes: 11 additions & 6 deletions frontend/e2e/fixtures/import-file/pipeline-with-holiday-data.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"Organization","Pipeline Name","Repo Name","Pipeline Step","Valid","Build Number","Pull Number","Code Committer","Build Creator","First Code Committed Time In PR","PR Created Time","PR Merged Time","No PR Committed Time","Job Start Time","Pipeline Start Time","Pipeline Finish Time","Non-Workdays (Hours)","Total Lead Time (HH:mm:ss)","PR Lead Time (HH:mm:ss)","Pipeline Lead Time (HH:mm:ss)","Status","Branch","Revert"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","3637","1485","Mandy-Tang",,"2024-06-13T09:46:18Z","2024-06-14T01:57:16Z","2024-06-14T03:33:48Z",,"2024-06-14T06:07:02Z","2024-06-14T03:33:48Z","2024-06-14T06:07:35.879Z","0","20:21:17","17:47:30","2:33:47","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","3635","1486","zhou-yinyuan",,"2024-06-13T08:37:51Z","2024-06-14T02:38:55Z","2024-06-14T02:57:41Z",,"2024-06-14T03:25:06Z","2024-06-14T02:57:41Z","2024-06-14T03:25:43.587Z","0","18:47:52","18:19:50","0:28:2","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Run e2e","false","3630",,"zhou-yinyuan",,,,,,,,"2024-06-14T02:39:02.628Z","0",,,,"failed","main",""
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","3623","1483","Mandy-Tang",,"2024-06-13T03:23:46Z","2024-06-13T03:49:42Z","2024-06-13T07:50:51Z",,"2024-06-13T08:12:35Z","2024-06-13T07:50:51Z","2024-06-13T08:13:08.492Z","0","4:49:22","4:27:5","0:22:17","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","3621","1482","zhou-yinyuan",,"2024-06-13T03:20:02Z","2024-06-13T03:22:21Z","2024-06-13T03:49:10Z",,"2024-06-13T04:12:06Z","2024-06-13T03:49:10Z","2024-06-13T04:12:38.392Z","0","0:52:36","0:29:8","0:23:28","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","3616","1481","zhou-yinyuan",,"2024-05-31T07:26:04Z","2024-06-07T03:49:08Z","2024-06-13T01:45:55Z",,"2024-06-13T02:07:09Z","2024-06-13T01:45:55Z","2024-06-13T02:07:51.479Z","120","186:41:47","186:19:51","0:21:56","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4173","1576","zhou-yinyuan",,"2024-08-14T07:07:54Z","2024-08-14T09:21:18Z","2024-08-14T09:29:12Z",,"2024-08-14T09:52:23Z","2024-08-14T09:29:12Z","2024-08-14T09:52:49.797Z","0","2:44:55","2:21:18","0:23:37","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4170","1575","zhou-yinyuan",,"2024-08-14T07:07:54Z","2024-08-14T07:08:40Z","2024-08-14T07:13:45Z",,"2024-08-14T07:37:14Z","2024-08-14T07:13:45Z","2024-08-14T07:37:42.686Z","0","0:29:48","0:5:51","0:23:57","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4168","1574","zhou-yinyuan",,"2024-08-14T02:18:08Z","2024-08-14T02:18:46Z","2024-08-14T02:25:41Z",,"2024-08-14T02:51:00Z","2024-08-14T02:25:41Z","2024-08-14T02:51:29.410Z","0","0:33:21","0:7:33","0:25:48","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4165","1573","zhou-yinyuan",,"2024-08-12T02:58:15Z","2024-08-13T06:09:53Z","2024-08-13T07:00:49Z",,"2024-08-13T07:28:33Z","2024-08-13T07:00:49Z","2024-08-13T07:29:05.011Z","0","28:30:50","28:2:34","0:28:16","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4162","1572","zhou-yinyuan",,"2024-08-12T02:58:15Z","2024-08-12T02:59:01Z","2024-08-13T05:56:53Z",,"2024-08-13T06:24:55Z","2024-08-13T05:56:53Z","2024-08-13T06:25:32.138Z","0","27:27:17","26:58:38","0:28:39","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4153","1571","zhou-yinyuan",,"2024-08-09T03:54:06Z","2024-08-09T07:16:19Z","2024-08-12T01:08:39Z",,"2024-08-12T01:36:41Z","2024-08-12T01:08:39Z","2024-08-12T01:37:13.163Z","48","21:43:7","21:14:33","0:28:34","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4149","1568","zhou-yinyuan",,"2024-08-07T07:23:20Z","2024-08-07T07:24:09Z","2024-08-09T02:49:23Z",,"2024-08-09T03:19:19Z","2024-08-09T02:49:23Z","2024-08-09T03:19:50.023Z","0","43:56:30","43:26:3","0:30:27","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4142","1570","Unknown","heartbeat-user","2024-08-08T06:15:41Z","2024-08-08T06:16:10Z","2024-08-08T06:22:15Z",,"2024-08-08T07:15:18Z","2024-08-08T06:22:15Z","2024-08-08T07:15:45.521Z","0","1:0:4","0:6:34","0:53:30","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4140","1570","zhou-yinyuan",,"2024-08-08T06:15:41Z","2024-08-08T06:16:10Z","2024-08-08T06:22:15Z",,"2024-08-08T07:15:18Z","2024-08-08T06:22:15Z","2024-08-08T06:46:47.388Z","0","1:0:4","0:6:34","0:53:30","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4134","1569","zhou-yinyuan",,"2024-08-08T02:19:39Z","2024-08-08T02:20:19Z","2024-08-08T02:29:09Z",,"2024-08-08T02:50:46Z","2024-08-08T02:29:09Z","2024-08-08T02:51:13.224Z","0","0:31:34","0:9:30","0:22:4","passed","main","false"
"Heartbeat-backup","Heartbeat",,":rocket: Deploy prod","true","4131","1567","zhou-yinyuan",,"2024-08-07T03:08:11Z","2024-08-07T03:08:41Z","2024-08-08T01:33:15Z",,"2024-08-08T01:54:28Z","2024-08-08T01:33:15Z","2024-08-08T01:54:57.059Z","0","22:46:46","22:25:4","0:21:42","passed","main","false"
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"projectName": "Heartbeat Metrics",
"dateRange": [
{
"startDate": "2024-06-07T00:00:00.000+08:00",
"endDate": "2024-06-14T23:59:59.999+08:00"
"startDate": "2024-08-07T00:00:00.000+08:00",
"endDate": "2024-08-14T23:59:59.999+08:00"
}
],
"calendarType": "CN",
Expand Down

0 comments on commit 4f71de4

Please sign in to comment.