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

process exit error #69

Open
Buffele opened this issue Jul 29, 2024 · 14 comments
Open

process exit error #69

Buffele opened this issue Jul 29, 2024 · 14 comments

Comments

@Buffele
Copy link

Buffele commented Jul 29, 2024

My yml is as follows:

      - name: Run Tests
        uses: php-actions/phpunit@master
        with:
          version: "11.2.8"
          php_version: "8.3"
          php_extensions: "gd mysqli sockets imagick ssh2"
          bootstrap: "app/autoload.php"
          configuration: "tests/phpunit.xml"

Getting the following error since today:

Run php-actions/phpunit@master
  with:
    version: 11.2.8
    php_version: 8.3
    php_extensions: gd mysqli sockets imagick ssh2
    bootstrap: app/autoload.php
    configuration: tests/phpunit.xml
Run set -e
Error: Process completed with exit code 1.

Previously everything was running fine and I didn't touch anything regarding github actions, the .yml file or phpunit configuration or tests.

Any ideas?

@jorycadence
Copy link

Same here, our GH Action has been in place for months. It started failing for us this morning with no changes.

This has happened to us one other time and the issue resolved itself after a few hours.

I am not able to identify why it's failing.

@jorycadence
Copy link

jorycadence commented Jul 29, 2024

To fix this I changed:
uses: php-actions/phpunit@master to: uses: php-actions/phpunit@v3
in my yml. Not sure why I chose to use master when I first set them up. I'm sure you could also use v4 if you'd like.

@huelsmc
Copy link

huelsmc commented Jul 30, 2024

It seems the fix does not work anymore ... seems like the issue is also in specific versions v3 + v4 now

@g105b
Copy link
Member

g105b commented Jul 30, 2024

If you re-run with debug logs, does it say anything about ghcr.io? There was an outage yesterday, but it resolved itself within minutes.

@Buffele
Copy link
Author

Buffele commented Jul 30, 2024

Just re-run without debug logs and still the same error.

How do I enable debug logs?

@g105b
Copy link
Member

g105b commented Jul 30, 2024

image

image

@Buffele
Copy link
Author

Buffele commented Jul 30, 2024

Thanks!

No, it does not say anything about ghcr.

@g105b
Copy link
Member

g105b commented Jul 30, 2024

hmmmmmpf let me do some investigations. I'm currently pushing some commits that are tested with this action... will report back here.

@Buffele
Copy link
Author

Buffele commented Jul 30, 2024

Should be related to the latest commit from yesterday: 69225c0

@g105b
Copy link
Member

g105b commented Jul 30, 2024

@Buffele you are right. I have reverted it in #70 and I'll figure out what the cause is when I have some time to put aside, as I had previously tested the PR with no side effects.

@mschielmann
Copy link

The pipelines still fail for me on @V3 and @master. Could the reverted code be released?
If there is any workaround, then I would greatly appreciate your suggestions.

@mschielmann
Copy link

mschielmann commented Sep 10, 2024

For anyone who’s interested. This warning seems to be causing this issue:

1) Using comma-separated values with --test-suffix is deprecated and will no longer work in PHPUnit 12. You can use --test-suffix multiple times instead.

It seems that having this warning printed causes the action to be considered as faulty.

The workaround is to use:

with:
   test-suffix: Test.php
   ...

assuming you’re using only one test suffix. If you’re using more, then there is no way of solving it afaik, as the default is set to:

ACTION_TEST_SUFFIX: Test.php,.phpt

If I have time I may be able to provide a fix for it here via PR.

This has been described here as well:
#68

@Buffele
Copy link
Author

Buffele commented Sep 10, 2024

Throws a warning

Warning: Unexpected input(s) 'test-suffix', valid inputs are ['version', 'php_version', 'php_extensions', 'vendored_phpunit_path', 'configuration', 'log_junit', 'log_teamcity', 'testdox_html', 'testdox_text', 'memory_limit', 'bootstrap', 'filter', 'testsuite', 'group', 'exclude_group', 'test_suffix', 'whitelist', 'coverage_filter', 'coverage_clover', 'coverage_cobertura', 'coverage_crap4j', 'coverage_html', 'coverage_php', 'coverage_text', 'coverage_xml', 'args']

But at least the phpunit step does not error out for me anymore.

Also working again on latest @v4 for me.

Thanks!

@sl0wik
Copy link

sl0wik commented Nov 29, 2024

@mschielmann its:

with:
   test_suffix: Test.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants