Closed Bug 990814 Opened 11 years ago Closed 11 years ago

SlaveAPI should be more precise on request TS

Categories

(Release Engineering :: General, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Callek, Assigned: Callek)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch [slaveapi] v1 timestamp (obsolete) — Splinter Review
So slaveapi has results like: "333614032": { "finish_timestamp": 1396132272.172482, "request_timestamp": 1395851902, "start_timestamp": 1396114213.994389, "state": 3, "text": "Couldn't confirm shutdown." }, "385821584": { "finish_timestamp": 0, "request_timestamp": 1395851902, "start_timestamp": 0, "state": 1, "text": "" }, from present fetch of http://slaveapi1.srv.releng.scl3.mozilla.com:8080/slaves/b-2008-ix-0010/actions/shutdown_buildslave This means that we're off by days on "request" time by accident. This is due to rounding to int(). Let's fix that.
Attachment #8400301 - Flags: review?(jhopkins)
Comment on attachment 8400301 [details] [diff] [review] [slaveapi] v1 timestamp actually no this is definitely wrong.
Attachment #8400301 - Flags: review?(jhopkins) → review-
The first patch was wrong because time.time() was only ever instantiated at class instantiation not each-invocation of class. This should fix it.
Assignee: nobody → bugspam.Callek
Attachment #8400301 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8400315 - Flags: review?(jhopkins)
Attachment #8400315 - Flags: review?(jhopkins) → review+
$ git push Counting objects: 34, done. Delta compression using up to 4 threads. Compressing objects: 100% (21/21), done. Writing objects: 100% (21/21), 2.46 KiB | 0 bytes/s, done. Total 21 (delta 17), reused 0 (delta 0) To ssh://gitolite3@git.mozilla.org/build/slaveapi.git 4f63b89..8a742ec master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Tools → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: