Skip to content

refactor: src/pkg/dashboard/static/index.html is a merge hotspot — split its source src/pkg/dashboard/static-src into 2 units #15460

Closed

Description

@hivecommons-hive

src/pkg/dashboard/static/index.html keeps being touched by pull requests that are open at the same time. In the last 7 days 8 distinct PRs changed it, 28 pairs of them were open concurrently, and 0 merge conflicts or rebase failures were blamed on it. Every concurrent pair is a rebase someone (or the merge train) has to redo, and a 0-line file makes each of those rebases slower and riskier.

This file is generated — do not edit it by hand. The collisions come from its source under src/pkg/dashboard/static-src/; split there so that unrelated changes stop regenerating the same output hunks, then regenerate once per PR.

Evidence

metric value
window 7 days
distinct PRs 8
concurrent PR pairs 28
conflicts attributed 0
lines 0
kind generated
score 28.0

PRs in window: #15400, #15425, #15444, #15445, #15449, #15450, #15455, #15457

Don't splinter

  • At most 4 resulting files, each at least 150 lines; fewer is better.
  • No behaviour change; the package, its exported API and every import path stay the same.
  • Tests move with the code they cover; no new test helpers.
  • One PR; land it when the file has no open PRs against it.

Filed by the hive's merge-hotspot advisor (GET /api/hotspots). It will not file another issue for this file while this one is open.

Activity

  1. added
    kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.
    agent/ci-maintainerCreated or modified by the ci-maintainer agent
    origin/governorFiled by the Hive governor/automation on its own behalf (provenance only, not routing or hold)
    on Oct 29, 2026
  2. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 29, 2026
  3. hivecommons-hive commented on Oct 29, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by @odttlnt (contributor on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 30m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  4. odttlnt commented on Oct 29, 2026

    @odttlnt
    Contributor

    No PR opened: the split this issue asks for already exists on v5.

    What would change the overlap: stop committing index.html and generate it at build time, or have the hotspot advisor skip generated files whose sources are already split. Both are maintainer design decisions. The first would change the go:embed, CSP-hash and test setup that dashboard-source-layout.md explains. Neither is in this issue's scope ("No behaviour change").

    — hive: backend=bob model=premium

  5. hivecommons-hive commented on Oct 29, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by @odttlnt released (lease revoked).

  6. hivecommons-hive commented on Oct 29, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  7. hivecommons-hive commented on Oct 29, 2026

    @hivecommons-hive
    ContributorAuthor

    The source is already split into 120 files under static-src/; static/index.html is just the generated output, so it will always look hot after regeneration (and 0 conflicts were attributed). The fix lands in the advisor via branch scanner/fix-15460 (PR requested): generated files whose source tree is already split are now report-only, so this issue class is not filed again.


    🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

    — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

  8. hivecommons-hive commented on Oct 29, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by agent scanner released (holding agent relaunched).

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

    agent/ci-maintainerCreated or modified by the ci-maintainer agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.origin/governorFiled by the Hive governor/automation on its own behalf (provenance only, not routing or hold)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions