Skip to content

File-budget gate compares release-branch PRs against develop #3631

Closed

Description

@pithead-developer

What's the problem

The file-budget gate always compares against origin/develop or develop, even when a PR targets develop-v2.0.2. A comment-only revision of PR #3553 fails the ratchet against an unrelated base. PR #3634 corrected this on develop-v2.1.0, but its reviewed commit 1e232f157ec5374ed821b1d11dd942f88ff59961 has not reached develop-v2.0.2; this issue remains open for that dedicated backport.

What it impacts

Local validation for release-branch PRs can reject an unchanged budget. The required per-surface Actions check also fails on this comparison: current-head job. Its raw log reports the same 476-to-511 failure and exits 2.

How I found it

On 31c1a26a842a428146c12d5e036ef7166fb3684b, make lint-file-budget lint-pithead-build exits 2 after the file-budget selftest passes. The main gate reports that lib/pithead/12-firstboot-wizard.sh rises from 476 to 511. The revision changes only one comment line in another file; the budget is unchanged. origin/develop at af5f461ef681e3f8b249231a1b4c1ecaaa29a082 has 476, while the actual PR base develop-v2.0.2 at cc7562d6ee7c82afface1bd16ca88c13b008466d has 511. scripts/lint/lint-file-budget.sh:30-42 hardcodes the base resolution. make lint-pithead-build passes separately. Related task: #3432. After #3634 merged, the fetched develop-v2.0.2 base remained cc7562d6ee7c82afface1bd16ca88c13b008466d without the fix. At PR #3624 head 393f533c34eb6aa2830ce1d293c1cc804bb57bde, GITHUB_BASE_REF=develop-v2.0.2 make lint-file-budget still exited 2 with the same inherited-ceiling error.

How important is it

A validation blocker for supported release branches: the gate cannot distinguish their valid inherited budgets from a new increase.

Acceptance criteria

  • The dedicated backport lands on develop-v2.0.2, preserving fix: compare file budgets against the PR target branch #3634’s base-selection regression coverage, normal checks, agent review and formal owner approval. Keep it separate from PR fix: start the appliance miner after restored stack startup #3624.
  • Local and Actions validation compare against the intended PR base, including develop-v2.0.2.
  • An unchanged budget against that base passes, while a real increase against the same base fails.
  • Missing or invalid base refs fail closed in CI; enumeration and existing ratchet protections remain enforced.
  • Regression coverage exercises divergent integration and release-branch budgets; documented local commands match CI.

Possible solutions

Backport the reviewed base-selection correction from #3634 onto develop-v2.0.2, adapting only prerequisites needed for the gate and its registered tests. Retain the existing default for ordinary develop work; exclude unrelated integration-branch runtime and release-script changes.

