jakartaee / platform-tck

Jakartaee-tck
Other
124 stars 103 forks source link

Correct the date time data printed in bundles info file from CI certification jobs #111

Open alwin-joseph opened 4 years ago

alwin-joseph commented 4 years ago

The below jobs get the datetime of the promoted bundles to be output into a info file. -https://ci.eclipse.org/jakartaee-tck/job/eftl-standalonetck-certification/ -https://ci.eclipse.org/jakartaee-tck/job/eftl-standalonetck-certification-web/ -https://ci.eclipse.org/jakartaee-tck/job/standalonetck-certification/ -https://ci.eclipse.org/jakartaee-tck/job/standalonetck-certification-web/

The command used is echo ' Date: 'ssh genie.jakartaee-tck@projects-storage.eclipse.org stat -c \"%y\" ${NAME} /home/data/httpd/${BUNDLE_URL}" ">> $WORKSPACE/tckinfo.txt

This command does not seem to be reliable and need to be corrected where it is output into *info.txt files. For eg: https://ci.eclipse.org/jakartaee-tck/job/standalonetck-certification/lastSuccessfulBuild/artifact/tckinfo.txt has xml-rpc-tck-1.1.0.zip bundle dated 2019-08-08 but in real it was generated at a later time.

This issue is to record that this date time is not to be depended on now but the checksum values are correctly displayed.

Other option is to download the bundle and do 'stat' on that.

bshannon commented 4 years ago

If you download the bundle and do stat on it, it's always going to give you the current time, right?

If the mod time on the file in the download area isn't what you expect, something else is probably wrong.