Skip to content

Conversation

@Josverl
Copy link
Contributor

@Josverl Josverl commented Apr 9, 2025

Summary

CI for the reproducible build shows a deprecation warning.

mkdir -p build-minimal/shared/timeutils/
/home/runner/work/micropython/micropython/ports/unix/../../py/makeversionhdr.py:120: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  build_date = datetime.datetime.utcfromtimestamp(

https://github.com/micropython/micropython/actions/runs/14346813947/job/40218094016

I updated py/makeversionhdr.py to use datetime.datetime.fromtimestamp(timestamp, datetime.timezone.utc) instead

Testing

Tested minimal and standard unix build outside of CI
CI will test the rest

@codecov
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.54%. Comparing base (aedaa40) to head (1b12357).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #17099   +/-   ##
=======================================
  Coverage   98.54%   98.54%           
=======================================
  Files         169      169           
  Lines       21898    21898           
=======================================
  Hits        21580    21580           
  Misses        318      318           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@dpgeorge dpgeorge added the py-core Relates to py/ directory in source label May 7, 2025
The former is deprecated.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
@dpgeorge dpgeorge force-pushed the fix/ci_utcfromtimestamp branch from 9d67a67 to 1b12357 Compare May 7, 2025 07:32
@dpgeorge dpgeorge merged commit 1b12357 into micropython:master May 7, 2025
57 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

py-core Relates to py/ directory in source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants