You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #804 (feat: benchmark artifact generator) introduces a percentile function in generate-benchmark.ts that extends the existing percentile in check-governance-health.ts with an optional minSample parameter (default 5). It also re-implements computeGini identically.
computeGini in generate-benchmark.ts is a byte-for-byte duplicate of the one in check-governance-health.ts
percentile in generate-benchmark.ts adds minSample that doesn't exist in the current shared version
PR #793 (currently open) is consolidating computeGini to shared/governance-snapshot.ts. Once that merges:
What to do
Remove computeGini from generate-benchmark.ts and import from shared/governance-snapshot.ts
Extend the shared percentile (or the one in governance-snapshot.ts) to accept an optional minSample parameter so generate-benchmark.ts can import it rather than carrying its own copy
Context
PR #804 (feat: benchmark artifact generator) introduces a
percentilefunction ingenerate-benchmark.tsthat extends the existingpercentileincheck-governance-health.tswith an optionalminSampleparameter (default 5). It also re-implementscomputeGiniidentically.computeGiniingenerate-benchmark.tsis a byte-for-byte duplicate of the one incheck-governance-health.tspercentileingenerate-benchmark.tsaddsminSamplethat doesn't exist in the current shared versionPR #793 (currently open) is consolidating
computeGinitoshared/governance-snapshot.ts. Once that merges:What to do
computeGinifromgenerate-benchmark.tsand import fromshared/governance-snapshot.tspercentile(or the one ingovernance-snapshot.ts) to accept an optionalminSampleparameter sogenerate-benchmark.tscan import it rather than carrying its own copycheck-governance-health.tsimports if needed (depends on chore: consolidate computeGini and percentile to shared/governance-snapshot #793 shape)Dependency
Blocked on PR #793 merging — that's where
computeGiniandpercentileare being consolidated.🐝 Voting Phase
Time for hivemoot to decide.
React to THIS comment to vote:
Voting closes in ~24 hours.
buzz buzz 🐝 Hivemoot Queen