Skip to content

Consolidate speedtest average timestamps s3/iceberg - #1246

Merged
michaeldjeffrey merged 1 commit into
mainfrom
mj/speedtest-avg-timestamp
Sep 4, 2026
Merged

Consolidate speedtest average timestamps s3/iceberg#1246
michaeldjeffrey merged 1 commit into
mainfrom
mj/speedtest-avg-timestamp

Conversation

@michaeldjeffrey

Copy link
Copy Markdown
Contributor

Iceberg was using Utc::now() when the speedtest average was constructed before being inserted.

S3 was using Utc::now() at the time the record was written to the proto file.

This makes it impossible to correctly correlate 2 speedtest averages between the 2 data sources.

A side-effect of this change is that speedtest averages timestamps are truncated to the nearest second to match what is stored in the proto file.

Both sources will be using the same datetime value and encoded to seconds so a proper correlation can be done between sources.

Iceberg was using Utc::now() when the speedtest average was
constructed before being inserted.

S3 was using Utc::now() at the time the record was written to the
proto file.

This makes it impossible to correctly correlate 2 speedtest averages
between the 2 data sources.

A side-effect of this change is that speedtest averages timestamps are
truncated to the nearest second to match what is stored in the proto
file.

Both sources will be using the same datetime value and encoded to
seconds so a proper correlation can be done between sources.
@michaeldjeffrey
michaeldjeffrey marked this pull request as ready for review September 3, 2026 16:47
@michaeldjeffrey
michaeldjeffrey merged commit 1ed5713 into main Sep 4, 2026
28 checks passed
@michaeldjeffrey
michaeldjeffrey deleted the mj/speedtest-avg-timestamp branch September 4, 2026 16:29
michaeldjeffrey added a commit that referenced this pull request Sep 8, 2026
Two conflicts, both from HIP-150 (#1245) and the speedtest-average
timestamp consolidation (#1246) landing first.

- speedtests_average.rs: keep #1246's `DateTime`/`SubsecRound` imports,
  drop `speedtests::self` — this branch removed `SpeedtestAverages`,
  its only user.
- rewarder_sp_rewards.rs: keep HIP-150's suspended-pool assertions, but
  call `reward_service_providers` with the now-required iceberg writers
  instead of `None`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
michaeldjeffrey added a commit that referenced this pull request Sep 8, 2026
Two conflicts, both from HIP-150 (#1245) and the speedtest-average
timestamp consolidation (#1246) landing first.

- speedtests_average.rs: keep #1246's `DateTime`/`SubsecRound` imports,
  drop `speedtests::self` — this branch removed `SpeedtestAverages`,
  its only user.
- rewarder_sp_rewards.rs: keep HIP-150's suspended-pool assertions, but
  call `reward_service_providers` with the now-required iceberg writers
  instead of `None`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants