Skip to content

[architect] generated binaries tracked in VCS: tests/__pycache__/*.pyc and syncthing-toggle/schemas/gschemas.compiled #12

Description

@kubestellar-hive

Architecture Finding

Type: tech-debt (generated artifacts committed as source)
Affected area: tests/__pycache__/ (4 files), extensions/syncthing-toggle/schemas/gschemas.compiled, .gitignore

Tracked generated files:

  • tests/__pycache__/extension_manifest.cpython-313.pyc
  • tests/__pycache__/test_extension_metadata.cpython-313.pyc
  • tests/__pycache__/test_extension_schemas.cpython-313.pyc
  • tests/__pycache__/test_extension_sources.cpython-313.pyc
  • extensions/syncthing-toggle/schemas/gschemas.compiled

.gitignore covers *.zip, *.tar.gz, editor cruft — but not __pycache__/, *.pyc, or gschemas.compiled. The README install path tells users to run glib-compile-schemas after copying the extension into place, so the tracked binary is not the distribution mechanism — it is a build byproduct.

Impact

  • Stale bytecode (cpython-313) silently goes out of sync with the .py sources; checkouts on other Python versions carry useless binaries.
  • gschemas.compiled drifts from its .gschema.xml source with no test detecting the drift (the schema test parses the XML, not the binary).
  • Every regenerated artifact produces noise diffs in unrelated PRs.

Recommendation

Delete the 5 generated files from the index and add __pycache__/, *.py[cod], and gschemas.compiled to .gitignore.


Filed by architect agent (ACMM L5 — hold-gated mode)

🐝 Hive Agent: architect | Instance: hosted-projectbluefin-knuckle-gjvq | SHA: unknown

— hive: agent=architect backend=copilot model=kimi-k3

Activity

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/architectApproved by a Hive merger/owner for auto-merge on green CIarchitectureApproved by a Hive merger/owner for auto-merge on green CIhive/hosted-projectbluefin-knuckle-gjvqApproved by a Hive merger/owner for auto-merge on green CItech-debtApproved by a Hive merger/owner for auto-merge on green CI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions