-
Notifications
You must be signed in to change notification settings - Fork 133
MQE-1279: MFTF will not output any test results if instance respondes… #243
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
Conversation
if (empty($this->config['url']) || empty($this->config['username']) || empty($this->config['password'])) { | ||
return; | ||
} | ||
try { |
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.
Changes don't really help the root issue. In the build, this will still cause a silent failure, as this is run before the entire suite (or test), meaning no failure artifacts are recorded at all.
I tried removing this file from functional.suite.yml
and found that it solves the issue entirely; the magento instance is unavailable but the test starts properly and fails naturally due to the instance being in maintenance mode.
Can we remove the reference to MagentoRestDriver
from functional.suite.yml
entirely? I think this is old unused code.
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.
I disabled MagentoRestDriver
, run functional test builds and it looks fine.
Although it does not make sense for silent failure in Jenkins as an exception is thrown either from Codeception or MFTF framework. Still Jenkins pipeline issue?
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.
Jenkins runs codecept run
statements with || true
, meaning it never uses the codeception exit code (or the MagentoRestDriver
exception in this case) to determine failure, it only uses existance of test artifacts.
… with 503 - Disabled MagentoRestDriver
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.
Change looks good and works, but I think the last thing we should do is remove MagentoRestDriver.php
from the codebase (to not keep dead code around).
… with 503 - Removed outdated MagentoRestDriver.php
… with 503
Description
Fixed Issues (if relevant)
Contribution checklist