Skip to content

Commit b284888

Browse files
authored
Nightly: Fix history in Dashboard (#71493)
1 parent b724d94 commit b284888

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/nightly.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ env:
4848
jobs:
4949
su_repl_tests_linux_build:
5050
name: REPL Tests - Linux Software Update (BUILD)
51-
if: |
52-
github.actor != 'restyled-io[bot]' &&
53-
(github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
51+
if: github.actor != 'restyled-io[bot]'
5452
env:
5553
BUILD_VARIANT: ipv6only-no-ble-no-wifi
5654
DISABLE_CCACHE: ${{ (github.event_name == 'workflow_dispatch' && inputs.disable_ccache == 'true') && 'true' || (contains(github.event.head_commit.message, '[no-ccache]') && 'true') || 'false' }}
@@ -272,26 +270,28 @@ jobs:
272270
detailed_summary: true
273271
require_tests: false
274272

275-
- name: Load Allure test report history
276-
uses: actions/cache@v5
273+
- name: Checkout gh-pages for Allure history
274+
uses: actions/checkout@v6
277275
with:
278-
path: allure-history
279-
key: allure-history-su-repl-${{ github.run_number }}
280-
restore-keys: |
281-
allure-history-su-repl-
276+
ref: gh-pages
277+
path: gh-pages
282278

283279
- name: Generate Allure Report
284280
uses: simple-elf/allure-report-action@v1.13
285281
with:
286282
allure_results: junit-results
287283
allure_report: allure-report
284+
gh_pages: gh-pages
288285
allure_history: allure-history
289-
keep_reports: 30
286+
subfolder: allure-report/nightly
287+
keep_reports: 120
288+
# This is the name that will show up in the Dashboard Overview
289+
report_name: "Nightly CI Tests"
290290

291291
- name: Upload Allure Report
292292
uses: actions/upload-artifact@v7
293293
with:
294-
name: allure-report-su-repl
294+
name: allure-report-nightly
295295
path: allure-report
296296
retention-days: 30
297297
if-no-files-found: warn
@@ -301,6 +301,6 @@ jobs:
301301
uses: peaceiris/actions-gh-pages@v4
302302
with:
303303
github_token: ${{ secrets.GITHUB_TOKEN }}
304-
publish_dir: allure-report
305-
destination_dir: allure-report
304+
publish_dir: allure-history/allure-report/nightly
305+
destination_dir: allure-report/nightly
306306
keep_files: true

src/python_testing/execute_python_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def write_junit_xml(self, suite_name: str, path: Path) -> None:
8080
"skipped": str(skipped),
8181
"errors": "0",
8282
"time": f"{total_time:.3f}",
83+
"timestamp": self.run_timestamp.strftime("%Y-%m-%dT%H:%M:%S"),
8384
})
8485

8586
for r in self.results:

0 commit comments

Comments
 (0)