Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a3eeed8112 | |||
| f76f50c704 |
@@ -5,6 +5,11 @@ All notable changes to the `theta-agent` daemon will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [v2.1.3] - 2026-08-10
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **v2.1.2's release build failed on the Windows CI leg.** `TestApplyHostsOverride_*` call `applyHostsOverride()`, which correctly refuses unconditionally on non-Linux — but the tests didn't skip themselves there, so `go test ./...` failed on the Windows build job. v2.1.2's actual code (the mDNS local-discovery feature itself) was never broken; only that release's CI run was. Tests now skip cleanly on non-Linux with a clear reason.
|
||||||
|
|
||||||
## [v2.1.2] - 2026-08-10
|
## [v2.1.2] - 2026-08-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@@ -11,6 +12,14 @@ import (
|
|||||||
|
|
||||||
func withTempHostsFile(t *testing.T, initial string) string {
|
func withTempHostsFile(t *testing.T, initial string) string {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
// applyHostsOverride refuses unconditionally on non-Linux (see
|
||||||
|
// hosts_override.go) -- these tests exercise the Linux write path
|
||||||
|
// specifically, so they'd fail for the right reason on the Windows CI
|
||||||
|
// runner if not skipped. Confirmed the hard way: a real CI run failed
|
||||||
|
// here after this was missed.
|
||||||
|
if runtime.GOOS != "linux" {
|
||||||
|
t.Skip("applyHostsOverride is Linux-only; skipping on " + runtime.GOOS)
|
||||||
|
}
|
||||||
dir := t.TempDir()
|
dir := t.TempDir()
|
||||||
path := filepath.Join(dir, "hosts")
|
path := filepath.Join(dir, "hosts")
|
||||||
if initial != "" {
|
if initial != "" {
|
||||||
|
|||||||
+1
-1
@@ -425,7 +425,7 @@ func collectHostDetails() HostDetails {
|
|||||||
return details
|
return details
|
||||||
}
|
}
|
||||||
|
|
||||||
const AgentVersion = "v2.1.2"
|
const AgentVersion = "v2.1.3"
|
||||||
|
|
||||||
// CollectDiscoveryData gathers static host information.
|
// CollectDiscoveryData gathers static host information.
|
||||||
func CollectDiscoveryData(cfg *Config) DiscoveryData {
|
func CollectDiscoveryData(cfg *Config) DiscoveryData {
|
||||||
|
|||||||
Reference in New Issue
Block a user