Skip to content
New issue

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

Display Artillery Load Test errors #712

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions ui/src/containers/ArtilleryReport.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
};

let atrFull = [];
let atrError;
const getAtrFull = async (path) => {
await fetch(`${CONSTS.BlobURL}/atr/${path}.json`)
.then((x) => x.json())
.then((res) => {
atrError = res.aggregate.errors;

res.intermediate.forEach((i) => {
atrFull.push({
fullTimestamp: i.timestamp,
Expand All @@ -36,7 +39,7 @@
});
});
});
return atrFull;
return {atrFull, atrError};
};

let getAtrData = getAtrFull(currentRoute.namedParams.id);
Expand Down Expand Up @@ -76,11 +79,26 @@

{#await getAtrData}
<LoadingFlat />
{:then atrFull}
<ArtilleryChart value={atrFull} />
{/await}
{:then atrData}
<ArtilleryChart value={atrData.atrFull} />

<ArtilleryDetailTable value={data} />

<ArtilleryDetailTable value={data} />
<div class="font-bold">
Errors
</div>
{#if Object.keys(atrData.atrError).length > 0}
<div class="textred">
<i class="fas fa-x"></i>
{`${Object.keys(atrData.atrError)} : ${Object.values(atrData.atrError)}`}
</div>
{:else}
<div class="text-green-500">
<i class="fas fa-check"></i>
Test completed without network or OS errors
</div>
{/if}
{/await}
{:else}
<div class="mb-6 text-center text-xl py-8">
<Icon cssClass="text-yellow-800 inline-block">
Expand Down