How to handle errors in different env? #8642
-
Hi everyone, bit stumped at the moment. Yesterday my github actions pipeline ran through with no errors. I merged my changes into dev and all of a sudden it failed. After a bit of back and forth I decided to rerun the old run from yesterday and it suddenly fails too on the same commit that was green at that point. A bit about the setup: I build php docker images which I run locally & also build in actions and reuse them in github actions so it should be fairly similar. I did think this might me a mac issue locally so I booted up a codespace and rector runs through fine on it too. It only gets stuck in github actions now with
I am unable to reproduce the same diff locally or in codespace using the same docker image. Unfortunately I cant really share any code but im wondering does anyone have any experience on how to best debug issues that you cant reproduce locally? I've also tried going up and down rector & phpstan versions with no luck. currently on:
My composer run script:
I dont want to simply ignore this rule because I need to try and reproduce it locally otherwise I cant trust local / pipeline results. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Could you try latest rector/rector:dev-main? - "rector/rector": "1.0.5",
+ "rector/rector": "dev-main", and verify if using dev-main fix the issue? |
Beta Was this translation helpful? Give feedback.
That probably due to autoload issue, for example, on my CodeIgniter4 module, I need to provide custom bootstrap to be loaded from rector config, by using class_exists() check
https://github.com/samsonasik/ci4-album/blob/1a9821cc086013c88ced072c3815acd3b0844b94/bootstrap.php#L17