Commit c0cba9d9 authored by Felix Freiberger's avatar Felix Freiberger
Browse files

Better error reporting for premium points.

parent d4e4009e
Pipeline #18741 passed with stages
in 1 minute and 46 seconds
type TestDictionary = {
[testKey: string]: {
name: string;
tests: number;
skipped: number;
failures: number;
errors: number;
timestamp: string;
hostname: string;
time: number;
cases: {
[caseKey: string]: {
name: string;
classname: string;
time: number;
failure: null | {
message: string;
type: string;
stacktrace: string;
}
}
},
stdout: string | null,
stderr: string | null
}
};
type TestResult = {
teamName: string;
commit: string;
......@@ -35,32 +62,9 @@ type TestResult = {
status: string
}
},
tests: {
[testKey: string]: {
name: string;
tests: number;
skipped: number;
failures: number;
errors: number;
timestamp: string;
hostname: string;
time: number;
cases: {
[caseKey: string]: {
name: string;
classname: string;
time: number;
failure: null | {
message: string;
type: string;
stacktrace: string;
}
}
},
stdout: string | null,
stderr: string | null
}
};
tests: TestDictionary;
testsSpeedMulti: TestDictionary;
testsSpeedSingle: TestDictionary;
premiumPoints: number | null;
slugMedian: number;
rocketMedian: number | null;
......@@ -103,6 +107,7 @@ export type PublicProjectResults = {
} | {
testCompleted: true;
testTimeout: boolean;
premiumPointMeasurementTimeout: boolean;
speedupMeasurementTimeout: boolean;
premiumPoints: number | null;
slug: boolean;
......
......@@ -104,7 +104,11 @@ const LeaderboardPage: React.FC<{}> = () => {
<td className="td-center">{ record.result.testCompleted && record.result.rocketSpeedup !== null ? record.result.rocketSpeedup.multiCore.toFixed(2) : "" }</td>
</Fragment>
}
<td className="td-center">{ record.result.testCompleted && record.result.premiumPoints ? record.result.premiumPoints : "" }</td>
<td className="td-center">{ record.result.testCompleted && record.result.correctness ? (
record.result.premiumPointMeasurementTimeout ? "🐌" : (
record.result.premiumPoints ? record.result.premiumPoints : ""
)
) : "" }</td>
{ record.result.testCompleted && record.result.correctness ? <td className={getTestClassNames(record.result.starship)}>{
record.result.starship ? <OverlayTrigger
placement="bottom"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment