-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Set LastKnownGoodTime using UTC via python-generated header #28668
Conversation
PR #28668: Size comparison from 9a35c44 to d51e419 Increases (5 builds for cc32xx, psoc6)
Decreases (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
Tested the patch on nrf platform and it works correctly. With timezone CET and local time 10:04:19 |
PR #28668: Size comparison from a167c71 to a1f3f41 Increases (5 builds for cc32xx, psoc6)
Decreases (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #28668: Size comparison from a167c71 to 2ef77ec Increases above 0.2%:
Increases (22 builds for bl702, bl702l, cc32xx, efr32, esp32, linux, nrfconnect, psoc6, telink)
Decreases (51 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #28668: Size comparison from 270d8e2 to 48d9f9a Increases (5 builds for cc32xx, psoc6)
Decreases (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we force this file to be re-built / re-included on every build?
Isn't it rebuilt each time currently as the generated header file is listed in sources of the source_set?
…chip#28668) * WIP: set LKGT using UTC via python * appease the linter * Changes from review * Remove header guard cruft
No. This will be generated once and not updated later. It does not work properly and I think it should be reverted. We can [have a way to] set the timestamp in the GN args via --args="chip_build_timestamp=XYZ". The build should not depend on the time since that's not hermetic. It's especially broken/confusing when caching is deployed. |
…chip#28668) * WIP: set LKGT using UTC via python * appease the linter * Changes from review * Remove header guard cruft
LKGT fallback uses the c++ TIME macro, which uses local time, not UTC. There is no good UTC macro and the result is the LKGT can be ahead of the actual time for time zones that are ahead of utc.
This approach generates a header with the LKGT in the native chip epoch-s and uses it to set the LKGT.
Open questions:
Fixes: [BUG] Setting correct UTC time is rejected #28629