php-actions / phpunit

Run PHPUnit tests in Github Actions.
108 stars 24 forks source link

error checking context: 'can't stat '...laravel/storage/framework/testing/disks''. #42

Closed netdjw closed 2 months ago

netdjw commented 2 years ago

After I upgraded to PHP 8.0 I was faced with the following error message. The user is an organization on GitHub and the repo is a private one.

I have this action yml file:

name: PR automatic code review - Laravel
on: [push]
jobs:
  phpunit:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: php-actions/composer@v6
      with:
        php_version: 8.0
        working_dir: laravel/
    - uses: php-actions/phpunit@v3
      with:
        php_version: 8.0
        bootstrap: laravel/vendor/autoload.php
        configuration: laravel/phpunit.xml
        memory_limit: 256M

I get this result:

Run php-actions/phpunit@v3
  with:
    php_version: 8
    bootstrap: laravel/vendor/autoload.php
    configuration: laravel/phpunit.xml
    memory_limit: 256M
    version: latest
    test_suffix: Test.php,.phpt
Run bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/330b13bbb1eadd05bbb627477c1549cd7e62e406/php-build.bash) phpunit \ && /home/runner/work/_actions/php-actions/phpunit/v3/phpunit-action.bash || { echo "::group::Debug output" ; cat /home/runner/work/my-private-repo/my-private-repo/output.log ; echo "::endgroup::" ; exit 1; }
Building PHP 8 with extensions:  ...
Debug output
  Running php-build composer
  WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json.
  Configure a credential helper to remove this warning. See
  https://docs.docker.com/engine/reference/commandline/login/#credentials-store

  Login Succeeded
  Pulling docker.pkg.github.com/my-orgnaization/my-private-repo/php-actions_composer_my-private-repo:php-8-build2
  WARNING: ⚠️ Failed to pull manifest by the resolved digest. This registry does not
    appear to conform to the distribution registry specification; falling back to
    pull by tag.  This fallback is DEPRECATED, and will be removed in a future
    release.  Please contact admins of https://docker.pkg.github.com. ⚠️

  php-8-build2: Pulling from my-orgnaization/my-private-repo/php-actions_composer_my-private-repo
  df9b9388f04a: Already exists
  a60f85627e3d: Pulling fs layer
  89395091f295: Pulling fs layer
  2342a00f1dee: Pulling fs layer
  aa806d3eefd0: Pulling fs layer
  99293c50730b: Pulling fs layer
  95073bc30a85: Pulling fs layer
  fa914f412d9b: Pulling fs layer
  6ccf1cd049c5: Pulling fs layer
  a4f11ef3ca23: Pulling fs layer
  aa806d3eefd0: Waiting
  99293c50730b: Waiting
  95073bc30a85: Waiting
  fa914f412d9b: Waiting
  6ccf1cd049c5: Waiting
  a4f11ef3ca23: Waiting
  89395091f295: Verifying Checksum
  89395091f295: Download complete
  a60f85627e3d: Download complete
  2342a00f1dee: Verifying Checksum
  2342a00f1dee: Download complete
  a60f85627e3d: Pull complete
  89395091f295: Pull complete
  2342a00f1dee: Pull complete
  99293c50730b: Verifying Checksum
  99293c50730b: Download complete
  aa806d3eefd0: Verifying Checksum
  aa806d3eefd0: Download complete
  aa806d3eefd0: Pull complete
  99293c50730b: Pull complete
  fa914f412d9b: Verifying Checksum
  fa914f412d9b: Download complete
  6ccf1cd049c5: Verifying Checksum
  6ccf1cd049c5: Download complete
  95073bc30a85: Verifying Checksum
  95073bc30a85: Download complete
  a4f11ef3ca23: Verifying Checksum
  a4f11ef3ca23: Download complete
  95073bc30a85: Pull complete
  fa914f412d9b: Pull complete
  6ccf1cd049c5: Pull complete
  a4f11ef3ca23: Pull complete
  Digest: sha256:5aeed6eb078bd5866164e24c3094148d92f8c4d10ba314e6c28497fbaf1f1b2e
  Status: Downloaded newer image for docker.pkg.github.com/my-orgnaization/my-private-repo/php-actions_composer_my-private-repo:php-8-build2
  docker.pkg.github.com/my-orgnaization/my-private-repo/php-actions_composer_my-private-repo:php-8-build2
  Docker tag: docker.pkg.github.com/my-orgnaization/my-private-repo/php-actions_composer_my-private-repo:php-8-build2
  No private keys supplied
  Command: composer install --working-dir=laravel/ --no-progress --no-interaction
  Skipping env variable PWD
  Skipping env variable HOME
  Skipping env variable SHLVL
  Skipping env variable PATH
  Running php-build phpunit
  WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json.
  Configure a credential helper to remove this warning. See
  https://docs.docker.com/engine/reference/commandline/login/#credentials-store

  Login Succeeded
  Pulling docker.pkg.github.com/my-orgnaization/my-private-repo/php-actions_phpunit_my-private-repo:php-8-build2
  Error response from daemon: manifest for docker.pkg.github.com/my-orgnaization/my-private-repo/php-actions_phpunit_my-private-repo:php-8-build2 not found: manifest unknown: Docker image reference php-actions_phpunit_my-private-repo:php-8-build2 not found under repo "my-orgnaization"
  Dockerfile:
  FROM php:8-cli-alpine
  RUN apk add --update --no-cache zip git bash openssh
  error checking context: 'can't stat '/home/runner/work/my-private-repo/my-private-repo/laravel/storage/framework/testing/disks''.
Error: Process completed with exit code 1.

Any ide how can I fix this?

g105b commented 5 months ago

I'm tidying up some old issues. Is this still affecting anyone? I'm not sure about how to go about fixing it, and it's been a couple of years since it was originally posted.