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

Report invalid units generated during test session (bugfix) #1560

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Hook25
Copy link
Collaborator

@Hook25 Hook25 commented Oct 23, 2024

Description

Currently if a template generates a unit that is invalid, a message is logged (error for some, debug for some others) and the unit is skipped. This message is visible using Checkbox local but it burried in the Agent log in remote. This is of course sub-optimal as we have no recollection of anything happening after the fact but this can lead to tests being... not executed, without an explanation or even a way for the user to notice.

This PR moves the validation at run_job time, reporting the failure to the user with a clear text when the job would be executed with an explanation as to why the job wasn't executed. This also marks the job as failed (and the test run as failed), making the failure easier to find and to audit.

Resolved issues

Fixes: https://warthogs.atlassian.net/browse/CHECKBOX-1629

Documentation

Pending implementation approval, I think this should be mentioned in both the extended tutorial and the normal tutorial

Tests

This implements a new metabox scenario

@Hook25 Hook25 marked this pull request as draft October 24, 2024 16:06
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.

1 participant