Action Randomly Fails When Connecting To Host

Open
#21 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
github-actions, typescript
Domain
ci-cd

Research direction

Start from the GitHub Action entry point that emits “connecting develop” and inspect how it invokes Deployer with the logged command. Reproduce the failure using the provided deployment configuration and verbose logs, then determine why the connection sometimes exits with code 1. Done means the intermittent failure is explained and a reliable regression check or fix is verified.

Written by the indexing model from the issue text.

Description

Sometimes this Action fails right away when it's doing "connecting [host]", even after it worked multiple times before.

This seems to be happening randomly, for whatever reason.

I've done numerous deploys, but this happens too frequently to be able to rely on.

Any thoughts??

Logs:

2021-08-19T17:59:09.3554813Z ##[group]Run deployphp/action@master
2021-08-19T17:59:09.3556780Z with:
2021-08-19T17:59:09.3670069Z   private-key: ***
2021-08-19T17:59:09.3690909Z   known-hosts: ***
2021-08-19T17:59:09.3692945Z   dep: deploy develop -f ./.github/deploy.yml -vvv
2021-08-19T17:59:09.3694828Z env:
2021-08-19T17:59:09.3696829Z   repo_url: https://github.com/org/repo
2021-08-19T17:59:09.3700275Z ##[endgroup]
2021-08-19T17:59:09.6854945Z   connecting develop
2021-08-19T17:59:09.6870106Z                                                                                
2021-08-19T17:59:09.6874566Z [develop] /usr/bin/php7.4 /home/runner/work/repo/repo/vendor/bin/dep worker --task deploy:info --host develop --port 42891 --file='./.github/deploy.yml' -vvv
2021-08-19T17:59:10.2350946Z ##[error]Command failed with exit code 1: vendor/bin/dep deploy develop -f ./.github/deploy.yml -vvv

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Dominant language
TypeScript
Stars
269
Forks
56
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from deployphp/action

All issues in deployphp/action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.