Open tienvx opened 4 months ago
Switch from powershell
to bash
and I can see an extra error line below:
Script phpunit --no-coverage handling the test event returned with error code -1073741819
D:\a\_temp\ad6416d5-3f24-46c4-b4ed-876eaa522037.sh: line 1: 1826 Segmentation fault composer test
Error: Process completed with exit code 139.
The number 1826
is not fixed. It look like a random number
I have a work around for this: Run tests in different jobs for Windows on Github Actions.
Looks like there is some issue on Windows with the integration tests as well. They are taking over 5 mins each to run.
running 1 test
test repeated_enum_test has been running for over 60 seconds
test repeated_enum_test ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 610.03s
Running tests\mock_server_tests.rs (target\debug\deps\mock_server_tests-cac5d069ab2d137b.exe)
running 2 tests
test mock_server_with_no_requests ... ok
test each_value_matcher has been running for over 60 seconds
test each_value_matcher ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 610.04s
This error happen to csv
plugin as well recently, quite frequently. If it's not related, I can create new ticket for it on pact-foundation/pact-plugins
repo.
This error only happen on Windows, randomly, when testing consumer (a gRPC mock server is started and a request is made to that server):
According to this comment, the error code
-1073741819
is anaccess violation
.I only guess it's gRPC mock server. I'm not sure
PHPUnit reported that test is OK, so I assume this error code is not coming from PHP side
Nothing's suspicious in the log log.txt
There are no big different between failed test's log and passed test's log
All logs from protobuf plugin (
C:\\Users\\runneradmin\\.pact/plugins\\protobuf-0.3.13\\log
) are empty, so it doesn't provide any useful information (I think it's an issue, because it happen on linux and mac too) protobuf-plugin-log-windows-8.3-lowest.zipIt did appear once on my local Windows machine (not just Github Actions)
Information: