Skip to content

[Rector] Testing Rector dev-main#7918

Closed
samsonasik wants to merge 1 commit intocodeigniter4:developfrom
samsonasik:test-rector-dev-main-2
Closed

[Rector] Testing Rector dev-main#7918
samsonasik wants to merge 1 commit intocodeigniter4:developfrom
samsonasik:test-rector-dev-main-2

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Description

Hi @kenjis @paulbalandan could you test the rector/rector:dev-main with clean up parallel config below and verify if the performance drawback resolved without setting $jobSize config in the parallel() config below?

If that works, we can remove passing arguments in the parallel() config in next rector release.

Current rector dev-main changed the parallel process by @staabm . I mention you here so you can have fast feedback here in case we found a different use case.

Thank you.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@kenjis
Copy link
Copy Markdown
Member

kenjis commented Sep 11, 2023

It seems no problem.

(test-rector-dev-main-2 $)$ time vendor/bin/rector 
 821/821 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

                                                                                                                        
 [OK] Rector is done!                                                                                                   
                                                                                                                        


real    6m1.921s
user    12m38.855s
sys     0m30.725s

@paulbalandan
Copy link
Copy Markdown
Member

I still could not test because of the issue in space in path. Sorry.

PHPUnitSetList::PHPUNIT_100,
]);

$rectorConfig->parallel(240, 8, 1);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

btw: I can't make sense of a jobsize of 1. this should be pretty inefficient. nice its gone with this PR :)

@samsonasik
Copy link
Copy Markdown
Member Author

Thanks all 👍 , I will update the config on next dependabot PR for new rector release 👍

@samsonasik samsonasik closed this Sep 13, 2023
@samsonasik samsonasik deleted the test-rector-dev-main-2 branch September 13, 2023 09:02
@staabm
Copy link
Copy Markdown

staabm commented Sep 13, 2023

Fyi - on my machine the new release is 20-25% faster in my codeigniter tests in comparison to 0.18.2 (with the suggested changes in parallel parameters)

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.

4 participants