Skip to content

Conversation

jilu1
Copy link
Contributor

@jilu1 jilu1 commented Oct 3, 2018

… with 503

  • fix error handling to simplify stack trace

Description

Fixed Issues (if relevant)

  1. magento/magento2-functional-testing-framework#<issue_number>: Issue title
  2. ...

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/verification tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)
  • Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests

@coveralls
Copy link

coveralls commented Oct 3, 2018

Coverage Status

Coverage increased (+0.008%) to 57.4% when pulling 4ed8b0a on MQE-1279 into bf7ea22 on develop.

if (empty($this->config['url']) || empty($this->config['username']) || empty($this->config['password'])) {
return;
}
try {
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

@KevinBKozan KevinBKozan Oct 18, 2018

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.

Copy link
Contributor

@KevinBKozan KevinBKozan left a 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).

@magento-engcom-team magento-engcom-team deleted the MQE-1279 branch November 9, 2018 11:28
@VladimirZaets VladimirZaets restored the MQE-1279 branch November 9, 2018 14:01
@VladimirZaets VladimirZaets reopened this Nov 9, 2018
@jilu1 jilu1 merged commit 584082c into develop Nov 14, 2018
@jilu1 jilu1 deleted the MQE-1279 branch November 14, 2018 19:13
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.

5 participants