Repository navigation
fix(pcan): preserve Linux epoch timestamps without boot offset - #2119
zariiii9003 merged 4 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review
Retrying the automated review that could not complete on the unchanged PR
head.
On Mon, 26 Oct 2026 21:58:55 -0700, "chatgpt-codex-connector[bot]" < ***@***.***> wrote:
chatgpt-codex-connector[bot] left a comment (hardbyte/python-can#2119) <!--
codex-pull-request-review-summary --> <!-- codex-review-state:v1
{"code_review":{"commit_sha":"6bf8c074a6ba919d5c9b5833c9386be74c479690","has_any_findings":null,"has_unresolved_findings":null,"status":"running"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}}
--> ## Codex Review Summary This comment shows the latest Codex review
activity on this pull request. | Review | Status | Commit | Review trigger
| | --- | --- | --- | --- | | 📝 **Code Review** | 🔄 **Running** since
<relative-time
datetime="2026-10-27T04:58:29.400879Z">2026-10-27T04:58:29.400879Z</relative-time>
| `6bf8c07` | PR opened | <details> <summary>ℹ️ About Codex in
GitHub</summary> <br/> [Your team has set up Codex to review pull requests
in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews
are triggered when you - Open a pull request for review - Mark a draft as
ready - Comment ***@***.*** review" or ***@***.*** security review". Codex reacts
with 👀 while any review is running, comments if it has suggestions, and
reacts with 👍 once all reviews finish with no findings. </details> --
Reply to this email directly or view it on GitHub:
#2119 (comment)
You are receiving this because you authored the thread. Message ID:
***@***.***>
|
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
|
|
there's a conflict |
… ImportError handling
Summary of Changes
Preserve PCAN-Basic's Linux Unix-epoch timestamps for classic CAN and CAN FD. Select a zero boot offset on Linux, bypassing the irrelevant uptime import/lookup/warning; retain the complete existing conversion and fallback on other platforms. Add focused platform/clock controls, documentation and a news fragment.
Related Issues / Pull Requests
Closes #2108. Thanks to @rodrigocarbonell-creator for the report and clock-domain diagnosis. PEAK's timestamp documentation distinguishes Windows system-start timestamps from Linux epoch timestamps. The original preparation also inspected the Linux 5.0.1.8 source/addendum; no vendor code is redistributed. Current #1901 changes bus-state names, not this clock conversion.
Type of Change
Checklist
Additional Notes
Hosted CI — current head (23 November 2026)
At merge-resolution head
42859a5, the Tests workflow #45089058625 completed successfully: 25 jobs passed, including the Ubuntu/Windows/macOS Python test matrix, lint/static analysis, docs, packaging and coverage aggregation; the release-publishing job was skipped. The merge from upstreammainpreserves the PCAN timestamp fix and retains upstream's more specificImportErrorhandling. GitHub reports the PR mergeable. The localtoxchecklist item remains unchecked because a new complete localtoxrun was not performed.Historical validation of the earlier, expanded test revision, recorded on 25 October 2026, CPython 3.13.16 / Linux (not yet repeated for the reduced tests):
30a12c6reduces these to three focused cases: Linux classic CAN, Linux CAN FD and non-Linux classic CAN, all with uptime available. The three tests assert only the timestamp clock-domain behavior; native event handles remain disabled.On 27 October, historical head
6bf8c074a6ba919d5c9b5833c9386be74c479690, treed5825a6c0228039dff16561b4178409eea9fb114, was restored from clean tested19b565f877c76fbc2853aa3dc2814b0b1dd4b399. The newer test-only change in30a12c6was not executed locally; the reduced tests are now covered by the successful hosted CI run below.No physical PCAN adapter/driver execution, SocketCAN vcan or hardware clock behaviour on Windows/macOS is claimed. The full hosted OS/interpreter matrix passed for the current head; these are software CI results, not physical CAN-adapter validation.
Prepared with AI assistance and independent inspection.
Timothy Anderson — Spotted Ridge Engineering / OC Labs
Independent software verification · GDN (Global Decision Network)
timothyanderson096@gmail.com · Engineering evidence