kernelci / kernelci-backend

Upstream Linux Kernel Validation Project API
http://api.kernelci.org
GNU Lesser General Public License v2.1
40 stars 27 forks source link

db: mongo: timezone-aware connection #260

Closed khilman closed 4 years ago

khilman commented 4 years ago

Connect to mongodb in timezone aware mode.

This enables all timestamps to include timezone information, which is now required by kcidb schema.

Signed-off-by: Kevin Hilman khilman@baylibre.com

khilman commented 4 years ago

@gctucker this change, combined with kcidb v8 will fix the timestamp issues which are causing kcidb-submit to fail.

Cc: @spbnick

gctucker commented 4 years ago

Thanks, let's see if this solves the kcidb submission issue on staging and look for any regression anywhere else. We can leave it on staging until next week since only staging is sending data to kcidb at the moment.

spbnick commented 4 years ago

Thank you, Kevin! FWIW, this looks good to me. I can also confirm that both your playground data and the recent data kernelci-backend sends validates correctly now. The recent data also includes all three types of objects: revisions, builds, and tests, and they're all valid. So I would say, ship it :grin:!

gctucker commented 4 years ago

Great, thanks for confirming.