Skip to content

Log a start time and elapsed seconds for every artifact - #158

Merged
abrignoni merged 1 commit into
mainfrom
feat/artifact-timing
Aug 28, 2026
Merged

Log a start time and elapsed seconds for every artifact#158
abrignoni merged 1 commit into
mainfrom
feat/artifact-timing

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Logs a start time and elapsed seconds for every artifact.

  • The "artifact started" line carries a UTC clock time, so a running job can be read for how long it has been sitting on the current artifact.
  • The "artifact completed" line carries elapsed seconds, and the error path logs the same before it continues.
  • Timing starts at the top of the loop, so it covers the file search, which runs after the started line is printed.
  • The run ends with the slowest artifacts, listing only those that showed as one second or more, so a quiet run prints nothing extra.

Nothing in the repo parses these lines.

A run prints nothing between "artifact started" and "artifact completed",
and the log carries no timestamps, so a slow artifact and a stuck one look
identical from the outside and a finished log cannot be used to tell them
apart afterwards.

The started line now carries a UTC clock time, which is what lets someone
watching a live run work out how long it has been sitting. The completed
line carries elapsed seconds, and the error path logs the same before it
continues. Timing starts at the top of the loop so it covers the file
search, which runs after the started line is printed.

Ends the run with the slowest artifacts, listing only those that showed as
one second or more, so every run doubles as a record of where the time went.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 9a4110f into main Aug 28, 2026
7 checks passed
@abrignoni
abrignoni deleted the feat/artifact-timing branch August 28, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant