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

Magento#25739: fixed issue "grunt clean does not clean generated folder" #25765

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

andrewbess
Copy link
Contributor

Description (*)

Fixed issue when the command grunt clean didn't clean the directory "generated/"

Fixed Issues (if relevant)

  1. grunt clean does not clean generated folder #25739: grunt clean does not clean generated folder

Manual testing scenarios (*)

  1. Install magento 2.3.x
  2. Install and set up Grunt following to devdocs documentation
  3. Enable "Production" mode
  4. Use command grunt clean after command bin/magento setup:di:compile
  5. Expected result
  • the directory generated/code should be empty
  • the directory generated/metadata should be empty

Questions or comments

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 are green)

- added paths to directory "generated/"
- fixed clean options
@m2-assistant
Copy link

m2-assistant bot commented Nov 26, 2019

Hi @andrewbess. 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 give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@magento-engcom-team magento-engcom-team added Release Line: 2.3 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner labels Nov 26, 2019
@Stepa4man Stepa4man self-assigned this Nov 27, 2019
Copy link
Contributor

@Stepa4man Stepa4man left a comment

Choose a reason for hiding this comment

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

Hi @andrewbess
Thanks for your contribution

@magento-engcom-team
Copy link
Contributor

Hi @Stepa4man, thank you for the review.
ENGCOM-6344 has been created to process this Pull Request
✳️ @Stepa4man, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@Stepa4man Stepa4man added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Nov 27, 2019
@engcom-Alfa engcom-Alfa self-assigned this Nov 28, 2019
@engcom-Alfa
Copy link
Contributor

Hi @andrewbess .
Due to Magento Definition of Done all code must be covered by tests. Please cover your fix by automated tests.
Thanks!

@andrewbess
Copy link
Contributor Author

Hi @andrewbess .
Due to Magento Definition of Done all code must be covered by tests. Please cover your fix by automated tests.
Thanks!

Hello @engcom-Alfa
Ok.
I don't see, that "grunt" is covered tests at this moment, but I can try to do it.
Maybe should it have label Auto-Tests: Not Required?

@rogyar
Copy link
Contributor

rogyar commented Dec 4, 2019

Hi @Stepa4man.

I'm not sure about an optimistic way to cover this particular change with an autotest somehow. In some cases, we can create an integration test that will test files generation and similar operations. But in this case, we need to test a 3rd party application that doesn't go with Magento out of the box. So, we need to introduce a new flow for the CI system that will install nodeJs + grunt and test the result of grunt clean invocation.
So, I would recommend Auto Test: Not Required label here. Or, perhaps you have some thoughts on how we can handle the autotests coverage.

Thank you.

@Stepa4man Stepa4man added Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Dec 4, 2019
@Stepa4man
Copy link
Contributor

Hi @Stepa4man.

I'm not sure about an optimistic way to cover this particular change with an autotest somehow. In some cases, we can create an integration test that will test files generation and similar operations. But in this case, we need to test a 3rd party application that doesn't go with Magento out of the box. So, we need to introduce a new flow for the CI system that will install nodeJs + grunt and test the result of grunt clean invocation.
So, I would recommend Auto Test: Not Required label here. Or, perhaps you have some thoughts on how we can handle the autotests coverage.

Thank you.

@rogyar Thanks for the recommendation. I have changed the label.

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Actual Result: (with fix)
25765

@ghost ghost added the Progress: accept label Dec 5, 2019
@sidolov sidolov changed the base branch from 2.3-develop to 2.4-develop December 5, 2019 17:12
@magento-engcom-team magento-engcom-team merged commit b9ef877 into magento:2.4-develop Dec 9, 2019
@m2-assistant
Copy link

m2-assistant bot commented Dec 9, 2019

Hi @andrewbess, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@andrewbess andrewbess deleted the issue-25739 branch October 28, 2020 09:58
@tuna2smc
Copy link
Contributor

just curious why we need clean generated folder with grunt. From frontend works i think we don't need touch to generated folder

@tuna2smc
Copy link
Contributor

From backend works. I think we can use command rm -r generated/* then re-run di compilation

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants