Support for msec time interval in Events

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

@austinvazquez is already working on this.

Since Oct 29, 2023.

  • #104 by @austinvazquez — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
backend

Research direction

Start with runc.go around line 352 and reproduce the reported behavior using runc events --interval 0.5s <id>. Trace how the millisecond time.Duration is converted and verify that a fractional-second interval no longer produces a nil Events channel.

Written by the indexing model from the issue text.

Description

runc events supports time intervals for msec. Example

# runc events --interval 0.5s <id>

The below line converts millisecond time.Duration API call to int, making the interval 0. Thus nil Events channel

https://github.com/containerd/go-runc/blob/9007c2405372fe28918845901a3276c0915689a1/runc.go#L352

Is there any specific reason?

Dominant language
Go
Stars
177
Forks
84
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from containerd/go-runc

All issues in containerd/go-runc

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.