Skip to content

feat: migrate audit server runtime to gnet v2#24

Merged
ncode merged 3 commits intomainfrom
juliano/gnet
Feb 11, 2026
Merged

feat: migrate audit server runtime to gnet v2#24
ncode merged 3 commits intomainfrom
juliano/gnet

Conversation

@ncode
Copy link
Owner

@ncode ncode commented Feb 11, 2026

Summary

  • migrate audit server networking integration from gnet v1 to gnet v2 by switching to gnet.Run, embedding gnet.BuiltinEventEngine, and adding an OnTraffic adapter that delegates to a shared frame handler
  • preserve current behavior and test compatibility by keeping React as a temporary shim while removing v1 dependency from go.mod and updating gnet imports/tests
  • capture and archive the completed OpenSpec change (migrate-gnet-v2), sync main spec for gnet-v2-runtime-compatibility, and seed a follow-up change for React-to-OnTraffic test migration

Verification

  • go test -v ./pkg/auditserver -run 'TestAuditServer_React|TestReact_.*'
  • go test -v ./cmd -run 'TestAuditServerCmd_.*'
  • go test -v ./pkg/auditserver -run '^$' -bench '^BenchmarkReact$' -benchtime=1x
  • go test -tags=integration -run '^$' ./...
  • go fmt ./...
  • go vet ./...
  • go test -v -race ./pkg/auditserver ./cmd
  • go test -v -race ./...

Switch command/server wiring to gnet v2 with an OnTraffic adapter while preserving React-based compatibility for existing tests and integration paths during migration.
@codecov-commenter
Copy link

codecov-commenter commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.64%. Comparing base (5ce6478) to head (1ca1714).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   95.39%   95.64%   +0.24%     
==========================================
  Files          10       10              
  Lines         543      551       +8     
==========================================
+ Hits          518      527       +9     
+ Misses         20       19       -1     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ncode ncode merged commit d60a650 into main Feb 11, 2026
5 checks passed
@ncode ncode deleted the juliano/gnet branch February 11, 2026 03:31
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.

2 participants

Comments