Repository navigation
Show tmt test results of component test tasks - #615
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
tmt: tests/<package>@<short commit>, linked to the commit and to thealts.yamlthe results were judged by, with a status chip: passed, failed, running, queued or cancelled.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.alts.yamlor 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; atmt_testsstage failure accepted byalts.yamlis shown as an expected failure too. A tests config that could not be applied is noted.Build page and build feed
tmt: passed / failed / running / …line under the test status of the build task shows the status of the component test task, found by thekindof 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,
kindandpackage_testsof test tasks in the API). Merge after it.Testing
npm test), with fixtures made from the albs-web-server samples: 42 passed.npm run lint,prettier --checkon the changed files andquasar buildpass.🤖 Generated with Claude Code