-
Task
-
Resolution: Done
-
Major
-
3.3.0.GA
-
False
-
None
-
False
New script to collect create/start/finish data on OSBS tasks. Pass in param: taskid = 48564137
Store columns of data (csv) or rows (yaml)
- container that was built (incl. tag)
$➔ curl -sSLo- https://download.eng.bos.redhat.com/brewroot/work/tasks/4137/48564137/x86_64.log | tail -2 | sed -r -e "s@.+containers/#/(.+)\"@\1@" | head -1
- dates
$ brew taskinfo 48564137 | grep -E "Created|Started|Finished"
Created: Tue Oct 25 12:39:21 2022
Started: Tue Oct 25 15:40:08 2022
Finished: Tue Oct 25 15:45:50 2022
- date diffs https://unix.stackexchange.com/questions/24626/quickly-calculate-date-differences
datediff() { d1=$(date -d "$1" +%s) d2=$(date -d "$2" +%s) echo $(( (d1 - d2) / 86400 )) days }
Once script exists, it can be added to the end of get-sources-rhpkg-container-build jobs to constantly update the yaml/csv file.