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

Implement check result key, checks affect test result by default #3239

Merged
merged 35 commits into from
Oct 25, 2024

Conversation

martinhoyer
Copy link
Collaborator

@martinhoyer martinhoyer commented Sep 25, 2024

Trying to address #3185

Pull Request Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • update the specification
  • modify the json schema
  • mention the version
  • include a release note

@martinhoyer martinhoyer added status | need help Extra attention is needed status | need tests Test coverage to be added for the affected code status | need docs Documentation to be added for the affected code area | results Related to how tmt stores and shares results labels Sep 25, 2024
@martinhoyer martinhoyer self-assigned this Sep 25, 2024
@martinhoyer martinhoyer changed the title Have failure in check result propagate to the test result Implement check-result: test check failure affects test result by default Sep 26, 2024
tmt/result.py Outdated Show resolved Hide resolved
@martinhoyer
Copy link
Collaborator Author

martinhoyer commented Sep 26, 2024

Rebased to @happz's result-store-original-result #3147 and tried to use beakerlib for the first time. Feels werid to do all the assertgreps, but I've been merely following the existing examples.

Still proof of concept, but at least I finally figured that the "after-test" check were not available without the change in execute/internal.py.

@happz
Copy link
Collaborator

happz commented Sep 26, 2024

@martinhoyer if you change the base branch to the one from #3147, the diff should reduce a bit.

tmt/result.py Show resolved Hide resolved
tmt/result.py Outdated Show resolved Hide resolved
@martinhoyer
Copy link
Collaborator Author

tmt.utils.GeneralError: Test check 'dmesg' was not found in check registry.

perplexing

tmt/result.py Outdated Show resolved Hide resolved
docs/releases.rst Outdated Show resolved Hide resolved
spec/tests/check.fmf Outdated Show resolved Hide resolved
spec/tests/result.fmf Outdated Show resolved Hide resolved
tmt/result.py Outdated Show resolved Hide resolved
tmt/checks/__init__.py Outdated Show resolved Hide resolved
@psss psss added this to the 1.38 milestone Oct 1, 2024
@martinhoyer martinhoyer removed the status | need help Extra attention is needed label Oct 1, 2024
Copy link
Collaborator

@psss psss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now looks good. Thanks much for working on this!

@psss psss changed the title Implement check-result: test check failure affects test result by default Implement check result key, checks affect test result by default Oct 25, 2024
spec/tests/check.fmf Outdated Show resolved Hide resolved
Copy link
Collaborator

@thrix thrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

tmt/result.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@seberm seberm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great work Martin!

@psss psss merged commit 60c2d37 into teemtee:main Oct 25, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area | results Related to how tmt stores and shares results ci | full test Pull request is ready for the full test execution priority | must high priority, must be included in the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the check result key
7 participants