-
Notifications
You must be signed in to change notification settings - Fork 292
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
Get the 'tests' task working again #1975
Conversation
Signed-off-by: Zack Cerza <[email protected]>
b38bb95
to
f6db3b7
Compare
This task has been broken for a very long time. It hasn't passed in years, and has additionally been masking test failures including some regressions. This commit: * Fixes masking of failures in setup/teardown methods * Actually runs all of our tests * Excludes tests that need remote nodes when they are not available * Improves logging and reporting * Adds support for running in CLI mode Signed-off-by: Zack Cerza <[email protected]>
Scheduled jobs are failing because they try to write to /home/ansible.log. Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Partially enabled by not passing MappingProxyType to it any longer. Signed-off-by: Zack Cerza <[email protected]>
This reflects reality and also fixes some linter errors. Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
@VallariAg ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Sorry for the late review!
def __init__(self, ctx=None, config=None): | ||
def __init__(self, ctx, config=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious - why did we remove the default param value of "None" here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question! This was to fix the pyright error reportOptionalMemberAccess
resulting from things like references to self.ctx.archive
in teuthology.task.Ansible
. The Task
class was never really intended to be used without the ctx
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error messages like 'foo' is not a known member of 'None'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh I see, thank you for the explanation! :)
The 'tests' task had been broken for a very long time. It hasn't passed in years, and
had additionally been masking test failures including some regressions.
This PR:
Signed-off-by: Zack Cerza [email protected]