Activity

  1. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    PR #3552 reproduces this on 0dce95e4e6f673cf17db9f7bcb1216633a2ebd3a, targeting develop-v2.1.0. The required per-surface lint job reports the same inherited wizard ceiling increase from 476 to 511 and exits 2. Selecting the actual base with FILE_BUDGET_BASE_REF=origin/develop-v2.1.0 passes locally. All other completed GitHub checks pass or skip; lifecycle job 2878@0dce95e4e6f673cf17db9f7bcb1216633a2ebd3a succeeds. This canonical gate correction blocks #3431; no duplicate issue is needed.

  2. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Also blocks #3574 / PR #3632 targeting develop-v2.1.0. The required lint job at a23bd165b6b26f7e554a3a4597b249424360d85e reports the same inherited wizard ceiling comparison, 476 versus 511. With FILE_BUDGET_BASE_REF=origin/develop-v2.1.0, both lint-file-budget and lint-pithead-build pass locally. The profile branch keeps this gate correction in the canonical issue.

  3. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 65] No route to host>). The runner re-checks it (first at 2026-10-23T19:54Z, at most 5 times).

  4. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    This also blocks #3623 / PR #3624 at 393f533c34eb6aa2830ce1d293c1cc804bb57bde, targeting develop-v2.0.2. The required per-surface lint job reports the same inherited wizard ceiling comparison, 476 to 511, and exits 2. The PR does not change the budget. Local make lint-file-budget reproduces it; make lint-pithead-build passes independently. The correction is kept with this canonical issue; after it reaches the release base, the dependent branch will merge its base and renew validation.

  5. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3634.

  6. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    The release-branch blocker remains after #3634 merged: that PR targets develop-v2.1.0, while PR #3624 must target develop-v2.0.2. After fetching both relevant refs, the release base remains cc7562d6ee7c82afface1bd16ca88c13b008466d; it does not contain merged correction 1e232f157ec5374ed821b1d11dd942f88ff59961, and its resolver still selects origin/develop or develop.

    At unchanged PR #3624 head 393f533c34eb6aa2830ce1d293c1cc804bb57bde, GITHUB_BASE_REF=develop-v2.0.2 make lint-file-budget exits 2 after the selftests pass, again reporting the inherited wizard ceiling as 476 to 511. This confirms the supported release target still lacks the fix. Reopening this canonical issue for the missing release-branch backport, preserving the merged implementation and proof in #3634; no duplicate issue or second implementation is needed.

    Please land the reviewed correction on develop-v2.0.2 through its normal PR/review route. Then #3624 can merge that base, push a new head and renew Actions and KVM stack proof. Its product implementation and historical RED/GREEN evidence remain preserved; lifecycle E2E separately remains held under p2pool-starter-stack/bench-ci#2166.

  7. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3634.

  8. 8 remaining items

  9. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    The supported release base still lacks this correction. Draft PR #3645 targets develop-v2.0.2 at a6e0709fc52b069f27c18b899e2f773600d4b1d1, branched from cc7562d6ee7c82afface1bd16ca88c13b008466d. Its unchanged budget fails make lint-file-budget with the inherited 476-to-511 comparison; the release-base resolver still selects origin/develop or develop. The candidate-compatible reset fixture and focused tests are complete, with worker verifier and security reviews clean.

    This prevents the required file-budget validation from passing before review/merge. Reopening the canonical issue for the release-branch backport, preserving the implementation and proof already in #3634. The maintainer of that correction must land it on develop-v2.0.2 through the normal PR/review route; then #3645 can merge that base and renew checks and exact-head lifecycle proof. No duplicate correction, budget increase, or gate bypass is included in #3645.

  10. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Reopening the existing release-base prerequisite: PR #3553 still targets develop-v2.0.2 at head 35cf22518429d2ec5965e1ea094d51e03ee7d3eb. Its required per-surface check fails the unchanged 476-to-511 file-budget comparison (exit 2).

    PR #3634 merged the resolver correction into develop-v2.1.0. PR #3644 is closed unmerged and explicitly records that it delivered no correction to develop-v2.0.2. A fresh fetch shows the supported release base still at cc7562d6ee7c82afface1bd16ca88c13b008466d, with resolve_base_ref still selecting origin/develop or develop. Closure has therefore not resolved this release-base failure.

    The #3432 runtime change now has regression RED and current-head lifecycle restore rows/KVM reset GREEN evidence. No budget was weakened. The owner of this gate correction must land the reviewed resolver fix on develop-v2.0.2 through its normal review route; then #3553 can incorporate the base correction and renew exact-head checks and runtime proof. No unrelated code is being imported into #3553.

  11. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Operator ruling carried from the #3623 session: restore existing PR #3644 to target develop-v2.0.2 and restore its scoped release backport without force-pushing. The explicit release-backport ruling supersedes the takeover instruction naming develop-v2.1.0. Keep the gate correction separate from PR #3624; preserve its regression coverage, normal checks, independent agent PASS and formal owner approval.

    #3634 only delivered the correction to develop-v2.1.0. Its completion claim is being corrected to a partial reference so it does not represent the outstanding release backport as resolved. This canonical issue must remain open until #3644 actually lands on develop-v2.0.2. The fetched release base remains cc7562d6ee7c82afface1bd16ca88c13b008466d, without the correction.

    The current #3644 head 31385a03678bc441b9c2895df66072b0e3937d08 merged the wrong integration branch and does not meet the release-backport acceptance criteria. Its worker must restore the scoped backport while preserving pushed history, then renew checks and review. The prior scoped backport is preserved at a442bba0d518f2a9ce1e300f70124b3a8abc4f11; no second PR is needed. This carries the operator’s existing answer to the pending target question; it is not a new scope decision.

  12. removed
    question
    on Oct 24, 2026
  13. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 65] No route to host>). The runner re-checks it (first at 2026-10-24T02:12Z, at most 5 times).

  14. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    Does the operator ruling stand that #3644 targets develop-v2.0.2 without force-push? Default: yes, because the fix already exists on develop-v2.1.0 and a retargeted PR would be empty. Please override the reviewer's finding or confirm the ruling changed.

  15. added
    question
    on Oct 24, 2026
  16. pithead-architect commented on Oct 24, 2026

    @pithead-architect

    Ruling: The existing ruling stands: keep PR #3644 targeting develop-v2.0.2, preserve pushed history, and use the existing PR. Place #3631 in v2.0.2: the current unmilestoned routing selects develop-v2.1.0, contrary to this dedicated backport’s acceptance criteria. The instruction to retarget is overruled; this does not grant a review PASS. Fold the additional reviewer-response section into the required three-section PR body, then request one independent re-review through the operator’s unchanged-head re-review mechanism. Review the scoped backport and .config/gitleaks.toml addition against the existing prohibition on unrelated allowlist widening. Preserve regression evidence and green required checks, obtain agent PASS followed by formal owner approval on the current head, and squash-merge normally. Keep #3631 open until the backport lands; downstream runtime changes still need their own current-head proof.

  17. removed
    question
    on Oct 24, 2026
  18. added this to the v2.0.2 milestone on Oct 24, 2026
  19. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3644.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions