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

[Scoped] Add e2e define constant error on php 7.x #1139

Merged
merged 5 commits into from
Nov 4, 2021

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Nov 4, 2021

@TomasVotruba this is e2e test for scoped with define constant like in rectorphp/rector#6779 (comment)

https://github.com/samsonasik/rector-issue-php74/blob/0b470358cb120f0f452b1bd55885d64edd6cbbd1/src/Test.php#L3-L5

if (! defined('APPPATH')) {
    define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
}

Github action that show the error on php 7.4:

https://github.com/samsonasik/rector-issue-php74/runs/4097757321?check_suite_focus=true#step:5:6

This should error on scoped build at rector/rector if merged.

@samsonasik samsonasik changed the title [Scoped] Add e2e define constant [Scoped] Add e2e define constant error on php 7.x Nov 4, 2021
@TomasVotruba
Copy link
Member

Looks good. It should be failing here, right?

@samsonasik
Copy link
Member Author

samsonasik commented Nov 4, 2021

No, it will only fail on "rector/rector" with php 7.x only after it merged and pushed to rector/rector:

https://github.com/rectorphp/rector/blob/8db8a4be7b606e491ba74f706965b946f7c9c9e8/.github/workflows/e2e.yaml#L18

should it be merged to test?

@TomasVotruba
Copy link
Member

Ah, I see. In that case we'll merge it first then.

It would be better to have this feedback as soon as possible. The downgrade build takes too much time to test it effectively now. Maybe we!ll should focus on parallel run.

@samsonasik
Copy link
Member Author

Ok, I am merging it, for scoped process, currently stopped as code "137"

https://github.com/rectorphp/rector-src/runs/4104416921?check_suite_focus=true#step:9:15037

which means memory is not enough on CI.

It runs ok on my local dev. I will try to split long listed directory at :

'vendor/symplify vendor/nikic vendor/ssch bin src packages rector.php',

and try locally first to see if that works to reduce memory usage on build scoped.

@samsonasik samsonasik merged commit 444cbd2 into main Nov 4, 2021
@samsonasik samsonasik deleted the e2e-define-constant branch November 4, 2021 12:40
@samsonasik
Copy link
Member Author

the e2e/define-constant is displayed error on:

https://github.com/rectorphp/rector/runs/4106986477?check_suite_focus=true#step:5:7

for PHP 7.x

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.

3 participants