Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep a consistent time interval #5

Open
beechnut opened this issue Nov 27, 2024 · 1 comment
Open

Keep a consistent time interval #5

beechnut opened this issue Nov 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@beechnut
Copy link
Collaborator

Right now, the page JS grabs the last 65 events.

But what if there's a bunch of failed checks because of some GitHub Actions issue, and a bunch of checks don't happen, and then maybe they start up again?

In that case,

Algorithm idea, assuming the interval is 15 minutes:

  • Parse the text file into a set of events, where the timestamp is a parsed value so we can do math with it
  • Use the current time as the starting point
  • Look through the event log:
    • The cursor timestamp is now
    • (A) Is there an event that happened 15 minutes or less before the cursor timestamp?
    • If yes: set the cursor timestamp to that event's timestamp. Loop back to point (A).
    • If not: set the cursor timestamp to 15 minutes earlier than the current cursor timestamp. Loop back to point (A).

Optional:

  • Set a timer to refresh the render every minute or so. Would that work with commits?
@beechnut beechnut added the enhancement New feature or request label Nov 27, 2024
@beechnut
Copy link
Collaborator Author

beechnut commented Dec 2, 2024

Or: fix timeout errors. Write a function that will handle curl 10.255.255.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant