ryan
4d6be2fa77
fix(drivers): propagate app-lifetime context through inproc cron/worker drivers
...
cron 触发与 worker 执行的任务现在继承应用生命周期 context(关闭时级联取消,带超时子上下文),
替代裸 context.Background()。contextcheck 清零。
lint_issues 26→24
2026-08-28 17:04:44 +08:00
ryan
867fcb2288
refactor: revive cleanup — unused params to _, add missing doc comments
...
- admin/db_helper GetCache/GetUserService/GetAuthService: ctx -> _ (签名对称保留)
- validateMergedStorageConfig / ParseMigrationTargetConfig / MockStorageService.Put 未用参数 -> _
- SetDBServiceForTest、StorageDriver 常量组补充文档注释
lint_issues 33→26
2026-08-28 16:53:32 +08:00
ryan
6e12a7fd5d
fix(admin): propagate cache errors in FlushTaskExecutionLog
...
缓存故障(非 ErrCacheMiss)不再被静默吞掉:上抛包装错误,避免缓冲任务日志丢失并误报持久化成功;
ErrCacheMiss 仍视为无日志的正常路径。附 3 个回归测试(故障/未命中/持久化+清理)。
lint_issues 34→33 (nilerr 清零)
2026-08-28 16:50:03 +08:00
ryan
cf85a56aa7
refactor: eliminate string/magic-number literals (goconst, mnd) and fix const-type grouping (SA9004)
...
- upload/task: taskCategoryUpload/taskQueueDefault 常量替代 8 处字面量
- admin: 复用既有 logDBNameSQLite 常量替代 3 处 "sqlite" 字面量
- pkg/cache/disk: defaultCleanupInterval 命名常量
- driver_asynq_worker/executor: 分离 contextKey 类型常量组
lint_issues 45→34, tests 44/44
2026-08-28 16:38:18 +08:00
ryan
528240026d
chore(lint): unify formatting on golangci-lint fmt (gofumpt), uncap issue reporting, fix gofumpt drift
...
- make format 现在与 code-check 使用同一格式化器(golangci-lint fmt),消除 goimports -local 与 gofumpt 的格式拉锯
- .golangci.yml 关闭默认 50/3 截断,完整上报所有问题(只增强不弱化)
- 全库 gofumpt 规范化(203 files, 纯格式无行为变更)
2026-08-28 16:31:53 +08:00
ryan
3a61c38dc5
fix(core): delegate driver and task extension lookups to root context and improve test reliability
2026-08-28 16:09:18 +08:00
ryan
3df621637f
fix(db): ensure sqlite data directory exists before opening database
2026-08-28 15:42:24 +08:00
ryan
692b4b4851
feat(db): split migrations into dialect-specific sqlite and postgres packages
2026-08-28 15:36:03 +08:00
ryan
06508b6f13
refactor(drivers): decouple inproc cron from inproc worker and satisfy linter
2026-08-28 15:17:11 +08:00
ryan
e434e6dc0a
feat(drivers): provide TaskService implementation in inproc worker
2026-08-28 15:14:27 +08:00
ryan
25647df3cf
feat(drivers): implement in-process cron scheduler driver plugin
2026-08-28 15:13:24 +08:00
ryan
d8e69bb31b
feat(drivers): implement in-process async worker driver plugin
2026-08-28 15:12:42 +08:00
ryan
98d2c1cbd0
feat(infra): implement zero-dependency pure in-memory cache plugin
2026-08-28 15:11:46 +08:00
ryan
299ac30ee4
refactor(core): align with cordis spatiotemporal composability architecture
...
- Purify core micro-kernel by removing context hardcoded helpers and reverse dependencies
- Eliminate init() side effects in infra plugins with reversible lifecycle disposal
- Completely isolate plugins by removing cross-plugin imports and using core/contracts
- Introduce TaskService and RiskControlService contracts for unified cross-plugin APIs
- Regenerate Swagger documentation and update developer guide matrix
- Achieve 0 violations in check_cordis_architecture.sh and 100% test pass
2026-08-28 15:05:31 +08:00
ryan
48211fa587
chore: code-check
2026-08-28 13:42:49 +08:00
ryan
9213ee79b3
refactor(core): finalize context test and standalone repository fallback
2026-08-28 13:38:22 +08:00
ryan
a296818922
refactor(user): decouple repository from direct database infra import
2026-08-28 13:37:13 +08:00
ryan
e19bf36580
refactor(core): align architecture with cordis spatiotemporal composability
2026-08-28 13:28:58 +08:00
ryan
9f8890d159
refactor(module): simplify module name to Wavelet and standardize import paths
...
- Declared module Wavelet in backend/go.mod
- Replaced github.com/Rain-kl/Wavelet/ with clean Wavelet/ import paths across backend codebase
- Updated architecture guards, Makefile, swagger, and build tests
- 100% passed all tests, lint checks, and binary compilation
2026-08-28 13:10:30 +08:00
ryan
f2ab94501c
refactor(layout): relocate go.mod to backend/ and clean import paths to module root
...
- Relocated go.mod and go.sum into backend/ root directory
- Stripped redundant backend/ segments from all Go imports (github.com/Rain-kl/Wavelet/...)
- Unified Makefile, swagger, and build-test to execute in backend/ module context
- Ensured 100% build-test, code-check, format, and swagger pass
2026-08-28 13:01:51 +08:00
ryan
43dc97e48c
refactor(layout): consolidate backend codebase into backend/ package and clean root directory
...
- Moved cmd/, core/, plugins/, pkg/, downstream/, and main.go into backend/ directory
- Batch updated all Go source files to import github.com/Rain-kl/Wavelet/backend/...
- Updated Makefile, scripts/swagger.sh, architecture guards, and platform skills
- Passed all quality gates (100% tests, 0 lint issues, clean build)
2026-08-28 12:56:02 +08:00