Skip to content

Commit 7a20dd1

Browse files
fix(ci, observability): write slowest charts to tmp charts
Use tmp/charts as the local and CI output directory for generated slowest-specs PNG artifacts. Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent 8d61c98 commit 7a20dd1

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/scripts/js/e2e/report/render-slowest-for-describe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function availableDescribes(specTimings) {
9292
async function renderSlowestForDescribe({
9393
jsonPath,
9494
describe,
95-
outDir = "tmp/test-ci/report/out",
95+
outDir = "tmp",
9696
storage,
9797
}) {
9898
if (!jsonPath) {
@@ -147,7 +147,7 @@ async function main() {
147147
const args = parseArgs(process.argv.slice(2));
148148
if (args.help) {
149149
console.log(
150-
"Usage: node .github/scripts/js/e2e/report/render-slowest-for-describe.js --json <report.json> --describe <Describe> [--out-dir <dir>] [--storage <name>]"
150+
"Usage: node .github/scripts/js/e2e/report/render-slowest-for-describe.js --json <report.json> --describe <Describe> [--out-dir tmp] [--storage <name>]"
151151
);
152152
return;
153153
}

.github/scripts/js/e2e/report/render-top-describes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function readReport(jsonPath) {
7070
async function renderTopDescribesForCluster({
7171
jsonPath,
7272
storage,
73-
outDir = "tmp/ci-report/out",
73+
outDir = "tmp",
7474
topN = 5,
7575
}) {
7676
const report = readReport(jsonPath);
@@ -96,7 +96,7 @@ async function renderTopDescribesForCluster({
9696
async function renderTopDescribes({
9797
core = console,
9898
reportsDir = "downloaded-artifacts",
99-
outDir = "tmp/ci-report/out",
99+
outDir = "tmp",
100100
topN = 5,
101101
} = {}) {
102102
const reportFiles = listMatchingFiles(reportsDir, REPORT_FILE_PATTERN);
@@ -131,7 +131,7 @@ async function main() {
131131
const args = parseArgs(process.argv.slice(2));
132132
if (args.help) {
133133
console.log(
134-
"Usage: node .github/scripts/js/e2e/report/render-top-describes.js [--reports-dir downloaded-artifacts] [--out-dir tmp/ci-report/out] [--top-n 5]"
134+
"Usage: node .github/scripts/js/e2e/report/render-top-describes.js [--reports-dir downloaded-artifacts] [--out-dir tmp] [--top-n 5]"
135135
);
136136
return;
137137
}

.github/workflows/e2e-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,5 +528,5 @@ jobs:
528528
uses: actions/upload-artifact@v4
529529
with:
530530
name: e2e-report-slowest-by-describe
531-
path: tmp/ci-report/out/charts/
531+
path: tmp/charts/
532532
if-no-files-found: warn

Taskfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tasks:
5656
vars:
5757
JSON: '{{.JSON | default ""}}'
5858
DESCRIBE: '{{.DESCRIBE | default ""}}'
59-
OUT_DIR: '{{.OUT_DIR | default "tmp/test-ci/report/out"}}'
59+
OUT_DIR: '{{.OUT_DIR | default "tmp"}}'
6060
cmds:
6161
- test -n "{{.JSON}}" || (echo "JSON=... is required"; exit 1)
6262
- test -n "{{.DESCRIBE}}" || (echo "DESCRIBE=... is required"; exit 1)
@@ -70,7 +70,7 @@ tasks:
7070
silent: true
7171
vars:
7272
REPORTS_DIR: '{{.REPORTS_DIR | default "tmp/test-ci/report/out"}}'
73-
OUT_DIR: '{{.OUT_DIR | default "tmp/test-ci/report/out"}}'
73+
OUT_DIR: '{{.OUT_DIR | default "tmp"}}'
7474
TOP_N: "{{.TOP_N | default 5}}"
7575
cmds:
7676
- mkdir -p "{{.OUT_DIR}}" "{{.REPORTS_DIR}}"

0 commit comments

Comments
 (0)