Repository navigation
fix(core): a run's times cross in microseconds, so a run under a millisecond keeps its time - #4684
Merged
Merged
Conversation
…isecond keeps its time
…ce where it was; regenerate the C# bindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
history_entrywire schema'sduration_us,first_row_usandserver_usreplace the millisecond fields, so a run under a millisecond reaches another device with its time, not 0. Sync has not shipped, so the fields change in place.HistoryRun,HistoryRunDetails,HistoryEntryInfo,HistoryEntryRecord) and MCP use microseconds; C# bindings regenerated.TimeSpanmicroseconds both ways; Linux records microseconds and shows a run under a millisecond as<1 ms, as the Mac does.durationUsfrom its seconds.duration_mscolumn with the fraction (0.09).Test plan
history_tests.rs: a 90 µs run recorded on one device arrives on another with its microseconds, first-row and server times too.microseconds_migration_tests.rs: a run kept as 12 ms reads as 12000 µs after the upgrade.export.rs: a 90 µs run exports as0.09and0.09 ms.HistoryTests: a 90 µs run keeps its microseconds through the FFI.history_formatting: a run under a millisecond reads<1 ms.QueryHistoryCoreMirrorTests: a 0.09 ms run reaches the core as 90 µs.