Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Has anyone used `act` successfully to run the github actions flow locally? I get the following error

Options
U03T08LE3CP
U03T08LE3CP Posts: 185 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Has anyone used act successfully to run the github actions flow locally? I get the following error

$ act  -j php-74-postgres-functional-debian
.....
[CI/PHP 7.4 / PostgreSQL / Functional / Debian]   ๐Ÿณ  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
| Cloning into './docker'...
| remote: Enumerating objects: 9963, done.
| Checking requirements... 0s [OK]
| Checking docker version... 0s [OK]
| Checking docker-compose version... 0s [OK]
| 
| โ”Œโ”€โ”€โ”€โ”€โ•ฎ       โ”Œโ”€โ”           โ•ญโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ•ฎโ”€โ”ฌโ”€โ”
| โ”‚  โ•ฎ โ”‚โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ค โ”œโ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”ฌโ”€โ” โ”‚ โ”€โ”€โ”€โ”ค  โ•ฎ โ”‚ โ”Œโ”€โ”˜
| โ”‚  โ•ฏ โ”‚ โ”ผ โ”‚ โ”œโ”€โ”คโ”€โ”€โ”€โ”ค โ”ผโ”€โ”ค โ”Œโ”€โ•ฏ โ”œโ”€โ”€โ”€ โ”‚  โ•ฏ โ”‚ โ””โ”€โ”
| โ””โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”ดโ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”ดโ”€โ”˜
|                                           
| 
| Checking requirements... 0s [OK]
| Checking docker version... 0s [OK]
| Checking docker-compose version... 0s [OK]
| 
| Using deploy.ci.functional.yml 
| Building generator... 3s [DONE]
| Copiyng assets... 0s [DONE]
| 
| Running generator 
| PHP Fatal error:  Uncaught Symfony\Component\Yaml\Exception\ParseException: File "/data/deployment/project.yml" does not exist. in /data/vendor/symfony/yaml/Parser.php:54
| Stack trace:
| #0 /data/deploy-file-generator/src/Processor/Executor/PreExecutors/PrepareDeployFileTransferExecutor.php(45): Symfony\Component\Yaml\Parser->parseFile('/data/deploymen...')
| #1 /data/deploy-file-generator/src/Processor/DeployFileProcessor.php(90): DeployFileGenerator\Processor\Executor\PreExecutors\PrepareDeployFileTransferExecutor->execute(Object(DeployFileGenerator\Transfer\DeployFileTransfer))
| #2 /data/deploy-file-generator/src/Processor/DeployFileProcessor.php(38): DeployFileGenerator\Processor\DeployFileProcessor->execute(Array, Object(DeployFileGenerator\Transfer\DeployFileTransfer))
| #3 /data/index.php(1342): DeployFileGenerator\Processor\DeployFileProcessor->process(Object(DeployFileGenerator\Transfer\DeployFileTransfer))
| #4 /data/index.php(17): buildProjectYaml('/data/deploymen...')
| #5 {main}
|   thrown in /data/vendor/symfony/yaml/Parser.php on line 54

Comments

  • UMVENKCBF
    UMVENKCBF Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    Options

    No not yet, but I'm working on it too.

  • U03T08LE3CP
    U03T08LE3CP Posts: 185 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    Options

    tried to debug it for a sec, something in the base image is different is my guess

  • U03T08LE3CP
    U03T08LE3CP Posts: 185 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    Options

    Answering myself to run it locally do not have the docker sdk pre-pulled in your repo and e.g. act --bind --directory .

  • U041L3FEZFV
    U041L3FEZFV Posts: 1 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited September 2022
    Options

    Hi @U03T08LE3CP We also face a similar issue right now. We just follow the description on https://docs.spryker.com/docs/scos/dev/setup/installing-spryker-with-docker/installation-guides/installing-in-demo-mode-on-windows.html#inst[โ€ฆ]ndows to get the demo mode working on Windows. But when executing docker/sdk bootstrap we only see this:

    $ docker/sdk bootstrap
    
    โ”Œโ”€โ”€โ”€โ”€โ•ฎ       โ”Œโ”€โ”           โ•ญโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ•ฎโ”€โ”ฌโ”€โ”
    โ”‚  โ•ฎ โ”‚โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ค โ”œโ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”ฌโ”€โ” โ”‚ โ”€โ”€โ”€โ”ค  โ•ฎ โ”‚ โ”Œโ”€โ”˜
    โ”‚  โ•ฏ โ”‚ โ”ผ โ”‚ โ”œโ”€โ”คโ”€โ”€โ”€โ”ค โ”ผโ”€โ”ค โ”Œโ”€โ•ฏ โ”œโ”€โ”€โ”€ โ”‚  โ•ฏ โ”‚ โ””โ”€โ”
    โ””โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”ดโ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ดโ”€โ”ดโ”€โ”˜
    
    
    
    Using ./deploy.yml
    
    Running generator
    PHP Fatal error:  Uncaught Symfony\Component\Yaml\Exception\ParseException: File "/data/deployment/project.yml" does not exist. in /data/vendor/symfony/yaml/Parser.php:54
    Stack trace:
    #0 /data/deploy-file-generator/src/Processor/Executor/PreExecutors/PrepareDeployFileTransferExecutor.php(45): Symfony\Component\Yaml\Parser->parseFile('/data/deploymen...')
    #1 /data/deploy-file-generator/src/Processor/DeployFileProcessor.php(90): DeployFileGenerator\Processor\Executor\PreExecutors\PrepareDeployFileTransferExecutor->execute(Object(DeployFileGenerator\Transfer\DeployFileTransfer))
    #2 /data/deploy-file-generator/src/Processor/DeployFileProcessor.php(38): DeployFileGenerator\Processor\DeployFileProcessor->execute(Array, Object(DeployFileGenerator\Transfer\DeployFileTransfer))
    #3 /data/index.php(1342): DeployFileGenerator\Processor\DeployFileProcessor->process(Object(DeployFileGenerator\Transfer\DeployFileTransfer))
    #4 /data/index.php(17): buildProjectYaml('/data/deploymen...')
    #5 {main}
      thrown in /data/vendor/symfony/yaml/Parser.php on line 54
    

    Your issue looks similar, have you solved it?

  • U03T08LE3CP
    U03T08LE3CP Posts: 185 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    Options

    Yeah with that directory parameter, see above

  • U03T08LE3CP
    U03T08LE3CP Posts: 185 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    Options

    Act has some issue that volume mounts dont work same way