-
Notifications
You must be signed in to change notification settings - Fork 57
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
Fix path in CLI output #615
base: trunk
Are you sure you want to change the base?
Conversation
@swissspidy Could this be issue of Docker or something? Any idea? |
d985c02
to
06009d0
Compare
06009d0
to
647d1e3
Compare
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Just noticed that this happens only for those coming from |
Note that these tests don't run in Docker. None of the Behat tests are failing for me locally.
OK so what I notice from this screenshot is that you are inside Strangely, I can reproduce that. When I am in the root folder of the WP install, I get:
In this scenario, But when I
Now, From what I can see, the problem is here: plugin-check/includes/Checker/Abstract_Check_Runner.php Lines 549 to 557 in 9d72214
When you are inside Hence you get the full paths not the relative ones. To fix this, we could change the logic in
|
@swissspidy I have updated the PR with your suggestion. This PR does not particularly fix the issue I am having but this will surely make conditional check more robust. So it would be good to merge I believe. |
Could you maybe elaborate a bit more on the problem you're seeing and how to reproduce it? |
Like I mentioned earlier in the first comment, For an addon, I am parsing the STDOUT of the |
OK I see it now. For checking a remote ZIP file we are using a location within On Mac, So in As you can see in my attempts above, Maybe you wanna take it from here? |
@swissspidy Are we supposed to have |
|
|
Behat tests are passing and Unit tests are failing due to above mentioned issue. But this is good sign as it shows it will work. We just need to find alternate way for writing Unit tests. |
@ernilambar Seems like this one is super close. Maybe something for 1.2.0 even? |
|
||
$this->main_file = $this->main_file; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debugging leftover?
I could not make all tests pass to finalize the PR. |
In PHPCS runner file name is like this:
Plugin path is:
So, with
str_replace( $result->plugin()->path(), '', $file ),
, filename becomes/privatefoo-bar-wp.php
That is why, Behat test is failing locally. Strangely not in GH Action.