Record benchmark provenance per section

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

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
73/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Start with scripts/bench-promote.py, especially the main logic around if missing:, and find the self-test that checks per-column provenance. Change provenance handling so each section keeps its prior date and host when skipped, while measured sections record this run. Update the self-test and run it to confirm both cases.

Written by the indexing model from the issue text.

Description

Problem

scripts/bench-promote.py keeps one provenance entry per column, captured.<env>, and leaves it unchanged whenever any baseline metric in that column was not measured by this run (if missing: in main). A tier the capture skipped is enough: a --prune promote on a host that skips oci or applications (no network, missing tools) writes new lmbench values but keeps the old date and host for the whole column, so the baseline says those values came from the earlier capture.

Proposal

Key provenance per section, captured.<env>.<section>. A skipped tier keeps its own old date and host, and every section this run measured records the new ones. The self-test case that pins the per-column behavior changes with it.

Alternatives

Per-metric provenance would also be exact, but it repeats the same date and host on every leaf; a section is the unit a capture skips, so per-section entries cover the case with one entry per tier.

Origin

Follow-up from #501 (https://github.com/sysprog21/elfuse/pull/501#discussion_r4536986210)

Dominant language
C
Stars
287
Forks
33
Avg merge
2d 17h
Merged PRs (30d)
18

Getting set up

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 sysprog21/elfuse

All issues in sysprog21/elfuse

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.