Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect measured_at timestamp returned by API in WordPress dashboard #31

Closed
mukeshpanchal27 opened this issue Dec 18, 2024 · 3 comments

Comments

@mukeshpanchal27
Copy link

Description

The 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
}
@youknowriad
Copy link
Owner

Is this the same for all projects or just "Core". if it's just "Core", it might suggest that the value passed to the "log" API call when the perf tests are run in CI is not correct.

@mukeshpanchal27
Copy link
Author

I checked the other API, and the data is working fine. The issue seems to be with the WordPress API, which might indicate a problem in the WP performance tests.

To explore this further, I opened WordPress/wordpress-develop#8072.

@mukeshpanchal27
Copy link
Author

The trac ticket https://core.trac.wordpress.org/ticket/62766 is opened for further exploration.

Closing these issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants