Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#52812 closed enhancement (fixed)

buildbot: set the clock to UTC

Reported by: mojca (Mojca Miklavec) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Low Milestone:
Component: buildbot/mpbb Version:
Keywords: buildbot Cc:
Port:

Description

I would find it very useful to see the clock on the buildbot being set to UTC.

Change History (6)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Looks like we can set the buildbot timezone when starting buildbot and don't have to change the timezone of the buildmaster's OS itself.

comment:2 Changed 7 years ago by mojca (Mojca Miklavec)

That sounds even better. I was looking for a configure option without success.

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Buildmaster is now being started with TZ=UTC. The waterfall view seems to be respecting that at least.

Does this look good enough or should we try to start the buildworkers with that setting as well? I'm not sure if that would actually do anything.

The MacPorts logs on the workers do still contain embedded timestamps that MacPorts puts there; if we wanted those to be UTC we probably really would have to set the system timezone to UTC on the buildworkers (which would be ok).

comment:4 Changed 7 years ago by mojca (Mojca Miklavec)

Thank you. The main issues seems to be resolved. All the pages generated by the buildbot which I checked look OK and are much easier to interpret now.

I'm sure that programs that hardcode the build time (which is something they shouldn't do) will keep encoding the wrong time, but this is not an issue at all. I also saw

DEBUG: fetch phase started at Mon Jan  2 05:38:03 CST 2017

but would not worry too much either.

So: yes, it looks good enough to me, thank you very much.

I would leave it up to you whether or not to change the time on the build slaves. If you would set them up from scratch, I would vote for UTC, but I don't think it's worth spending any extra time fixing that now (unless you really want to or if there will be any unexpected consequences with the new/planned build jobs for syncing portindex, distfiles etc.).

comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I went ahead and changed the buildworker system clocks to UTC using:

sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime

That should fix any dates and times in the buildbot logs.

comment:6 Changed 6 years ago by neverpanic (Clemens Lang)

Component: server/hostingbuildbot/mpbb
Note: See TracTickets for help on using tickets.