We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the specification described in epic #1727 add abstraction and implementation for the following part of the data layer:
ftl/data/TestMatrix.kt
val refreshTestMatrix: TestMatrix.Refresh get() = TODO() val cancelTestMatrix: TestMatrix.Cancel get() = TODO() val fetchTestMatrixSummary: TestMatrix.Summary.Fetch get() = TODO() object TestMatrix { data class Result( val runPath: String, val map: Map<String, Data>, ) data class Data( val matrixId: String = "", val state: String = "", val gcsPath: String = "", val webLink: String = "", val downloaded: Boolean = false, val billableMinutes: BillableMinutes = BillableMinutes(), val clientDetails: Map<String, String>? = null, val gcsPathWithoutRootBucket: String = "", val gcsRootBucket: String = "", val webLinkWithoutExecutionDetails: String? = "", val axes: List<Outcome> = emptyList() ) data class Outcome( val device: String = "", val outcome: String = "", val details: String = "", val suiteOverview: SuiteOverview = SuiteOverview() ) data class SuiteOverview( val total: Int = 0, val errors: Int = 0, val failures: Int = 0, val flakes: Int = 0, val skipped: Int = 0, val elapsedTime: Double = 0.0, val overheadTime: Double = 0.0 ) data class BillableMinutes( val virtual: Long = 0, val physical: Long = 0 ) data class Summary( val billableMinutes: BillableMinutes, val axes: List<Outcome>, ) { data class Identity( val projectId: String, val historyId: String, val executionId: String, ) interface Fetch : (Identity) -> Summary } data class Identity( val matrixId: String, val projectId: String, ) interface Cancel : (Identity) -> Unit interface Refresh : (Identity) -> Data }
SavedMatrix
TestOutcome
TestSuiteOverviewData
MatrixMap
CancelCommand
cancelLastRun
cancelMatrices
GcTestMatrix/cancel
RefreshCommand
refreshLastRun
refreshMatrices
GcTestMatrix/refresh
SavedMatrix/updateWithMatrix
SavedMatrix/updatedSavedMatrix
TestMatrix/fetchTestOutcomeContext
newTestRun
pollMatrices
matrixChangesFlow
Iterable<TestMatrix>/updateMatrixMap
ReportManager/generate
ReportManager/parseTestSuite
refreshMatricesAndGetExecutions
refreshTestMatrices
ftl/adapter/GoogleTestMatrixCancel.kt ftl/adapter/GoogleTestMatrixRefresh.kt
ftl/adapter/GoogleTestMatrixCancel.kt
ftl/adapter/GoogleTestMatrixRefresh.kt
The text was updated successfully, but these errors were encountered:
refactor: Data scratch - test matrix (#1901)
66e796c
Fixes #1756 ## Test Plan > How do we know the code works? * All tests pass * Flank works as before ## Checklist - [X] Unit tests updated
adamfilipow92
piotradamczyk5
Successfully merging a pull request may close this issue.
Plan
According to the specification described in epic #1727
add abstraction and implementation for the following part of the data layer:
Abstraction
ftl/data/TestMatrix.kt
Target
SavedMatrix
TestOutcome
TestSuiteOverviewData
MatrixMap
CancelCommand
->cancelLastRun
->cancelMatrices
->GcTestMatrix/cancel
RefreshCommand
->refreshLastRun
refreshMatrices
GcTestMatrix/refresh
SavedMatrix/updateWithMatrix
->SavedMatrix/updatedSavedMatrix
->TestMatrix/fetchTestOutcomeContext
newTestRun
pollMatrices
->matrixChangesFlow
->GcTestMatrix/refresh
Iterable<TestMatrix>/updateMatrixMap
->SavedMatrix/updateWithMatrix
->TestMatrix/fetchTestOutcomeContext
ReportManager/generate
ReportManager/parseTestSuite
refreshMatricesAndGetExecutions
->refreshTestMatrices
->GcTestMatrix/refresh
Adapter
ftl/adapter/GoogleTestMatrixCancel.kt
ftl/adapter/GoogleTestMatrixRefresh.kt
The text was updated successfully, but these errors were encountered: