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
Different results with similar setup in different environments #2758
Comments
Do you have the same issue on last stable? On master, there was a feature #2715 that reads composer file to set php version. If you switched to global install, maybe it doesn't read the same value on both? |
@orklah Thanks for your time.
Updating the issue description with this extra infos. |
@fkupper are those errors that CircleCI reports suppressed via the baseline? |
@weirdan No. Just some more info: I have updated my baseline to run with version 3.8.3 of psalm and tried again homestead env VS CircleCI and the same happened. Just to be more specific, running psalm with the same arguments but providing one specific file that is generating the divergent output, I get this: Homestead
CircleCI
So it is interesting to see that they both report the same count of Finally, if I run both again but with So my conclusion is that it has nothing to do with the baseline. |
Do |
@weirdan After melting my mind with this, I have just deleted everything and spun up my environment again and indeed, some libraries were on slightly different versions. I think that running Thanks to everyone and sorry if I have wasted your time anyway. |
I am running psalm on my project as a composer dev dependency on my machine in a VM provided by Homestead and I also run it on circleci on every push.
Since I have introduced it to this project not long ago and there is a lot of legacy code, I have decided to use a baseline file.
All was working fine until I stopped using it as a composer dev (version 3.0.2) dependency and moved it to a global composer install (version dev-master). The reason for this was because I was having conflicts with other libraries I use and the latest version of PSALM was not compatible, and that is fixable by running it globally since I have no other global dependency.
I have updated my baseline file for the latest version of PSALM as it was complaining about new errors and all was good, but running it on circleci yields different results from my dev environment.
This is my config file:
I am running PSALM with the following options:
CircleCI output
Dev environment output
What I have already checked
PHP version is the same
CircleCI
Dev environment
PSALM version is the same
CircleCI
Dev environment
PSALM is using the same baseline file
PSALM is using the same config file
Running with
--no-cache
outputs the same resultsTested with version 3.8.3, same issue.
Tested with dev-master using
phpVersion="7.3"
, same issueWhat else should I check? I am really lost now.
Solved
Local environment and circleci's vendor folder were out of sync.
The text was updated successfully, but these errors were encountered: