r/github • • May 02 '20

actions-cli - Monitor your Github Actions in real time from the command line

99 Upvotes

11 comments sorted by

10

u/_MORSE_ May 02 '20

2

u/Hollyw0od May 03 '20

Girthub is a new one for me :)

5

u/thermobear May 02 '20

Neat. Seems most useful for debugging?

7

u/_MORSE_ May 02 '20

I built it because I was getting too distracted opening the browser every time I have to check if the ci finished

Unfortunately github api doesn’t let you stream the logs so to debug you must open the logs url

2

u/Solex_ May 04 '20

Interesting stuff! Star'd

-6

u/VxJasonxV May 02 '20

One-off commands are not real time.

tail -f [log file] is real time.

5

u/_MORSE_ May 02 '20

I don’t understand, real time here means polling the github api every 3 seconds, there is no other way currently, in the example above it is instant because the workflow already finished

-5

u/VxJasonxV May 02 '20

If there’s no way to do it, then don’t call it real time. Call it what it is, polling.

5

u/_MORSE_ May 02 '20

Did you know that twitter feed uses polling? they still call it real time because lot of people don’t even know what polling means

-6

u/VxJasonxV May 02 '20

Did you know that Twitter API offers two methods, polling (also just referred to as REST) and real-time?

Is it "real time" without any data in between? No, because HTTP and TCP mandate some kind of a heartbeat, connection checking, etc. But with Twitter Real Time you send one query to Twitter, and (aside from connection checking) you only get sent back Twitter payload information as it's available for the life of the connection remaining active.

This is also true of tail -f because processes have underlying state management and reading file handles and various other bits.

The difference is sending one data specific request and it remaining in use for the life of the connection, versus sending multiple HTTP requests repeatedly in order to gather new information.

Sending a new request, establishing a new HTTP connection, is polling.