Skip to content

Commit

Permalink
Moving the file test target list implementation into script bg corout…
Browse files Browse the repository at this point in the history
…ine dispatcher
  • Loading branch information
Rd4dev committed Jul 19, 2024
1 parent 446a916 commit b46708d
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,21 @@ fun main(args: Array<String>) {
CommandExecutorImpl(
scriptBgDispatcher, processTimeout = 5, processTimeoutUnit = TimeUnit.MINUTES
)
}

val bazelClient = BazelClient(rootDirectory, commandExecutor)
val bazelClient = BazelClient(rootDirectory, commandExecutor)

val changedFilesBucket =
ChangedFilesBucket.getDefaultInstance().mergeFromCompressedBase64(protoBase64)
bucketNameOutputFile.printWriter().use { writer ->
writer.println(changedFilesBucket.cacheBucketName)
}
val changedFilesBucket =
ChangedFilesBucket.getDefaultInstance().mergeFromCompressedBase64(protoBase64)
bucketNameOutputFile.printWriter().use { writer ->
writer.println(changedFilesBucket.cacheBucketName)
}

val changedFilesTestTargets = bazelClient.retrieveBazelTargets(changedFilesBucket.changedFilesList)
println("Changed Files Test Targets: $changedFilesTestTargets")

val changedFilesTestTargets = bazelClient.retrieveBazelTargets(changedFilesBucket.changedFilesList)
println("Changed Files Test Targets: $changedFilesTestTargets")
fileTestTargetsListOutputFile.printWriter().use { writer ->
writer.println(changedFilesTestTargets.joinToString(separator = " "))
}

fileTestTargetsListOutputFile.printWriter().use { writer ->
writer.println(changedFilesTestTargets.joinToString(separator = " "))
}
}

0 comments on commit b46708d

Please sign in to comment.