The v0-through-v1 path derives ShutdownDuration its own way, silently overriding a user's definition

Open Beginner friendly
#203 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

The derivation lives in to_v0_records in benchmarking/baselines/v0_binned.py, and its docstring already documents the behaviour. Read that docstring and the code that fills ShutdownDuration from the period and availability counter, then find where the v0-to-v1 migration is documented in the repo. Done means the migration docs state that a user's own ShutdownDuration is replaced unless the column is already present.

Written by the indexing model from the issue text.

Description

v1

to_v0_records (benchmarking/baselines/v0_binned.py) builds ShutdownDuration as the period less the availability counter when the records don't already carry the column, treating a missing counter reading as fully available. A user who built their own ShutdownDuration with a different heuristic (e.g. a stuck-data check) has it silently replaced by this derivation unless a ShutdownDuration column is already present. It's documented in the function's docstring, but it's a behaviour change worth surfacing wherever v0-to-v1 migration is documented — a downtime filter changing silently is easy to miss.

Dominant language
Python
Stars
29
Forks
13
Avg merge
1d 6h
Merged PRs (30d)
33

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 resgroup/wind-up

All issues in resgroup/wind-up

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.