Skip to content

chore: upgrade Go to 1.27 and align CI checks - #2

Merged
tobyxdd merged 1 commit into
HyNetworks:masterfrom
yuluo-yx:0920-yuluo/go-127
Sep 21, 2026
Merged

tobyxdd merged 1 commit into
HyNetworks:masterfrom
yuluo-yx:0920-yuluo/go-127

Conversation

@yuluo-yx

@yuluo-yx yuluo-yx commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

AS TITLE

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

All reviewed changes are covered by focused tests with no unresolved blocking issues.

Review effort: Lite
Findings: None

What changed in this PR

Upgrades the project to Go 1.27, modernizes APIs, improves shutdown synchronization, and aligns CI checks.

Changes:

  • Replaces legacy syntax and manual helpers with modern Go APIs.
  • Ensures workers complete before engine shutdown.
  • Adds regression tests and updates CI/release tooling.
File Description
ruleset/​expr.go Uses any in rule data structures.
ruleset/​builtins/​geo/​matchers_v2geo.go Uses slices.SortFunc.
ruleset/​builtins/​geo/​matchers_v2geo_test.go Tests network sorting and matching.
modifier/​udp/​dns.go Updates modifier argument types.
modifier/​interface.go Modernizes modifier interfaces.
go.mod Requires Go 1.27.
engine/​utils.go Updates logger argument types.
engine/​tcp.go Uses the built-in min.
engine/​interface.go Updates logger interface types.
engine/​engine.go Waits for workers during shutdown.
engine/​engine_test.go Tests worker lifecycle and quotas.
cmd/​root.go Updates logger implementations.
analyzer/​udp/​internal/​quic/​payload.go Uses modern sorting APIs.
analyzer/​udp/​internal/​quic/​payload_test.go Tests QUIC frame assembly.
analyzer/​udp/​internal/​quic/​packet_protector.go Uses integer range syntax.
analyzer/​tcp/​http.go Uses modern header parsing APIs.
analyzer/​tcp/​http_test.go Tests header values containing colons.
analyzer/​tcp/​fet.go Uses bits.OnesCount8 and max.
analyzer/​tcp/​fet_test.go Tests FET metrics.
analyzer/​interface.go Modernizes analyzer types.
.github/​workflows/​release.yaml Builds releases with Go 1.27.
.github/​workflows/​check.yaml Aligns checks and adds race testing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tobyxdd
tobyxdd merged commit d5c1141 into HyNetworks:master Sep 21, 2026
@yuluo-yx
yuluo-yx deleted the 0920-yuluo/go-127 branch September 22, 2026 04:00
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.

3 participants