oxidecomputer / oxidecomputer/cockroach

skipped tests due to no `GetTotalMemory` implementation

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

Nobody has claimed this yet.

cleanup
Dominant language
Go
Stars
34
Forks
8
PR merge metrics
No merged PRs in 30d

Description

https://github.com/oxidecomputer/cockroach/blob/afda0c16c882a426eda6bd8791d7c0f3da6eaadb/pkg/server/status/recorder.go#L627-L632

We don't implement this function in our patched gosigar which doesn't affect runtime (as we're using Cockroach, anyway), but we have to skip a couple of tests (skips added in https://github.com/oxidecomputer/cockroach/commit/f46ecb203ea329f1a96699a35cfb60599a61b43a).

Presumably the metrics recorder is what continually logs "not implemented on illumos" every 10s or so during runtime.

Contributor guide

Open the contributing guide

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 with pkg/server/status/recorder.go around lines 627-632 and inspect the repository's patched gosigar implementation of GetTotalMemory. Review the commit that added the skipped tests to understand the expected behavior, then confirm the affected tests pass without skips and that the repeated illumos message is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, observability, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.