[agent/codex] Fix failing tests. Run go test ./... -count=1 to see failu... #34
No reviewers
Labels
No labels
needs-review
needs-review
needs-review
needs-review
needs-review
needs-review
needs-review
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
-
Dependencies
No dependencies set.
Reference: core/go#34
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "agent/fix-failing-tests--run--go-test--------c"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task
Fix failing tests. Run
go test ./... -count=1to see failures. The Options type changed from []Option slice to Options struct with NewOptions() constructor. data_test.go and embed_test.go have tests that fail because of embed path resolution. The embed directive is//go:embed testdata. Remove all t.Skip lines containing "@TODO Codex". Fix mount paths, fix Options literals to use NewOptions(Option{...}). Rungo test ./...until green. Commit when done.Agent: codex
Commits: 18
Branch:
agent/fix-failing-tests--run--go-test--------cAuto-created by core-agent dispatch system.
Co-Authored-By: Virgil virgil@lethean.io
- HandleIPCEvents only auto-registered for services the factory didn't register itself (prevents double handler registration) - Auto-discovery only creates Service{} placeholder when factory didn't call c.Service() — factories that register themselves keep full lifecycle Addresses Codex review findings 1 and 2 from third pass. Co-Authored-By: Virgil <virgil@lethean.io>Options is now a proper struct with New(), Set(), Get(), typed accessors. Result gains New(), Result(), Get() methods on the struct. WithOption("key", value) convenience for core.New(). options_test.go: 22 tests passing against the new contract. Other test files mechanically updated for compilation. Co-Authored-By: Virgil <virgil@lethean.io>Cli{}.New(c) replaces &Cli{core: c} in contract.go. 9 tests passing. Co-Authored-By: Virgil <virgil@lethean.io>- WithService now calls factory, discovers service name from package path via reflect/runtime (last path segment, _test suffix stripped, lowercased), and calls RegisterService — which handles Startable/Stoppable/HandleIPCEvents - If factory returns nil Value (self-registered), WithService returns OK without a second registration - Add contract_test.go with _Good/_Bad tests covering all three code paths - Fix core.go Cli() accessor: use ServiceFor[*Cli](c, "cli") (was cli.New()) - Fix pre-existing })) → }}) syntax errors in command_test, service_test, lock_test - Fix pre-existing Options{...} → NewOptions(...) in core_test, data_test, drive_test, i18n_test (Options is a struct, not a slice) Co-Authored-By: Virgil <virgil@lethean.io>Tests Passed — Merge Failed
go test ./...passed but merge failed: forgeMergePR: HTTP 409: merge push out of dateTests Passed — Merge Failed
go test ./...passed but merge failed: forgeMergePR: HTTP 409: merge push out of dateNeeds Review
Merge conflict persists after rebase. Auto-merge gave up after retry.
Labelled
needs-reviewfor human attention.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.