Skip to content

Commit

Permalink
ADM-919:[backend] feat: delete fetch author from GitHub (#1379)
Browse files Browse the repository at this point in the history
* ADM-919:[backend] feat: delete fetch author from GitHub

* ADM-919:[backend] fix: delete some no use test
  • Loading branch information
yulongcai authored Apr 15, 2024
1 parent 2e9711d commit 9411cd9
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 195 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,19 @@ public void convertPipelineDataToCSV(List<PipelineCSVInfo> leadTimeData, String
}

private String[] getRowData(PipelineCSVInfo csvInfo) {
List<String> committerNames = new ArrayList<>();
if (csvInfo.getBuildInfo().getAuthor() != null && csvInfo.getBuildInfo().getAuthor().getName() != null) {
String authorName = String.valueOf(csvInfo.getBuildInfo().getAuthor().getName());
committerNames.add(authorName);
}

String creatorName = null;
if (csvInfo.getBuildInfo().getCreator() != null && csvInfo.getBuildInfo().getCreator().getName() != null) {
creatorName = csvInfo.getBuildInfo().getCreator().getName();
}
String committerName = null;
if (csvInfo.getBuildInfo().getAuthor() != null && csvInfo.getBuildInfo().getAuthor().getName() != null) {
committerName = String.valueOf(csvInfo.getBuildInfo().getAuthor().getName());
committerNames.add(creatorName);
}

String committerName = committerNames.isEmpty() ? null : String.join("\n", committerNames);
String organization = csvInfo.getOrganizationName();
String pipelineName = csvInfo.getPipeLineName();
String stepName = csvInfo.getStepName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,8 @@ private FetchedData fetchJiraBoardData(GenerateReportRequest request, FetchedDat
}

private void generateCSVForPipeline(GenerateReportRequest request, BuildKiteData buildKiteData) {
List<PipelineCSVInfo> pipelineData = pipelineService.generateCSVForPipelineWithCodebase(
request.getCodebaseSetting(), request.getStartTime(), request.getEndTime(), buildKiteData,
request.getBuildKiteSetting().getDeploymentEnvList());
List<PipelineCSVInfo> pipelineData = pipelineService.generateCSVForPipeline(request.getStartTime(),
request.getEndTime(), buildKiteData, request.getBuildKiteSetting().getDeploymentEnvList());

csvFileGenerator.convertPipelineDataToCSV(pipelineData, request.getCsvTimeStamp());
asyncMetricsDataHandler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
package heartbeat.service.report;

import heartbeat.client.dto.codebase.github.Author;
import heartbeat.client.dto.codebase.github.CommitInfo;
import heartbeat.client.dto.codebase.github.LeadTime;
import heartbeat.client.dto.codebase.github.PipelineLeadTime;
import heartbeat.client.dto.pipeline.buildkite.BuildKiteBuildInfo;
import heartbeat.client.dto.pipeline.buildkite.BuildKiteJob;
import heartbeat.client.dto.pipeline.buildkite.DeployInfo;
import heartbeat.client.dto.pipeline.buildkite.DeployTimes;
import heartbeat.controller.pipeline.dto.request.DeploymentEnvironment;
import heartbeat.controller.report.dto.request.CodebaseSetting;
import heartbeat.controller.report.dto.request.GenerateReportRequest;
import heartbeat.controller.report.dto.response.LeadTimeInfo;
import heartbeat.controller.report.dto.response.PipelineCSVInfo;
import heartbeat.service.pipeline.buildkite.BuildKiteService;
import heartbeat.service.report.calculator.model.FetchedData;
import heartbeat.service.source.github.GitHubService;
import heartbeat.util.GithubUtil;
import lombok.AllArgsConstructor;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.stereotype.Service;
Expand Down Expand Up @@ -69,9 +65,8 @@ public FetchedData.BuildKiteData fetchBuildKiteInfo(GenerateReportRequest reques
return result;
}

public List<PipelineCSVInfo> generateCSVForPipelineWithCodebase(CodebaseSetting codebaseSetting, String startTime,
String endTime, FetchedData.BuildKiteData buildKiteData,
List<DeploymentEnvironment> deploymentEnvironments) {
public List<PipelineCSVInfo> generateCSVForPipeline(String startTime, String endTime,
FetchedData.BuildKiteData buildKiteData, List<DeploymentEnvironment> deploymentEnvironments) {
List<PipelineCSVInfo> pipelineCSVInfos = new ArrayList<>();
deploymentEnvironments.parallelStream().forEach(deploymentEnvironment -> {
List<BuildKiteBuildInfo> buildInfos = getBuildInfos(buildKiteData.getBuildInfosList(),
Expand All @@ -83,8 +78,8 @@ public List<PipelineCSVInfo> generateCSVForPipelineWithCodebase(CodebaseSetting
pipelineSteps);
List<PipelineCSVInfo> pipelineCSVInfoList = buildInfos.stream()
.filter(buildInfo -> isValidBuildInfo(buildInfo, validSteps, startTime, endTime))
.map(buildInfo -> getPipelineCSVInfo(codebaseSetting, startTime, endTime, buildKiteData,
deploymentEnvironment, buildInfo, validSteps))
.map(buildInfo -> getPipelineCSVInfo(startTime, endTime, buildKiteData, deploymentEnvironment,
buildInfo, validSteps))
.toList();
pipelineCSVInfos.addAll(pipelineCSVInfoList);
}
Expand All @@ -93,19 +88,11 @@ public List<PipelineCSVInfo> generateCSVForPipelineWithCodebase(CodebaseSetting
return pipelineCSVInfos;
}

private PipelineCSVInfo getPipelineCSVInfo(CodebaseSetting codebaseSetting, String startTime, String endTime,
private PipelineCSVInfo getPipelineCSVInfo(String startTime, String endTime,
FetchedData.BuildKiteData buildKiteData, DeploymentEnvironment deploymentEnvironment,
BuildKiteBuildInfo buildInfo, List<String> pipelineSteps) {
DeployInfo deployInfo = buildKiteService.mapToDeployInfo(buildInfo, pipelineSteps, REQUIRED_STATES, startTime,
endTime);
if (Objects.nonNull(codebaseSetting) && StringUtils.hasLength(codebaseSetting.getToken())
&& Objects.nonNull(deployInfo.getCommitId()) && Objects.isNull(buildInfo.getAuthor())) {
CommitInfo commitInfo = gitHubService.fetchCommitInfo(deployInfo.getCommitId(),
GithubUtil.getGithubUrlFullName(deploymentEnvironment.getRepository()), codebaseSetting.getToken());
Author author = commitInfo.getCommit().getAuthor();
buildInfo
.setAuthor(BuildKiteBuildInfo.Author.builder().name(author.getName()).email(author.getEmail()).build());
}

return PipelineCSVInfo.builder()
.organizationName(deploymentEnvironment.getOrgName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void shouldConvertPipelineDataToCsvGivenCommitInfoNotNull() throws IOException {
headers);
String firstLine = reader.readLine();
assertEquals(
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",,\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
firstLine);
reader.close();
fileInputStream.close();
Expand All @@ -102,7 +102,7 @@ void shouldConvertPipelineDataToCsvGivenCommitInfoNotNullAndPipelineStateIsCance
headers);
String firstLine = reader.readLine();
assertEquals(
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"canceled\",\"branch\",\"\"",
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",,\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"canceled\",\"branch\",\"\"",
firstLine);
reader.close();
fileInputStream.close();
Expand Down Expand Up @@ -223,7 +223,7 @@ void shouldConvertPipelineDataToCsvGivenAuthorIsNull() throws IOException {
"\"Organization\",\"Pipeline Name\",\"Pipeline Step\",\"Valid\",\"Build Number\",\"Code Committer\",\"Pipeline 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\",\"Total Lead Time (HH:mm:ss)\",\"PR Lead Time (HH:mm:ss)\",\"Pipeline Lead Time (HH:mm:ss)\",\"Status\",\"Branch\",\"Revert\"",
headers);
assertEquals(
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"null\",\"880\",,,\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"null\",\"880\",\"XXX\",\"XXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
firstLine);
reader.close();
fileInputStream.close();
Expand Down Expand Up @@ -258,7 +258,7 @@ void shouldHasContentWhenGetDataFromCsvGivenDataTypeIsPipeline() throws IOExcept

Assertions.assertEquals(
"\"Organization\",\"Pipeline Name\",\"Pipeline Step\",\"Valid\",\"Build Number\",\"Code Committer\",\"Pipeline 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\",\"Total Lead Time (HH:mm:ss)\",\"PR Lead Time (HH:mm:ss)\",\"Pipeline Lead Time (HH:mm:ss)\",\"Status\",\"Branch\",\"Revert\"\n"
+ "\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
+ "\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",,\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
csvPipelineData);

String fileName = CSVFileNameEnum.PIPELINE.getValue() + "-" + mockTimeStamp + ".csv";
Expand Down Expand Up @@ -286,17 +286,17 @@ void shouldConvertPipelineDataToCsvGivenTwoOrganizationsPipeline() throws IOExce

String firstLine = reader.readLine();
assertEquals(
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"yulong\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
firstLine);

String secondLine = reader.readLine();
assertEquals(
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"yulong\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
"\"Thoughtworks-Heartbeat\",\"Heartbeat\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",,\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
secondLine);

String thirdLine = reader.readLine();
assertEquals(
"\"Thoughtworks-Foxtel\",\"Heartbeat1\",\":rocket: Deploy prod\",\"true\",\"880\",\"yulong\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
"\"Thoughtworks-Foxtel\",\"Heartbeat1\",\":rocket: Deploy prod\",\"true\",\"880\",\"XXXX\",\"XXXX\",\"2023-05-08T07:18:18Z\",\"168369327000\",\"1683793037000\",,\"168369327000\",\"168369327000\",\"1684793037000\",\"8379303\",\"16837\",\"653037000\",\"passed\",\"branch\",\"\"",
thirdLine);

reader.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ void shouldGenerateCsvFile() {
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, true);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);

generateReporterService.generateDoraReport(request);

Expand All @@ -486,8 +485,7 @@ void shouldThrowErrorWhenCodeSettingIsNullButSourceControlMetricsIsNotEmpty() {
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, true);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);

try {
generateReporterService.generateDoraReport(request);
Expand Down Expand Up @@ -515,8 +513,7 @@ void shouldThrowErrorWhenBuildKiteSettingIsNullButPipelineMetricsIsNotEmpty() {
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, true);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);

try {
generateReporterService.generateDoraReport(request);
Expand Down Expand Up @@ -548,8 +545,7 @@ void shouldGenerateCsvWithPipelineReportWhenPipeLineMetricIsNotEmpty() {
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, true);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);
when(pipelineService.fetchBuildKiteInfo(request))
.thenReturn(FetchedData.BuildKiteData.builder().buildInfosList(List.of()).build());
DeploymentFrequency fakeDeploymentFrequency = DeploymentFrequency.builder().build();
Expand Down Expand Up @@ -594,8 +590,7 @@ void shouldUpdateMetricCompletedWhenGenerateCsvWithPipelineReportFailed() {
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, false);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);
when(pipelineService.fetchBuildKiteInfo(request))
.thenReturn(FetchedData.BuildKiteData.builder().buildInfosList(List.of()).build());
when(devChangeFailureRate.calculate(any())).thenThrow(new NotFoundException(""));
Expand Down Expand Up @@ -623,8 +618,7 @@ void shouldGenerateCsvWithSourceControlReportWhenSourceControlMetricIsNotEmpty()
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, true);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);
when(pipelineService.fetchGitHubData(request))
.thenReturn(FetchedData.BuildKiteData.builder().buildInfosList(List.of()).build());
LeadTimeForChanges fakeLeadTimeForChange = LeadTimeForChanges.builder().build();
Expand Down Expand Up @@ -662,8 +656,7 @@ void shouldGenerateCsvWithCachedDataWhenBuildKiteDataAlreadyExisted() {
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, true);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);
when(pipelineService.fetchGitHubData(any()))
.thenReturn(FetchedData.BuildKiteData.builder().buildInfosList(List.of()).build());
when(pipelineService.fetchBuildKiteInfo(any()))
Expand Down Expand Up @@ -701,8 +694,7 @@ void shouldUpdateMetricCompletedWhenGenerateCsvWithSourceControlReportFailed() {
doAnswer(invocation -> null).when(asyncMetricsDataHandler)
.updateMetricsDataCompletedInHandler(TIMESTAMP, MetricType.DORA, true);
List<PipelineCSVInfo> pipelineCSVInfos = List.of();
when(pipelineService.generateCSVForPipelineWithCodebase(any(), any(), any(), any(), any()))
.thenReturn(pipelineCSVInfos);
when(pipelineService.generateCSVForPipeline(any(), any(), any(), any())).thenReturn(pipelineCSVInfos);
when(pipelineService.fetchGitHubData(request)).thenReturn(
FetchedData.BuildKiteData.builder().pipelineLeadTimes(List.of()).buildInfosList(List.of()).build());
doThrow(new NotFoundException("")).when(leadTimeForChangesCalculator).calculate(any());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public static List<PipelineCSVInfo> MOCK_PIPELINE_CSV_DATA() {
.pipelineCreateTime("2023-05-10T06:17:21.844Z")
.state("passed")
.number(880)
.creator(BuildKiteBuildInfo.Creator.builder().name("XXXX").email("[email protected]").build())
.jobs(List.of(BuildKiteJob.builder()
.name(":rocket: Deploy prod")
.state("passed")
Expand Down Expand Up @@ -244,7 +243,7 @@ public static List<PipelineCSVInfo> MOCK_PIPELINE_CSV_DATA_WITHOUT_Author_NAME()
.stepName(":rocket: Deploy prod")
.buildInfo(BuildKiteBuildInfo.builder()
.commit("713b31878c756c205a6c03eac5be3ac7c7e6a227")
.creator(BuildKiteBuildInfo.Creator.builder().name(null).email("[email protected]").build())
.creator(BuildKiteBuildInfo.Creator.builder().name("XXX").email("[email protected]").build())
.pipelineCreateTime("2023-05-10T06:17:21.844Z")
.state("passed")
.number(880)
Expand Down Expand Up @@ -303,7 +302,6 @@ public static List<PipelineCSVInfo> MOCK_PIPELINE_CSV_DATA_WITH_PIPELINE_STATUS_
.pipelineCreateTime("2023-05-10T06:17:21.844Z")
.state("canceled")
.number(880)
.creator(BuildKiteBuildInfo.Creator.builder().name("XXXX").email("[email protected]").build())
.jobs(List.of(BuildKiteJob.builder()
.name(":rocket: Deploy prod")
.state("passed")
Expand Down Expand Up @@ -408,7 +406,7 @@ public static List<PipelineCSVInfo> MOCK_TWO_ORGANIZATIONS_PIPELINE_CSV_DATA() {
.finishedAt("2023-05-10T06:43:02.653Z")
.build()))
.branch("branch")
.author(BuildKiteBuildInfo.Author.builder().name("yulong").build())
.author(BuildKiteBuildInfo.Author.builder().build())
.build())
.commitInfo(CommitInfo.builder()
.commit(Commit.builder()
Expand Down Expand Up @@ -452,15 +450,14 @@ public static List<PipelineCSVInfo> MOCK_TWO_ORGANIZATIONS_PIPELINE_CSV_DATA() {
.pipelineCreateTime("2023-05-10T06:17:21.844Z")
.state("passed")
.number(880)
.creator(BuildKiteBuildInfo.Creator.builder().name("XXXX").email("[email protected]").build())
.jobs(List.of(BuildKiteJob.builder()
.name(":rocket: Deploy prod")
.state("passed")
.startedAt("2023-05-10T06:42:47.498Z")
.finishedAt("2023-05-10T06:43:02.653Z")
.build()))
.branch("branch")
.author(BuildKiteBuildInfo.Author.builder().name("yulong").build())
.author(BuildKiteBuildInfo.Author.builder().name("XXXX").build())
.build())
.commitInfo(CommitInfo.builder()
.commit(Commit.builder()
Expand Down Expand Up @@ -512,7 +509,6 @@ public static List<PipelineCSVInfo> MOCK_TWO_ORGANIZATIONS_PIPELINE_CSV_DATA() {
.finishedAt("2023-05-10T06:43:02.653Z")
.build()))
.branch("branch")
.author(BuildKiteBuildInfo.Author.builder().name("yulong").build())
.build())
.commitInfo(CommitInfo.builder()
.commit(Commit.builder()
Expand Down
Loading

0 comments on commit 9411cd9

Please sign in to comment.