Skip to content

Increase ETA update interval - #147

Merged
christiangnrd merged 4 commits into
JuliaTesting:mainfrom
christiangnrd:stupint
Aug 2, 2026
Merged

Increase ETA update interval#147
christiangnrd merged 4 commits into
JuliaTesting:mainfrom
christiangnrd:stupint

Conversation

@christiangnrd

@christiangnrd christiangnrd commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

See discussion

Looking at https://buildkite.com/julialang/opencl-dot-jl/builds/1086/table?jid=019f6c40-f664-4ccd-a4e4-600ef1bf2e33&tab=output taking forever (probably #124), I noticed that the logs are currently 1.3MB purely because of status updates. This allows the update interval to be customized.

Other potential approaches are auto detect CI and set it to 5 sec. Could also add an environment variable since this is geared towards CI

@giordano

Copy link
Copy Markdown
Collaborator

Looking at buildkite.com/julialang/opencl-dot-jl/builds/1086/table?jid=019f6c40-f664-4ccd-a4e4-600ef1bf2e33&tab=output taking forever (probably #124)

For what is worth, I find --verbose very helpful as it provides more info, like when the job was started, the available memory, and the init time (as you know well!). All of this in my experience is useful to figure out what's going on. Setting JULIA_TEST_MAXRSS_MB=1800 gives me a decent performance. Right today I started experimenting with a dynamic mechanism to set JULIA_TEST_MAXRSS_MB

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

For what is worth, I find --verbose very helpful as it provides more info

Indeed

@giordano

Copy link
Copy Markdown
Collaborator

More on point about the PR, I think the "problem" is that buildkite seems to have a fancy terminal which does the live update thing. GitHub Actions doesn't do that at all, so the log is quite simple and readable. Maybe that's what you want to change, rather than the update interval?

@christiangnrd

Copy link
Copy Markdown
Collaborator Author

But also I don't think this needs to be customizable. Looking at the code, this updates every second or when it needs to. I assume the every second update is just for up to date timing info, which has minute-level resolution. Updating every second is probably way overkill and could be changed to something like 5 or 10 seconds without any noticeable difference?

@christiangnrd christiangnrd changed the title Add way to customize update status interval Increase ETA update interval Jul 16, 2026
@christiangnrd

Copy link
Copy Markdown
Collaborator Author

Okay I'm convinced just increasing the update interval is the best approach. I made it 20 seconds since this value really only matters when no tests are starting/ending and to for the ETA (rounded to the closest minute) so every 20 seconds is plenty often IMO

@giordano

Copy link
Copy Markdown
Collaborator

I assume the every second update is just for up to date timing info, which has minute-level resolution.

It's also used to show the list of running jobs, no? That may change more frequently.

I'm still of the idea that you don't want Buildkite to show the live data at all, that completely messes up the log anyway.

@christiangnrd

christiangnrd commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

It's also used to show the list of running jobs, no? That may change more frequently.

The loop itself is run every 0.1 seconds, and if there are any changes to display it bypasses the 1s (on main) interval, so running tests should be handled by that path. At least they seem to be for me locally

@christiangnrd christiangnrd added the enhancement New feature or request label Jul 28, 2026
@christiangnrd
christiangnrd force-pushed the stupint branch 2 times, most recently from 9570504 to 787a6e6 Compare July 28, 2026 23:11

@giordano giordano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is OK per se (granularity of the ETA is of ~minutes, so having an update frequency coarser than a second is reasonable), but I'm still not convinced it's the right fix for your problem (BuildKite logs being messy)

@christiangnrd
christiangnrd merged commit ca0e167 into JuliaTesting:main Aug 2, 2026
22 checks passed
@christiangnrd
christiangnrd deleted the stupint branch August 2, 2026 00:08
@christiangnrd

Copy link
Copy Markdown
Collaborator Author

This'll at least cut log file sizes for tests that hang by almost 20x. Maybe a way to manually disable the status update would be useful but I'll wait for someone to ask for it before adding it

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

Successfully merging this pull request may close these issues.

2 participants