Skip to content

Show tmt test results of component test tasks - #615

Merged
anfimovdm merged 2 commits into
AlmaLinux:masterfrom
eabdullin1:package-tests-tmt-ui
Dec 2, 2026
Merged

anfimovdm merged 2 commits into
AlmaLinux:masterfrom
eabdullin1:package-tests-tmt-ui

Conversation

@eabdullin1

@eabdullin1 eabdullin1 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

ALBS runs the tmt tests of git.almalinux.org/tests/<package> in one component test task (kind: "component") per build task, next to the test tasks of the binary packages. This PR shows these tasks and their tmt results in the UI, in the same style as the regular package tests.

Changes

Test Logs page

  • The component test task is its own row titled tmt: tests/<package>@<short commit>, linked to the commit and to the alts.yaml the results were judged by, with a status chip: passed, failed, running, queued or cancelled.
  • tmt plans are rows of the test logs table, like the ALTS stages: plan name, counters total / failed / passed / warn / skipped as buttons like the TAP counters of package_integrity_tests, and a status chip. A plan that ALTS reports with an execution error is shown as failed with the error under its name.
  • The tests of a plan are listed under it like the TAP results, with outcome, duration and log: failed ones by default, the rest via the counters.
  • Tests skipped by alts.yaml or by tmt and plans that were not run are shown as rows like the skipped package tests. Expected failures get their own chip and reason; a tmt_tests stage failure accepted by alts.yaml is shown as an expected failure too. A tests config that could not be applied is noted.
  • Search and the status filter also apply to tmt plans and tests.
  • A cancelled test task without an ALTS response no longer breaks the page; cancelled package test tasks get a "Cancelled" chip in their header row.

Build page and build feed

  • A tmt: passed / failed / running / … line under the test status of the build task shows the status of the component test task, found by the kind of the test tasks. The component task still counts in the overall test status of the build task.

Package test tasks and builds without tmt, including data from an ALBS without the new fields, look as before.

Dependencies

Requires AlmaLinux/albs-web-server#1285 (component test tasks, kind and package_tests of test tasks in the API). Merge after it.

Testing

  • Unit tests for parsing the tmt results and the build task tmt status, run by the Node.js test runner (npm test), with fixtures made from the albs-web-server samples: 42 passed.
  • npm run lint, prettier --check on the changed files and quasar build pass.
  • Checked in the browser against a mocked ALBS API built from the same samples: passed and failed tmt runs, skips and expected failures, and builds without tmt.

🤖 Generated with Claude Code

eabdullin1 and others added 2 commits November 26, 2026 15:36
ALBS runs the tmt tests of git.almalinux.org/tests/<package> in one
component test task (kind "component") per build task, next to the
test tasks of the binary packages. Every plan alts.yaml lists is
required: a failed tmt test fails the task unless the config expects
it to fail.

Test logs page:
- Show the component test task as its own row titled
  "tmt: tests/<package>@<short commit>", linked to the commit and to
  the alts.yaml the results were judged by, with its status: passed,
  failed, running, queued or cancelled.
- Show its plans as rows of the test logs table, like the ALTS
  stages: the plan name, the counters total, failed, passed, warn and
  skipped as buttons like the TAP counters, and a status chip. The
  tests of a plan are listed under it like the TAP results, with
  outcome, duration and log: the failed ones first, the others by
  their counters.
- Show the tests skipped by alts.yaml or by tmt and the excluded
  plans as rows like the skipped package tests; expected failures get
  their own chip and reason. Note a tests config that could not be
  used.

Build page and build feed:
- Show the status of the component test task as a "tmt: ..." line
  under the test status of the build task, from the kind of the test
  tasks. The component task still counts in the test status of the
  build task.

Package test tasks and builds without tmt, also from an ALBS without
these fields, look as before.

Add unit tests run by the Node.js test runner (npm test) with
fixtures made of the samples of albs-web-server.
Keep rendering later test tasks when a cancelled RPM task has no
ALTS response. Show skipped tmt stages from the nested result and
display the reason when ALBS accepts a tmt stage failure.

Show plan execution errors as failed even when no tests ran, and
keep the No Tests status for empty plans. Cover these ALTS result
shapes with regression tests.
@eabdullin1 eabdullin1 changed the title Package tests tmt UI Show tmt test results of component test tasks Dec 1, 2026
@anfimovdm
anfimovdm merged commit 7edbe32 into AlmaLinux:master Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants