[wp-trac] [WordPress Trac] #62766: Build/Test Tools: Fix the date time log for performance tests commit

WordPress Trac noreply at wordpress.org
Thu Jan 2 09:27:45 UTC 2025


#62766: Build/Test Tools: Fix the date time log for performance tests commit
------------------------------+-------------------------
 Reporter:  mukesh27          |      Owner:  mukesh27
     Type:  defect (bug)      |     Status:  assigned
 Priority:  normal            |  Milestone:  6.8
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:  performance       |
------------------------------+-------------------------
 When a commit is made in the WordPress repository, performance data is
 recorded and displayed on the
 [https://www.codevitals.run/project/wordpress/ WordPress dashboard].
 However, the timestamp value sent with the commit is in an incorrect date
 format that the dashboard supports, causing it to display the wrong date.
 This issue needs to be fixed.


 **Original report:** https://github.com/youknowriad/codevitals/issues/31

 The [https://www.codevitals.run/project/wordpress/ WordPress dashboard]
 fetches data through API requests, such as:
 `https://www.codevitals.run/api/evolution/14?limit=10`.

 However, the API is returning an incorrect `measured_at` timestamp. For
 example, the response includes a timestamp like
 `"1970-01-21T01:46:33.000Z"`, which does not match the actual commit date
 provided in the corresponding GitHub commit. For ex see:
 https://github.com/WordPress/wordpress-
 develop/actions/runs/12383856936/job/34567371506#step:41:23.

 === Example API Response
 {{{
   "id": 259315,
   "metric_id": 14,
   "value": 12.7313,
   "raw_value": 15.985,
   "branch": "trunk",
   "measured_at": "1970-01-21T01:46:33.000Z",
   "hash": "f6fb194a0755d82037247916305b51ae70b995d0",
   "project_id": 2
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62766>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list