Report the elapsed time for each workflow step#2700
Merged
mergify[bot] merged 2 commits intonektos:masterfrom Mar 18, 2025
ptagl:step-elapsed-time
Merged
Report the elapsed time for each workflow step#2700mergify[bot] merged 2 commits intonektos:masterfrom ptagl:step-elapsed-time
mergify[bot] merged 2 commits intonektos:masterfrom
ptagl:step-elapsed-time
Conversation
The `runStepExecutor` was extended to track and report the execution time of the step. This applies both to the standard and JSON log format. Please, note that: - on the standard log the time format depends on the value (e.g. `3.038334954s` or `2m0.054014069s`) - on the JSON log the time format is nanoseconds
Contributor
|
Please update as well. Only the success result has been changed |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2700 +/- ##
===========================================
+ Coverage 61.56% 74.42% +12.85%
===========================================
Files 53 72 +19
Lines 9002 11064 +2062
===========================================
+ Hits 5542 8234 +2692
+ Misses 3020 2193 -827
- Partials 440 637 +197 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ChristopherHX
approved these changes
Mar 18, 2025
Contributor
ChristopherHX
left a comment
There was a problem hiding this comment.
looks good to me 👍
cplee
approved these changes
Mar 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
runStepExecutorwas extended to track and report the execution time of the step.This applies both to the standard and JSON log formats.
Please, note that:
3.038334954sor2m0.054014069s)Standard log example:
JSON log example:
{"dryrun":false,"executionTime":1039563535,"job":"ci/job1","jobID":"job1","level":"info","matrix":{},"msg":" ✅ Success - Main Step 1 [1.039563535s]","stage":"Main","step":"Step 1","stepID":["0"],"stepResult":"success","time":"2025-03-17T10:17:21+01:00"} ... {"dryrun":false,"executionTime":33176679,"job":"ci/job2","jobID":"job2","level":"info","matrix":{},"msg":" ❌ Failure - Main Step B [33.176679ms]","stage":"Main","step":"Step B","stepID":["1"],"stepResult":"failure","time":"2025-03-18T07:28:01+01:00"}Related to #2660.