local run fail because of sleep 0 #2

Closed
opened 2023-03-19 07:53:27 +00:00 by earl-warren · 0 comments
Owner
make build
dist/local/act -h -v -C pkg/runner/testdata  -W basic 

b9c20dcaa4 adds a timeout

-			Entrypoint:  []string{"/usr/bin/tail", "-f", "/dev/null"},
+			Entrypoint:  []string{"/bin/sleep", fmt.Sprint(rc.Config.ContainerMaxLifetime.Round(time.Second).Seconds())},

but when running locally as above it is zero by default and exits immediately, failing the step

``` make build dist/local/act -h -v -C pkg/runner/testdata -W basic ``` b9c20dcaa43899cb3bb327619d447248303170e0 adds a timeout ``` - Entrypoint: []string{"/usr/bin/tail", "-f", "/dev/null"}, + Entrypoint: []string{"/bin/sleep", fmt.Sprint(rc.Config.ContainerMaxLifetime.Round(time.Second).Seconds())}, ``` but when running locally as above it is zero by default and exits immediately, failing the step
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo/act#2
No description provided.