Skip to content

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Nov 21, 2018

Description (*)

Just some cleanup to remove "a few" unused class imports.

Fixed Issues (if relevant)

  1. n/a

Manual testing scenarios (*)

  1. n/a

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/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @sreichel. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @sreichel , I reviewed several randomly selected files and found an issue. Please see the review comment.

@@ -8,7 +8,6 @@

use Magento\Mtf\Fixture\FixtureInterface;
use Magento\Mtf\Handler\Curl as AbstractCurl;
use Magento\Mtf\Util\Protocol\CurlTransport;
Copy link
Member

Choose a reason for hiding this comment

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

CurlTransport is used in this class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please see answer below ... this class does not exist.

@sivaschenko
Copy link
Member

Thanks for the contribution, @sreichel ! Please see the review notes. Also, it would be great if you can keep the number of files updated by such kind of pull requests lower (maybe splitting between several pull requests), as it's hard to properly review and I experience performance issues on github while viewing the code changes. :)

@sreichel
Copy link
Contributor Author

sreichel commented Nov 21, 2018

@sivaschenko I'll split it next time.

I'm on nearly latest M2.3-dev, but there is no CurlTransport class in code.

snip-missing-class

See: https://github.com/magento/magento2/tree/2.3-develop/dev/tests/functional/lib/Magento/Mtf/Util

@sivaschenko
Copy link
Member

@sreichel you are missing the MTF installation. Please navigate to dev/tests/functional/ and run composer install

@sreichel
Copy link
Contributor Author

@sivaschenko sorry for confusion. I was on wrong branch ...

@sreichel
Copy link
Contributor Author

@sivaschenko completly missed MTF ... i'll fix tomorrow.

@orlangur orlangur self-assigned this Nov 22, 2018
Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

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

Hi @sreichel,

We already faced with similar contribution a bunch of times. It does not make sense without a proper static test implemented similar to testCodeStyle which involves php-cs-fixer.

Please implement such test, without it we unfortunately cannot accept such PR.

@sivaschenko
Copy link
Member

@orlangur it looks like you already faced this question, can you please provide some guidance, you are aware of, on how to create such test (maybe at least entry points where to place it in the code), any suggestions or recommendations. It will be very helpful and I believe it will speed up the contribution. Thanks!

@orlangur
Copy link
Contributor

@sreichel
Copy link
Contributor Author

@orlangur as @sivaschenko said, some guidance would be helpfull. I've no idea how to include testCodeStyle into this PR.

@orlangur
Copy link
Contributor

@sreichel testCodeStyle is similar test involving phpcs. Check how it is implemented and create a similar test involving php-cs-fixer (which is able to remove unused imports automatically).

@orlangur
Copy link
Contributor

Closing due to inactivity. Feel free to reach me out anytime later if you wish to continue work on this pull request and it will be reopened.
Thanks for collaboration!

@orlangur orlangur closed this Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants