oxidecomputer / oxidecomputer/buildomat

add separate timestamp for factory-generated events

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
72
Forks
5
PR merge metrics
No merged PRs in 30d

Description

The time_remote field on the job event record was added to store the local time provided by the agent when it generated the record. This is distinct from the original time field, which reflects the time at which the buildomat core server received the event from the agent.

Once factories were added, new event record types were added that are not generated on the agent but rather within the factory; e.g., information about the IPMI state of the machine, or output from the machine's serial console. The time in this case comes from the factory, and is thus also distinct from the time on the agent and the time on the core server.

We should add an optional time_factory column to store these timestamps for factory-provided events, and stop using time_remote in that case, leaving time_remote to the agent itself.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the job event record and the code that creates factory-provided events, then trace all uses of time_remote. Add the optional time_factory field for factory timestamps while retaining time_remote for agent timestamps. Done means factory events preserve their own timestamp source without changing the existing server or agent times.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.