mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-04 17:18:35 +02:00
* fix(daemon): gate codex session pointer writes on rollout presence (MUL-5305) Codex issue follow-ups on local_directory projects intermittently lost their session: the server sent a prior session whose rollout was not in the task CODEX_HOME, so the daemon dropped the resume and started a fresh thread (gateCodexResumeToRolloutPresence), losing the conversation. Root of the bad pointer: the daemon persists a Codex session id as the resumable pointer at two points -- the mid-flight pin and the terminal report -- before the rollout is guaranteed on disk. A task that exits early (crash / runtime offline / timeout) leaves a pinned/reported session id with no rollout; GetLastTaskSession (which accepts failed rows) then hands it to the next follow-up, which drops it. Enforce the invariant at write time: only record a Codex session as the resumable pointer once its rollout is present in the per-issue store, with a short bounded wait for flush. If it never lands, don't overwrite the last good pointer -- a blanked session_id becomes NULL server-side, so GetLastTaskSession falls back to the most recent session whose rollout is real. Non-Codex providers are unaffected; crash recovery is preserved because a present rollout still pins. - codexSessionResumable: shared write-time presence check (bounded wait) - runTask: gate the terminal session_id before reporting - executeAndDrain: gate the mid-flight pin (thread codexHome through) - tests: helper cases + behavioral pin test Co-authored-by: multica-agent <github@multica.ai> * fix(daemon): address review — don't silently downgrade completed sessions (MUL-5305) Follow-up to review feedback on #5960: - Must-fix 1 (silent downgrade): limit the write-time session withholding to NON-completed terminal states. A missing rollout means no resumable conversation was persisted, so a withheld non-completed attempt loses nothing; a completed session is authoritative and, if its rollout is anomalously absent, is still recorded so the next run's resume gate discloses the loss (PriorSessionResumeUnavailable, MUL-4424) instead of silently falling back to an older session. Extracted resumableTerminalSessionID. - Non-blocking risk: pin the mid-flight resume pointer with a per-status presence check instead of one fixed 2s window, and set sessionPinned only once the rollout is confirmed, so a rollout that lands shortly after the first status is still pinned this run. - Must-fix 2 (regression coverage): pin skipped when rollout absent (no /session call); terminal helper (completed keeps / failed withholds); and a DB-backed GetLastTaskSession test proving the next claim falls back to the older recorded session when the latest was blanked. Co-authored-by: multica-agent <github@multica.ai> * fix(daemon): disclose Codex session continuity gaps end-to-end (MUL-5305) Addresses review feedback on #5960. Must-fix 1 — a completed turn whose rollout is missing is exactly the #5934 case (the reporter waits for each turn to finish), so it can no longer be excluded from withholding. Withhold the session for ANY terminal state, and pair the withhold with a persisted continuity-gap signal so the next claim still discloses the loss even while resuming an older good session: - new agent_task_queue.session_rollout_missing column (migration 224) - daemon sends session_rollout_missing on the terminal report; the handler clears the resume pointer (MarkTaskSessionRolloutMissing, overriding FailAgentTask's COALESCE) and flags the row - claim reads GetLatestTaskRolloutMissing and sets a new prior_session_resume_unavailable response field, which the daemon ORs into the brief's PriorSessionResumeUnavailable disclosure Must-fix 2 — Codex reveals the session id on a single task_started status, so a one-shot presence check missed a rollout that flushed later and lost in-flight crash recovery. Pin via a background waiter bounded by the run's context that pins the moment the rollout lands. Tests: - completed + rollout missing -> next claim withholds the bad session AND flags the continuity gap (cross-layer DB test) - session pinned once its rollout appears after the status (mid-run) - pin skipped while the rollout is absent Co-authored-by: multica-agent <github@multica.ai> * fix(server): make continuity-gap write atomic + disclose on all claim paths (MUL-5305) Addresses review round 3 of #5960. Must-fix 1 — the previous handler-level marker ran AFTER the terminal transaction committed, and FailTask creates + wakes the auto-retry inside that same transaction, so a retry could claim the rollout-missing session before the marker cleared it (and a marker failure was swallowed). Move session_rollout_missing INTO the terminal write: CompleteAgentTask and FailAgentTask now force session_id NULL (overriding Fail's COALESCE that would keep a stale mid-flight pin) and set the flag in the SAME UPDATE, so the withhold + gap flag commit atomically with the retry creation. The flag is threaded through TaskService.CompleteTask/FailTask; the swallowed best-effort MarkTaskSessionRolloutMissing query is removed. Must-fix 2 — the daemon withholds for all Codex tasks, but only the issue non-rerun claim consumed the disclosure. Now every fallback path sets prior_session_resume_unavailable: the manual-rerun branch reads the source task's session_rollout_missing, and the chat branch reads a new GetLatestChatTaskRolloutMissing. Tests (cross-layer DB): - completed + rollout missing via the real CompleteAgentTask terminal write -> session withheld AND gap flagged - failed + rollout missing forces session_id NULL over the COALESCE- preserved mid-flight pin in ONE statement Deploy order: migration + server first, daemon second (new fields are omitempty and ignored by an old peer). Co-authored-by: multica-agent <github@multica.ai> * fix(handler): return 5xx on FailTask error + cover claim-response gap paths (MUL-5305) Addresses review round 4 of #5960. Must-fix 1 — the FailTask handler returned 400 on a service/DB error, but the daemon's terminal callback treats 400 as permanent (postJSONWithRetry / isTransientError bails without retrying). Since the fail transaction is now the sole persistence point for the withheld session + continuity-gap flag + auto-retry, a rolled-back fail must be retried, so return 5xx (an invalid request body still returns 400), mirroring CompleteTask. Regression: client.FailTask retries on a transient 5xx and eventually succeeds. Must-fix 2 — add claim-response-level regressions that drive the two new disclosure branches through buildClaimedTaskResponse: - chat: the latest terminal task on the session withheld -> the next chat claim sets prior_session_resume_unavailable - manual rerun: the source task withheld -> the rerun claim discloses These handler DB tests run under CI's fully-migrated database (the local workspace DB cannot set up the handler fixture). Co-authored-by: multica-agent <github@multica.ai> --------- Co-authored-by: Bohan-J <bohan@devv.ai> Co-authored-by: multica-agent <github@multica.ai>
406 lines
13 KiB
Go
406 lines
13 KiB
Go
package daemon
|
|
|
|
import (
|
|
"context"
|
|
"encoding/json"
|
|
"errors"
|
|
"net/http"
|
|
"net/http/httptest"
|
|
"runtime"
|
|
"strings"
|
|
"sync/atomic"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/multica-ai/multica/server/pkg/protocol"
|
|
)
|
|
|
|
func TestClient_IdentityHeaders_PostJSON(t *testing.T) {
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
if got := r.Header.Get("X-Client-Platform"); got != "daemon" {
|
|
t.Errorf("expected X-Client-Platform daemon, got %q", got)
|
|
}
|
|
if got := r.Header.Get("X-Client-Version"); got != "9.9.9" {
|
|
t.Errorf("expected X-Client-Version 9.9.9, got %q", got)
|
|
}
|
|
if got := r.Header.Get("X-Client-OS"); got != normalizeGOOS(runtime.GOOS) {
|
|
t.Errorf("expected X-Client-OS %q, got %q", normalizeGOOS(runtime.GOOS), got)
|
|
}
|
|
if got := r.Header.Get("Authorization"); got != "Bearer tok" {
|
|
t.Errorf("expected Authorization Bearer tok, got %q", got)
|
|
}
|
|
capabilities := make(map[string]bool)
|
|
for _, capability := range strings.Split(r.Header.Get("X-Client-Capabilities"), ",") {
|
|
capabilities[strings.TrimSpace(capability)] = true
|
|
}
|
|
for _, want := range []string{
|
|
protocol.DaemonCapabilitySkillBundlesV1,
|
|
protocol.DaemonCapabilityCoalescedCommentsV1,
|
|
} {
|
|
if !capabilities[want] {
|
|
t.Errorf("X-Client-Capabilities missing %q: %v", want, capabilities)
|
|
}
|
|
}
|
|
w.Header().Set("Content-Type", "application/json")
|
|
json.NewEncoder(w).Encode(map[string]string{"ok": "1"})
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
c.SetToken("tok")
|
|
c.SetVersion("9.9.9")
|
|
|
|
if err := c.postJSON(context.Background(), "/api/daemon/test", map[string]any{}, nil); err != nil {
|
|
t.Fatalf("postJSON: %v", err)
|
|
}
|
|
}
|
|
|
|
func TestClient_IdentityHeaders_GetJSON(t *testing.T) {
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
if got := r.Header.Get("X-Client-Platform"); got != "daemon" {
|
|
t.Errorf("expected X-Client-Platform daemon, got %q", got)
|
|
}
|
|
if got := r.Header.Get("X-Client-Version"); got != "1.2.3" {
|
|
t.Errorf("expected X-Client-Version 1.2.3, got %q", got)
|
|
}
|
|
if got := r.Header.Get("X-Client-OS"); got == "" {
|
|
t.Errorf("expected X-Client-OS to be set")
|
|
}
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.Write([]byte(`{}`))
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
c.SetToken("tok")
|
|
c.SetVersion("1.2.3")
|
|
|
|
var out map[string]any
|
|
if err := c.getJSON(context.Background(), "/api/daemon/test", &out); err != nil {
|
|
t.Fatalf("getJSON: %v", err)
|
|
}
|
|
}
|
|
|
|
func TestClient_VersionOmittedWhenUnset(t *testing.T) {
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
if got := r.Header.Get("X-Client-Platform"); got != "daemon" {
|
|
t.Errorf("expected X-Client-Platform daemon, got %q", got)
|
|
}
|
|
// SetVersion not called → header must be omitted (not "").
|
|
if vals := r.Header.Values("X-Client-Version"); len(vals) != 0 {
|
|
t.Errorf("expected X-Client-Version absent, got %v", vals)
|
|
}
|
|
w.WriteHeader(http.StatusNoContent)
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
if err := c.postJSON(context.Background(), "/api/daemon/test", nil, nil); err != nil {
|
|
t.Fatalf("postJSON: %v", err)
|
|
}
|
|
}
|
|
|
|
func TestClient_ListWorkspacesUsesDaemonEndpointAndETag(t *testing.T) {
|
|
var calls atomic.Int32
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
if r.URL.Path != "/api/daemon/workspaces" {
|
|
t.Errorf("path = %q, want /api/daemon/workspaces", r.URL.Path)
|
|
http.NotFound(w, r)
|
|
return
|
|
}
|
|
call := calls.Add(1)
|
|
if call == 1 {
|
|
if got := r.Header.Get("If-None-Match"); got != "" {
|
|
t.Errorf("first If-None-Match = %q, want empty", got)
|
|
}
|
|
w.Header().Set("ETag", `W/"workspace-v1"`)
|
|
w.Header().Set("Content-Type", "application/json")
|
|
_, _ = w.Write([]byte(`[{"id":"ws-1","name":"One"}]`))
|
|
return
|
|
}
|
|
if got := r.Header.Get("If-None-Match"); got != `W/"workspace-v1"` {
|
|
t.Errorf("If-None-Match = %q, want cached ETag", got)
|
|
}
|
|
w.WriteHeader(http.StatusNotModified)
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
first, err := c.ListWorkspaces(context.Background())
|
|
if err != nil {
|
|
t.Fatalf("first ListWorkspaces: %v", err)
|
|
}
|
|
second, err := c.ListWorkspaces(context.Background())
|
|
if err != nil {
|
|
t.Fatalf("second ListWorkspaces: %v", err)
|
|
}
|
|
if len(first) != 1 || len(second) != 1 || second[0] != first[0] {
|
|
t.Fatalf("cached workspaces mismatch: first=%+v second=%+v", first, second)
|
|
}
|
|
}
|
|
|
|
func TestClient_ListWorkspacesFallsBackToLegacyEndpointOnce(t *testing.T) {
|
|
var daemonCalls atomic.Int32
|
|
var legacyCalls atomic.Int32
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
switch r.URL.Path {
|
|
case "/api/daemon/workspaces":
|
|
daemonCalls.Add(1)
|
|
http.NotFound(w, r)
|
|
case "/api/workspaces":
|
|
legacyCalls.Add(1)
|
|
w.Header().Set("Content-Type", "application/json")
|
|
_, _ = w.Write([]byte(`[{"id":"ws-legacy","name":"Legacy"}]`))
|
|
default:
|
|
http.NotFound(w, r)
|
|
}
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
for i := 0; i < 2; i++ {
|
|
workspaces, err := c.ListWorkspaces(context.Background())
|
|
if err != nil {
|
|
t.Fatalf("ListWorkspaces call %d: %v", i+1, err)
|
|
}
|
|
if len(workspaces) != 1 || workspaces[0].ID != "ws-legacy" {
|
|
t.Fatalf("workspaces = %+v, want legacy response", workspaces)
|
|
}
|
|
}
|
|
if got := daemonCalls.Load(); got != 1 {
|
|
t.Fatalf("daemon endpoint calls = %d, want 1", got)
|
|
}
|
|
if got := legacyCalls.Load(); got != 2 {
|
|
t.Fatalf("legacy endpoint calls = %d, want 2", got)
|
|
}
|
|
}
|
|
|
|
// noSleepRetry replaces retrySleep with an immediate no-op so tests don't
|
|
// actually wait the 4s/8s/16s/... backoffs. Returns a restore func.
|
|
func noSleepRetry(t *testing.T) func() {
|
|
t.Helper()
|
|
prev := retrySleep
|
|
retrySleep = func(ctx context.Context, _ time.Duration) error {
|
|
if err := ctx.Err(); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
return func() { retrySleep = prev }
|
|
}
|
|
|
|
func TestIsTransientError(t *testing.T) {
|
|
cases := []struct {
|
|
name string
|
|
err error
|
|
want bool
|
|
}{
|
|
{"nil is not transient", nil, false},
|
|
{"5xx is transient", &requestError{StatusCode: http.StatusBadGateway}, true},
|
|
{"503 is transient", &requestError{StatusCode: http.StatusServiceUnavailable}, true},
|
|
{"408 is transient", &requestError{StatusCode: http.StatusRequestTimeout}, true},
|
|
{"429 is transient", &requestError{StatusCode: http.StatusTooManyRequests}, true},
|
|
{"400 is permanent", &requestError{StatusCode: http.StatusBadRequest}, false},
|
|
{"401 is permanent", &requestError{StatusCode: http.StatusUnauthorized}, false},
|
|
{"404 is permanent", &requestError{StatusCode: http.StatusNotFound}, false},
|
|
{"transport-level error is transient", errors.New("connection reset by peer"), true},
|
|
}
|
|
for _, tc := range cases {
|
|
t.Run(tc.name, func(t *testing.T) {
|
|
if got := isTransientError(tc.err); got != tc.want {
|
|
t.Fatalf("isTransientError(%v) = %v, want %v", tc.err, got, tc.want)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestIsIssueGCBatchUnsupported(t *testing.T) {
|
|
tests := []struct {
|
|
name string
|
|
err error
|
|
want bool
|
|
}{
|
|
{
|
|
name: "old server unmatched route",
|
|
err: &requestError{StatusCode: http.StatusNotFound, Body: "404 page not found"},
|
|
want: true,
|
|
},
|
|
{
|
|
name: "workspace access denied",
|
|
err: &requestError{StatusCode: http.StatusNotFound, Body: `{"error":"not found"}`},
|
|
want: false,
|
|
},
|
|
{
|
|
name: "transient server error",
|
|
err: &requestError{StatusCode: http.StatusInternalServerError, Body: "failure"},
|
|
want: false,
|
|
},
|
|
}
|
|
|
|
for _, tt := range tests {
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
if got := isIssueGCBatchUnsupported(tt.err); got != tt.want {
|
|
t.Fatalf("isIssueGCBatchUnsupported() = %v, want %v", got, tt.want)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
func TestPostJSONWithRetry_TransientThenSuccess(t *testing.T) {
|
|
defer noSleepRetry(t)()
|
|
|
|
var calls atomic.Int32
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
|
n := calls.Add(1)
|
|
if n < 3 {
|
|
w.WriteHeader(http.StatusBadGateway)
|
|
return
|
|
}
|
|
w.WriteHeader(http.StatusOK)
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
schedule := []time.Duration{time.Nanosecond, time.Nanosecond, time.Nanosecond}
|
|
if err := c.postJSONWithRetry(context.Background(), "/x", map[string]any{}, nil, schedule); err != nil {
|
|
t.Fatalf("postJSONWithRetry: %v", err)
|
|
}
|
|
if got := calls.Load(); got != 3 {
|
|
t.Fatalf("expected 3 attempts (2 transient + 1 success), got %d", got)
|
|
}
|
|
}
|
|
|
|
// TestFailTask_RetriesOnTransient5xxThenSucceeds pins the callback half of
|
|
// MUL-5305 Must-fix 1: FailTask's terminal transaction is now the sole
|
|
// persistence point for the withheld session and continuity-gap flag, so if the
|
|
// server returns a transient 5xx (the terminal tx rolled back), the daemon MUST
|
|
// retry until it lands — a 400 would make it bail immediately
|
|
// (TestPostJSONWithRetry_PermanentBailsImmediately) and drop the gap forever.
|
|
func TestFailTask_RetriesOnTransient5xxThenSucceeds(t *testing.T) {
|
|
defer noSleepRetry(t)()
|
|
|
|
var calls atomic.Int32
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
|
if calls.Add(1) < 3 {
|
|
w.WriteHeader(http.StatusInternalServerError)
|
|
return
|
|
}
|
|
w.WriteHeader(http.StatusOK)
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
if err := c.FailTask(context.Background(), "task-1", "boom", "", "", "timeout", true); err != nil {
|
|
t.Fatalf("FailTask: %v", err)
|
|
}
|
|
if got := calls.Load(); got != 3 {
|
|
t.Fatalf("expected 3 attempts (2 transient 5xx + 1 success), got %d", got)
|
|
}
|
|
}
|
|
|
|
func TestPostJSONWithRetry_TransientExhausts(t *testing.T) {
|
|
defer noSleepRetry(t)()
|
|
|
|
var calls atomic.Int32
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
|
calls.Add(1)
|
|
w.WriteHeader(http.StatusBadGateway)
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
schedule := []time.Duration{time.Nanosecond, time.Nanosecond}
|
|
err := c.postJSONWithRetry(context.Background(), "/x", map[string]any{}, nil, schedule)
|
|
if err == nil {
|
|
t.Fatal("expected error after schedule exhausted, got nil")
|
|
}
|
|
if !isTransientError(err) {
|
|
t.Fatalf("expected transient error, got %v", err)
|
|
}
|
|
if got := calls.Load(); got != int32(len(schedule)+1) {
|
|
t.Fatalf("expected %d attempts (initial + %d retries), got %d", len(schedule)+1, len(schedule), got)
|
|
}
|
|
}
|
|
|
|
func TestPostJSONWithRetry_PermanentBailsImmediately(t *testing.T) {
|
|
defer noSleepRetry(t)()
|
|
|
|
var calls atomic.Int32
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
|
calls.Add(1)
|
|
w.WriteHeader(http.StatusBadRequest)
|
|
}))
|
|
defer srv.Close()
|
|
|
|
c := NewClient(srv.URL)
|
|
schedule := []time.Duration{time.Nanosecond, time.Nanosecond, time.Nanosecond}
|
|
err := c.postJSONWithRetry(context.Background(), "/x", map[string]any{}, nil, schedule)
|
|
if err == nil {
|
|
t.Fatal("expected error, got nil")
|
|
}
|
|
if got := calls.Load(); got != 1 {
|
|
t.Fatalf("expected exactly 1 attempt on permanent error, got %d", got)
|
|
}
|
|
}
|
|
|
|
func TestPostJSONWithRetry_CtxCancelStopsRetries(t *testing.T) {
|
|
// Use the real sleeper here so we can observe a cancel preempting it.
|
|
var calls atomic.Int32
|
|
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
|
calls.Add(1)
|
|
w.WriteHeader(http.StatusBadGateway)
|
|
}))
|
|
defer srv.Close()
|
|
|
|
ctx, cancel := context.WithCancel(context.Background())
|
|
go func() {
|
|
// Cancel quickly so the first sleep is aborted long before its 1s.
|
|
time.Sleep(50 * time.Millisecond)
|
|
cancel()
|
|
}()
|
|
|
|
c := NewClient(srv.URL)
|
|
schedule := []time.Duration{time.Second, time.Second, time.Second}
|
|
start := time.Now()
|
|
err := c.postJSONWithRetry(ctx, "/x", map[string]any{}, nil, schedule)
|
|
elapsed := time.Since(start)
|
|
if err == nil {
|
|
t.Fatal("expected error after ctx cancel, got nil")
|
|
}
|
|
if elapsed > 750*time.Millisecond {
|
|
t.Fatalf("expected ctx cancel to short-circuit retry, took %s", elapsed)
|
|
}
|
|
if got := calls.Load(); got != 1 {
|
|
t.Fatalf("expected exactly 1 attempt before cancel, got %d", got)
|
|
}
|
|
}
|
|
|
|
func TestDefaultTerminalRetrySchedule_MatchesAgreedPlan(t *testing.T) {
|
|
// MUL-2780 settled on a 5-step exponential backoff (4s, 8s, 16s, 32s, 64s).
|
|
// Pin it so a future "tidy this up" refactor can't silently flatten or
|
|
// shorten the recovery window without explicit discussion.
|
|
want := []time.Duration{4 * time.Second, 8 * time.Second, 16 * time.Second, 32 * time.Second, 64 * time.Second}
|
|
if len(defaultTerminalRetrySchedule) != len(want) {
|
|
t.Fatalf("schedule length: got %d, want %d", len(defaultTerminalRetrySchedule), len(want))
|
|
}
|
|
for i, d := range want {
|
|
if defaultTerminalRetrySchedule[i] != d {
|
|
t.Errorf("schedule[%d]: got %s, want %s", i, defaultTerminalRetrySchedule[i], d)
|
|
}
|
|
}
|
|
}
|
|
|
|
func TestNormalizeGOOS(t *testing.T) {
|
|
cases := map[string]string{
|
|
"darwin": "macos",
|
|
"windows": "windows",
|
|
"linux": "linux",
|
|
"freebsd": "freebsd",
|
|
}
|
|
for in, want := range cases {
|
|
if got := normalizeGOOS(in); got != want {
|
|
t.Errorf("normalizeGOOS(%q) = %q, want %q", in, got, want)
|
|
}
|
|
}
|
|
}
|