Skip to content

Remove obsolete workflows, optimize codebase#6

Merged
houfu merged 2 commits into
mainfrom
fix/remove-obsolete-workflows
Mar 25, 2026
Merged

Remove obsolete workflows, optimize codebase#6
houfu merged 2 commits into
mainfrom
fix/remove-obsolete-workflows

Conversation

@houfu

@houfu houfu commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Workflow cleanup

  • Remove new_release.yml and publish.yml — used import toml (not installed), referenced pre-workspace paths, had confusing auto-bump version. Publishing handled by publish-zeeker.yml and publish-common.yml.

Production code optimization

  • Fix bare except: clauses in sources_page.py
  • Fix malformed version string in manage.py (stray backtick)
  • Fix hash collision bug in zeeker-common (pipe → null byte separator)
  • Add missing sync_retry export to zeeker-common
  • Consolidate duplicate S3 upload logic in deployer.py
  • Deduplicate cache key generation in async_executor.py
  • Avoid double module loading in builder → processor path
  • Extract CLI boilerplate into shared helpers (require_project, require_database, create_deployer, load_env) — ~80 lines of duplication removed
  • Remove legacy deprecated generate command
  • Merge 4 Jinja2 templates into 1 unified resource_template.py.j2 (-470 lines)
  • Merge 4 fallback generator methods into 1

Test optimization

  • Delete duplicate test_deployer_integration.py (-20 tests)
  • Remove framework/trivial tests (dotenv library, Click help, Click version)
  • Consolidate zeeker-common test boilerplate with fixtures
  • Add command layer tests (helpers, metadata, backup, assets)

Results

Metric Before After
Tests 369 350 (-19)
Coverage 68.95% 75.79% (+6.84%)
Net lines +2153 removed, +1761 added -392 lines

Test plan

  • All 350 tests pass
  • Coverage increased to 75.79%
  • No stale references to deleted files
  • Black formatting clean

🤖 Generated with Claude Code

houfu and others added 2 commits March 25, 2026 20:22
new_release.yml and publish.yml used `import toml` (not installed),
referenced old non-workspace paths, and had a confusing auto-bump
version feature. Publishing is now handled by the per-package
publish-zeeker.yml and publish-common.yml workflows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Production code:
- Fix bare except clauses in sources_page.py
- Fix malformed version string in manage.py
- Add sync_retry to zeeker-common exports
- Fix hash collision bug (use null byte separator instead of pipe)
- Consolidate duplicate S3 upload logic in deployer.py
- Deduplicate cache key generation in async_executor.py
- Pass pre-loaded module from builder to processor (avoid double load)
- Extract common CLI helpers: require_project, require_database,
  create_deployer, load_env — eliminating ~80 lines of boilerplate
- Remove legacy deprecated generate command
- Merge 4 .j2 templates into 1 unified resource_template.py.j2
- Merge 4 fallback generator methods into 1 in templates.py

Tests:
- Delete duplicate test_deployer_integration.py (-20 tests)
- Remove framework/trivial tests (dotenv, CLI help, Click)
- Consolidate zeeker-common test boilerplate with fixtures
- Remove trivial config tests
- Add command layer tests (helpers, metadata, backup, assets)

Result: 369 → 350 tests, 68.95% → 75.79% coverage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@houfu houfu changed the title Remove obsolete pre-workspace release workflows Remove obsolete workflows, optimize codebase Mar 25, 2026
@houfu houfu merged commit d49803d into main Mar 25, 2026
2 checks passed
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