Skip to content

refactor: remove legacy code, consolidate tests and docs - #376

Open
Hyperkid123 wants to merge 9 commits into
OpenShift-Fleet:masterfrom
Hyperkid123:rehor-56/repo-cleanup
Open

Hyperkid123 wants to merge 9 commits into
OpenShift-Fleet:masterfrom
Hyperkid123:rehor-56/repo-cleanup

Conversation

@Hyperkid123

Copy link
Copy Markdown
Contributor

Summary

  • Remove dead code: prompts/, costs.sh, scripts/seed-costs.py, start-chromium.sh, rehor-config/
  • Consolidate root tests/ into bot/tests/ (single test root)
  • Move ARCHITECTURE.md, OPERATIONS.md, SETUP.md into docs/
  • Fix all stale cross-references in README, OPERATIONS, onboarding docs, Makefile
  • Remove orphaned Makefile targets (costs, seed-costs)

What was removed and why

Removed Reason
prompts/ (3 files) Superseded by presets system
costs.sh Dashboard handles cost reporting
scripts/seed-costs.py One-time migration script, already run
start-chromium.sh Moved to browser env preset (#373)
rehor-config/ No longer used by any instance
tests/ (root) Moved to bot/tests/

-1,145 lines deleted across 31 files.

Test plan

  • pytest bot/tests/ — 270 passed
  • All doc cross-references verified
  • No remaining references to deleted files (grep clean)

REHOR-56

🤖 Generated with Claude Code

@Hyperkid123
Hyperkid123 force-pushed the rehor-56/repo-cleanup branch from 5e40810 to 337ad8c Compare July 30, 2026 13:27
@Hyperkid123

Copy link
Copy Markdown
Contributor Author

/retest

Hyperkid123 and others added 5 commits July 31, 2026 10:39
Phase 1 — Delete dead code:
- Remove prompts/ (superseded by presets system)
- Remove costs.sh (dashboard handles cost reporting)
- Remove scripts/seed-costs.py (one-time migration, already run)
- Remove start-chromium.sh (moved to browser env preset in OpenShift-Fleet#373)
- Remove rehor-config/ (no longer used by any instance)

Phase 2 — Consolidate tests:
- Move tests/*.py into bot/tests/ (single test root)
- Fix sys.path in test_new_work.py for new location

Phase 3 — Consolidate docs:
- Move ARCHITECTURE.md, OPERATIONS.md, SETUP.md into docs/
- Update all cross-references in README.md, OPERATIONS.md,
  onboarding-new-instance.md, dashboard/DEVELOPMENT.md
- Remove stale references to deleted files

REHOR-56

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove costs.sh/seed-costs Makefile targets (scripts deleted)
- Remove cost make targets from README
- Update onboarding doc to reference existing instances instead of
  deleted rehor-config/
- Remove stale costs.sh comment in bot/costs.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move identical claim-ticket (849 lines) and wrap-up (347 lines)
skills from jira-kanban and jira-sprint workflow dirs to
presets/shared/skills/. Both workflow manifests updated to load
from shared_skills instead of provides.skills.

REHOR-56

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove dead _get_cycle_runs_url import and TestGetCycleRunsUrl class
  from test_transcripts.py (function removed in 86d9abd)
- Add pytest.skip for test_new_work.py (module only exists at runtime)
- Add pytest-asyncio dep, register asyncio marker and set asyncio_mode

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Hyperkid123
Hyperkid123 force-pushed the rehor-56/repo-cleanup branch from 08a683c to 105c7d7 Compare July 31, 2026 08:40
Hyperkid123 and others added 2 commits July 31, 2026 10:45
conftest.py was deleted in a18a982 but tests still import from it.
Adds sys.path setup so `from scripts.claim_ticket_operations` resolves.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Hyperkid123

Copy link
Copy Markdown
Contributor Author

/retest

Hyperkid123 and others added 2 commits July 31, 2026 13:06
Integration tests require a running docker-compose stack. Skip gracefully
in CI where docker binary is not available instead of erroring.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant