Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fortio for openSUSE:Factory checked in at 2026-11-19 16:55:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fortio (Old) and /work/SRC/openSUSE:Factory/.fortio.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fortio" Thu Nov 19 16:55:12 2026 rev:61 rq:1398570 version:1.77.0 Changes: -------- --- /work/SRC/openSUSE:Factory/fortio/fortio.changes 2026-11-17 17:21:50.276250322 +0100 +++ /work/SRC/openSUSE:Factory/.fortio.new.1251/fortio.changes 2026-11-19 16:55:47.358497903 +0100 @@ -1,0 +2,14 @@ +Thu Nov 19 05:50:13 UTC 2026 - Johannes Kastl <[email protected]> + +- Update to version 1.77.0: + * Document -stdclient for proxies; warn when fast client ignores + env proxy (#1192) + * Keep hidden chart series in the permalink URL (#1186) + * Show warmup count in the UI "All done" line (#1188) + * Use gomaxprocs from scli so it applies to everything and is + logged consistently; add the value used to the results json as + GoMaxProcs along with NumCPU (#1191) + * Bump github.com/jhump/protoreflect/v2 from 2.0.0 to 2.0.1 + (#1187) + +------------------------------------------------------------------- Old: ---- fortio-1.76.1.obscpio New: ---- fortio-1.77.0.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fortio.spec ++++++ --- /var/tmp/diff_new_pack.I6IQa7/_old 2026-11-19 16:55:50.583634610 +0100 +++ /var/tmp/diff_new_pack.I6IQa7/_new 2026-11-19 16:55:50.585634695 +0100 @@ -17,7 +17,7 @@ Name: fortio -Version: 1.76.1 +Version: 1.77.0 Release: 0 Summary: Load testing library, command line tool, advanced echo server and web UI License: Apache-2.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.I6IQa7/_old 2026-11-19 16:55:50.625636390 +0100 +++ /var/tmp/diff_new_pack.I6IQa7/_new 2026-11-19 16:55:50.629636560 +0100 @@ -3,7 +3,7 @@ <param name="url">https://github.com/fortio/fortio.git</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">refs/tags/v1.76.1</param> + <param name="revision">refs/tags/v1.77.0</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> <param name="versionrewrite-pattern">v(.*)</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.I6IQa7/_old 2026-11-19 16:55:50.655637662 +0100 +++ /var/tmp/diff_new_pack.I6IQa7/_new 2026-11-19 16:55:50.658637789 +0100 @@ -3,6 +3,6 @@ <param name="url">https://github.com/fortio/fortio</param> <param name="changesrevision">67ce9fa2a3a62fdb2f7a0d2b50acda1f7002d32b</param></service><service name="tar_scm"> <param name="url">https://github.com/fortio/fortio.git</param> - <param name="changesrevision">32a39ecf9482289d571aefc6b4622a0a868d21d5</param></service></servicedata> + <param name="changesrevision">d940ff1a1ade9926677f96827174c5593bdae6d6</param></service></servicedata> (No newline at EOF) ++++++ fortio-1.76.1.obscpio -> fortio-1.77.0.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/README.md new/fortio-1.77.0/README.md --- old/fortio-1.76.1/README.md 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/README.md 2026-11-18 21:56:41.000000000 +0100 @@ -1,4 +1,4 @@ -<!-- 1.76.1 --> +<!-- 1.77.0 --> # Fortio [](https://github.com/avelino/awesome-go#networking) @@ -59,13 +59,13 @@ The [releases](https://github.com/fortio/fortio/releases) page has binaries for many OS/architecture combinations (see assets): ```shell -curl -L https://github.com/fortio/fortio/releases/download/v1.76.1/fortio-linux_amd64-1.76.1.tgz \ +curl -L https://github.com/fortio/fortio/releases/download/v1.77.0/fortio-linux_amd64-1.77.0.tgz \ | sudo tar -C / -xvzpf - # or the debian package -wget https://github.com/fortio/fortio/releases/download/v1.76.1/fortio_1.76.1_amd64.deb -dpkg -i fortio_1.76.1_amd64.deb +wget https://github.com/fortio/fortio/releases/download/v1.77.0/fortio_1.77.0_amd64.deb +dpkg -i fortio_1.77.0_amd64.deb # or the rpm -rpm -i https://github.com/fortio/fortio/releases/download/v1.76.1/fortio-1.76.1-1.x86_64.rpm +rpm -i https://github.com/fortio/fortio/releases/download/v1.77.0/fortio-1.77.0-1.x86_64.rpm # and more, see assets in release page ``` @@ -75,7 +75,7 @@ brew install fortio ``` -On Windows, download https://github.com/fortio/fortio/releases/download/v1.76.1/fortio_win_1.76.1.zip and extract `fortio.exe` to any location, then using the Windows Command Prompt: +On Windows, download https://github.com/fortio/fortio/releases/download/v1.77.0/fortio_win_1.77.0.zip and extract `fortio.exe` to any location, then using the Windows Command Prompt: ``` fortio.exe server ``` @@ -130,6 +130,7 @@ | `-json filename` | Filename or `-` for stdout to output JSON result (relative to `-data-dir` by default, should end with .json if you want `fortio report` to show them; using `-a` is typically a better option)| | `-labels "l1 l2 ..."` | Additional config data/labels to add to the resulting JSON, defaults to target URL and hostname| | `-h2` | Client calls will attempt to negotiate HTTP/2 instead of HTTP/1.1, implies `-stdclient`| +| `-stdclient` | Use the net/http standard client: slower but needed for h2/h2c or to go through an `HTTP_PROXY`/`HTTPS_PROXY` (ignored by the default fast client)| | `-X method` | Change HTTP method to the one specified instead of automatic HTTP GET or POST based on `-payload-*` or `-content-type`| | `-logger-force-color` | For interactive runs for color instead of JSON output| | `-logger-no-color` | Force JSON output even when run from terminal| @@ -141,7 +142,7 @@ <!-- use release/updateFlags.sh to update this section --> <pre> <!-- USAGE_START --> -Φορτίο 1.76.1 usage: +Φορτίο 1.77.0 usage: fortio command [flags] target where command is one of: load (load testing), server (starts ui, rest api, http-echo, redirect, proxies, tcp-echo, udp-echo and grpc ping servers), @@ -219,8 +220,8 @@ -echo-server-default-params value Default parameters/querystring to use if there isn't one provided explicitly. E.g "status=404&delay=3s" - -gomaxprocs int - Setting for runtime.GOMAXPROCS, < 1 doesn't change the default + -gomaxprocs value + Change go's gomaxproc value, <0 stay unchanged/uses GOMAXPROCS env or default -grpc Use gRPC (health check by default, add -ping for ping) for load testing -grpc-compression @@ -358,7 +359,8 @@ -static-dir path Deprecated/unused path. -stdclient - Use the slower net/http standard client (slower but supports h2/h2c) + Use the slower net/http standard client (slower but supports h2/h2c and +HTTP_PROXY/HTTPS_PROXY env vars) -stream Stream payload from stdin (only for fortio curl mode) -sync URL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/bincommon/commonflags.go new/fortio-1.77.0/bincommon/commonflags.go --- old/fortio-1.76.1/bincommon/commonflags.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/bincommon/commonflags.go 2026-11-18 21:56:41.000000000 +0100 @@ -43,8 +43,9 @@ keepAliveFlag = flag.Bool("keepalive", true, "Keep connection alive (only for fast HTTP/1.1)") halfCloseFlag = flag.Bool("halfclose", false, "When not keepalive, whether to half close the connection (only for fast http)") - httpReqTimeoutFlag = flag.Duration("timeout", fhttp.HTTPReqTimeOutDefaultValue, "Connection and read timeout value (for HTTP)") - stdClientFlag = flag.Bool("stdclient", false, "Use the slower net/http standard client (slower but supports h2/h2c)") + httpReqTimeoutFlag = flag.Duration("timeout", fhttp.HTTPReqTimeOutDefaultValue, "Connection and read timeout value (for HTTP)") + stdClientFlag = flag.Bool("stdclient", false, + "Use the slower net/http standard client (slower but supports h2/h2c and HTTP_PROXY/HTTPS_PROXY env vars)") http10Flag = flag.Bool("http1.0", false, "Use HTTP/1.0 (instead of HTTP/1.1)") h2Flag = flag.Bool("h2", false, "Attempt to use HTTP/2.0 / h2 (instead of HTTP/1.1) for both TLS and h2c") httpsInsecureFlag = flag.Bool("k", false, "Do not verify certs in HTTPS/TLS/gRPC connections") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/cli/fortio_main.go new/fortio-1.77.0/cli/fortio_main.go --- old/fortio-1.76.1/cli/fortio_main.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/cli/fortio_main.go 2026-11-18 21:56:41.000000000 +0100 @@ -81,7 +81,6 @@ percentilesFlag = flag.String("p", "50,75,90,99,99.9", "List of pXX to calculate") resolutionFlag = flag.Float64("r", defaults.Resolution, "Resolution of the histogram lowest buckets in seconds") offsetFlag = flag.Duration("offset", defaults.Offset, "Offset of the histogram data") - goMaxProcsFlag = flag.Int("gomaxprocs", 0, "Setting for runtime.GOMAXPROCS, < 1 doesn't change the default") profileFlag = flag.String("profile", "", "write .cpu and .mem profiles to `file`") grpcFlag = flag.Bool("grpc", false, "Use gRPC (health check by default, add -ping for ping) for load testing") grpcCompression = flag.Bool("grpc-compression", false, "Enable gRPC compression") @@ -369,7 +368,6 @@ return } url := httpOpts.URL - prevGoMaxProcs := runtime.GOMAXPROCS(*goMaxProcsFlag) out := os.Stderr qps := *qpsFlag // TODO possibly use translated <=0 to "max" from results/options normalization in periodic/ if *calcQPS { @@ -379,8 +377,8 @@ qps = float64(*exactlyFlag) / durationFlag.Seconds() log.LogVf("Calculated QPS to do %d request in %v: %f", *exactlyFlag, *durationFlag, qps) } - _, _ = fmt.Fprintf(out, "Fortio %s running at %g queries per second, %d->%d procs", - version.Short(), qps, prevGoMaxProcs, runtime.GOMAXPROCS(0)) + _, _ = fmt.Fprintf(out, "Fortio %s running at %g queries per second, %d procs", + version.Short(), qps, runtime.GOMAXPROCS(0)) if *exactlyFlag > 0 { _, _ = fmt.Fprintf(out, ", for %d calls: %s\n", *exactlyFlag, url) } else { @@ -478,16 +476,7 @@ _, _ = fmt.Fprintf(out, "Aborting because of %v\n", err) os.Exit(1) } - rr := res.Result() - warmup := *numThreadsFlag - if ro.Exactly > 0 { - warmup = 0 - } - _, _ = fmt.Fprintf(out, "All done %d calls (plus %d warmup) %.3f ms avg, %.1f qps\n", - rr.DurationHistogram.Count, - warmup, - 1000.*rr.DurationHistogram.Avg, - rr.ActualQPS) + _, _ = fmt.Fprintln(out, res.Result().AllDone()) jsonFileName := *jsonFlag if *autoSaveFlag || len(jsonFileName) > 0 { //nolint:nestif // but probably should breakup this function var j []byte @@ -501,7 +490,7 @@ jsonFileName = "stdout" } else { if len(jsonFileName) == 0 { - jsonFileName = path.Join(*dataDirFlag, rr.ID+rapi.JSONExtension) + jsonFileName = path.Join(*dataDirFlag, res.Result().ID+rapi.JSONExtension) } f, err = os.Create(jsonFileName) if err != nil { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/cli_test.txtar new/fortio-1.77.0/cli_test.txtar --- old/fortio-1.76.1/cli_test.txtar 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/cli_test.txtar 2026-11-18 21:56:41.000000000 +0100 @@ -72,17 +72,25 @@ stderr 'err: parse \\"http:// bad\\": invalid character \\" \\" in host name' # This may cause portability issues or even if you have fortio already running or something else on other ports -! exec fortio server & +env GOMAXPROCS=1 +! exec fortio server -gomaxprocs 5 & exec sleep 3 # in ci server needs a bit to start -fortio script -init 'url="http://localhost:8080/echo"' test_all_modes.gr +fortio script -gomaxprocs 3 -init 'url="http://localhost:8080/echo"' test_all_modes.gr stderr 'Saving .*_test_save.json' +stderr '"msg":"Changed GOMAXPROCS","old":1,"new":3}' stdout '🎉 for http - saved as .*_test_save' +stdout '🎉 for NumCPU [0-9]+' +stdout '🎉 for GOMAXPROCS' stdout '🎉 for tcp' stdout '🎉 for udp' stdout '🎉 for grpc' [!windows] exec pkill -x fortio [windows] exec taskkill /F /IM fortio.exe wait +# background server output is available after wait +stderr '"msg":"Changed GOMAXPROCS","old":[0-9]+,"new":5}' +stderr '"msg":"Starting".*"gomaxprocs":5}' +stdout 'UI started' -- badload1.gr -- fortio.load("badtype", {}) @@ -123,6 +131,14 @@ error("Error: expected exactly 10 200s for http, got", r.RetCodes) } println("🎉 for http - saved as", r.ID) +if r.GoMaxProcs != 3 { + error("Error: expected gomaxprocs to have been set to 3 by flag, got", r.GoMaxProcs) +} +if r.NumCPU < 1 { + error("Error: expected NumCPU to be at least 1, got", r.NumCPU) +} +println("🎉 for NumCPU", r.NumCPU) +println("🎉 for GOMAXPROCS") url = "localhost:8078" r = fortio.load("tcp", {"url": url, "exactly": 10, "qps": -1}) if r.RetCodes["OK"] != 10 { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/fgrpc/grpcrunner.go new/fortio-1.77.0/fgrpc/grpcrunner.go --- old/fortio-1.76.1/fgrpc/grpcrunner.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/fgrpc/grpcrunner.go 2026-11-18 21:56:41.000000000 +0100 @@ -202,6 +202,7 @@ var methodDescriptor protoreflect.MethodDescriptor var reqMsg proto.Message ts := time.Now().UnixNano() + warmupCalls := 0 for i := range numThreads { r.Options().Runners[i] = &grpcstate[i] newConn := i%o.Streams == 0 @@ -231,6 +232,7 @@ grpcstate[i].reqP = PingMessage{Payload: o.Payload, DelayNanos: o.Delay.Nanoseconds(), Seq: int64(i), Ts: ts} if newConn && o.Exactly <= 0 { _, err = grpcstate[i].clientP.Ping(outCtx, &grpcstate[i].reqP, callOptions...) + warmupCalls++ } case o.GrpcMethod != "": // Use reflection to get method descriptor and create request message, if not already done. @@ -261,6 +263,7 @@ grpcstate[i].reqH = grpc_health_v1.HealthCheckRequest{Service: o.Service} if newConn && o.Exactly <= 0 { _, err = grpcstate[i].clientH.Check(outCtx, &grpcstate[i].reqH) + warmupCalls++ } } if !o.AllowInitialErrors && err != nil { @@ -282,6 +285,7 @@ } } total.RunnerResults = r.Run() + total.WarmupCalls = warmupCalls if o.Profiler != "" { pprof.StopCPUProfile() fm, err := os.Create(o.Profiler + ".mem") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/fgrpc/grpcrunner_test.go new/fortio-1.77.0/fgrpc/grpcrunner_test.go --- old/fortio-1.76.1/fgrpc/grpcrunner_test.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/fgrpc/grpcrunner_test.go 2026-11-18 21:56:41.000000000 +0100 @@ -194,6 +194,9 @@ t.Error(err) return } + if res.WarmupCalls != 1 { + t.Errorf("Expected 1 warmup call for 1 connection with 10 streams, got %d", res.WarmupCalls) + } totalReq := res.DurationHistogram.Count avg10 := res.DurationHistogram.Avg ok := res.RetCodes[grpc_health_v1.HealthCheckResponse_SERVING.String()] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/fhttp/http_client.go new/fortio-1.77.0/fhttp/http_client.go --- old/fortio-1.76.1/fhttp/http_client.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/fhttp/http_client.go 2026-11-18 21:56:41.000000000 +0100 @@ -28,8 +28,10 @@ "net/http/httptrace" "net/http/httputil" "net/url" + "os" "strconv" "strings" + "sync" "time" "fortio.org/fortio/fnet" @@ -812,6 +814,8 @@ return nil, err } + warnIfProxy() + if o.NoResolveEachConn && o.Resolve != "" { log.Warnf("Both `-resolve` and `-no-reresolve` flags are defined, will use same ip address on new conn") } @@ -1347,3 +1351,18 @@ return addr, err } + +var proxyWarnOnce sync.Once + +// warnIfProxy logs (once) a warning if proxy env vars are set, as the fast client +// doesn't use them (use -stdclient for that). +func warnIfProxy() { + proxyWarnOnce.Do(func() { + for _, v := range []string{"HTTP_PROXY", "http_proxy", "HTTPS_PROXY", "https_proxy"} { + if os.Getenv(v) != "" { + log.Warnf("%s is set but the fast client ignores proxy env vars, use -stdclient to use them", v) + return + } + } + }) +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/fhttp/httprunner.go new/fortio-1.77.0/fhttp/httprunner.go --- old/fortio-1.76.1/fhttp/httprunner.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/fhttp/httprunner.go 2026-11-18 21:56:41.000000000 +0100 @@ -147,6 +147,7 @@ // First build all the clients sequentially. This ensures we do not have data races when // constructing requests. ctx := context.Background() + warmupCalls := 0 for i := range numThreads { r.Options().Runners[i] = &httpstate[i] // Temp mutate the option so each client gets a logging id @@ -161,6 +162,7 @@ } if o.SequentialWarmup && o.Exactly <= 0 { code, dataLen, headerSize := httpstate[i].client.StreamFetch(ctx) + warmupCalls++ if !o.AllowInitialErrors && !codeIsOK(code) { codeErr := fmt.Errorf("error %d for %s (%d body bytes), thread# %d", code, o.URL, dataLen, i) aborter.RecordStart() @@ -194,6 +196,7 @@ if err := warmup.Wait(); err != nil { return NewErrorResult(o, "warmup error", err), err } + warmupCalls += numThreads // one parallel warmup call per thread } // TODO avoid copy pasta with grpcrunner var fc *os.File @@ -209,6 +212,7 @@ } } total.RunnerResults = r.Run() + total.WarmupCalls = warmupCalls if o.Profiler != "" { pprof.StopCPUProfile() fc.Close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/go.mod new/fortio-1.77.0/go.mod --- old/fortio-1.76.1/go.mod 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/go.mod 2026-11-18 21:56:41.000000000 +0100 @@ -19,13 +19,13 @@ fortio.org/duration v1.0.4 fortio.org/log v1.18.3 fortio.org/safecast v1.2.0 - fortio.org/scli v1.20.0 + fortio.org/scli v1.21.0 fortio.org/sets v1.3.0 fortio.org/testscript v0.3.2 fortio.org/version v1.0.4 github.com/golang/protobuf v1.5.4 github.com/google/uuid v1.6.0 - github.com/jhump/protoreflect/v2 v2.0.0 + github.com/jhump/protoreflect/v2 v2.0.1 google.golang.org/grpc v1.85.0 google.golang.org/protobuf v1.36.12 grol.io/grol v0.102.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/go.sum new/fortio-1.77.0/go.sum --- old/fortio-1.76.1/go.sum 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/go.sum 2026-11-18 21:56:41.000000000 +0100 @@ -10,8 +10,8 @@ fortio.org/log v1.18.3/go.mod h1:vqpyEZd/TP4xO5eAHQaa4buDZDCn1AxCAV+wl3eaTec= fortio.org/safecast v1.2.0 h1:ckQJNenMJHycqPsi/QrzA4EUX5WQkyd+hGO4mxt/a8w= fortio.org/safecast v1.2.0/go.mod h1:xZmcPk3vi4kuUFf+tq4SvnlVdwViqf6ZSZl91Jr9Jdg= -fortio.org/scli v1.20.0 h1:5N3HrI4686sNciz/5yFYn0Dg+pFFLpaIRVdvZ2GrtFQ= -fortio.org/scli v1.20.0/go.mod h1:Rk/nlH9CCeGh7SRW//Iz0uCn6oCMsHFd0U0SvIsUiB4= +fortio.org/scli v1.21.0 h1:IB4lF35P/eyKHL7naAVJvz+DGpElXBAfwhc1hA4QRJg= +fortio.org/scli v1.21.0/go.mod h1:Rk/nlH9CCeGh7SRW//Iz0uCn6oCMsHFd0U0SvIsUiB4= fortio.org/sets v1.3.0 h1:UiEtck/ndNM3Tg53mJu3I7Zz1ED8+YSQLtPKSjd8LTE= fortio.org/sets v1.3.0/go.mod h1:y8fFzm4bPTk3Qfr/tF3Xz7oWwgzpy++QdkwURKhNbP4= fortio.org/struct2env v0.4.2 h1:Xh7HlS9vf2ZdRvRfmoGIasNDO8t6z36M713utVODRCo= @@ -36,8 +36,8 @@ github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/jbuchbinder/gopnm v0.0.0-20220507095634-e31f54490ce0 h1:9GwwkVzUn1vRWAQ8GRu7UOaoM+FZGnvw88DsjyiqfXc= github.com/jbuchbinder/gopnm v0.0.0-20220507095634-e31f54490ce0/go.mod h1:6U0E76+sB1jTuSSXJjePtLd44vExeoYThOWgOoXo3x8= -github.com/jhump/protoreflect/v2 v2.0.0 h1:dBg0utH2witLqXfczkVVrHFrFQc8SN1rvaKkOR5ALDg= -github.com/jhump/protoreflect/v2 v2.0.0/go.mod h1:Sz8TB0WtuTKOF4eYj2iZovXSSU3tqZ5Ii8Oeg9k9vKY= +github.com/jhump/protoreflect/v2 v2.0.1 h1:WMHCnHh638VRwV893/DkDggkmuLQN4g8uXobm9FFKZQ= +github.com/jhump/protoreflect/v2 v2.0.1/go.mod h1:Sz8TB0WtuTKOF4eYj2iZovXSSU3tqZ5Ii8Oeg9k9vKY= github.com/kortschak/goroutine v1.1.3 h1:kELvAfi7jpVD7a+MPWjmIxuQVJVYo/RELaOeGJZBb88= github.com/kortschak/goroutine v1.1.3/go.mod h1:zKpXs1FWN/6mXasDQzfl7g0LrGFIOiA6cLs9eXKyaMY= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/periodic/periodic.go new/fortio-1.77.0/periodic/periodic.go --- old/fortio-1.76.1/periodic/periodic.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/periodic/periodic.go 2026-11-18 21:56:41.000000000 +0100 @@ -248,6 +248,9 @@ ActualQPS float64 ActualDuration time.Duration NumThreads int + GoMaxProcs int // runtime.GOMAXPROCS value during the run + NumCPU int // runtime.NumCPU() number of logical CPUs usable by the process + WarmupCalls int // Number of initial warmup calls made before the run (not included in the histograms) Version string // DurationHistogram all the Run. If you want to exclude the error cases; subtract ErrorsDurationHistogram to each bucket. DurationHistogram *stats.HistogramData @@ -277,6 +280,13 @@ return r } +// AllDone returns the one line end of run summary shared by the CLI and the UI +// (without trailing newline). +func (r *RunnerResults) AllDone() string { + return fmt.Sprintf("All done %d calls (plus %d warmup) %.3f ms avg, %.1f qps", + r.DurationHistogram.Count, r.WarmupCalls, 1000.*r.DurationHistogram.Avg, r.ActualQPS) +} + // PeriodicRunner let's you exercise the Function at the given QPS and collect // statistics and histogram about the run. type PeriodicRunner interface { //nolint:revive // stutter is ok for this (can't break api anyway). @@ -547,6 +557,8 @@ ActualQPS: 0, ActualDuration: 0, NumThreads: r.NumThreads, + GoMaxProcs: runtime.GOMAXPROCS(0), + NumCPU: runtime.NumCPU(), Version: version.Short(), DurationHistogram: functionDuration.Export().CalcPercentiles(r.Percentiles), ErrorsDurationHistogram: errorsDuration.Export().CalcPercentiles(r.Percentiles), @@ -627,6 +639,8 @@ ActualQPS: actualQPS, ActualDuration: elapsed, NumThreads: r.NumThreads, + GoMaxProcs: runtime.GOMAXPROCS(0), + NumCPU: runtime.NumCPU(), Version: version.Short(), DurationHistogram: functionDuration.Export().CalcPercentiles(r.Percentiles), ErrorsDurationHistogram: errorsDuration.Export().CalcPercentiles(r.Percentiles), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/tcprunner/tcprunner.go new/fortio-1.77.0/tcprunner/tcprunner.go --- old/fortio-1.76.1/tcprunner/tcprunner.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/tcprunner/tcprunner.go 2026-11-18 21:56:41.000000000 +0100 @@ -249,6 +249,7 @@ total.Destination = o.Destination tcpstate := make([]RunnerResults, numThreads) var err error + warmupCalls := 0 for i := range numThreads { r.Options().Runners[i] = &tcpstate[i] // Create a client (and transport) and connect once for each 'thread' @@ -259,6 +260,7 @@ tcpstate[i].client.connID = i if o.Exactly <= 0 { data, err := tcpstate[i].client.Fetch() + warmupCalls++ if i == 0 && log.LogVerbose() { log.LogVf("first hit of %s: err %v, received %d: %q", o.Destination, err, len(data), data) } @@ -268,6 +270,7 @@ tcpstate[i].RetCodes = make(TCPResultMap) } total.RunnerResults = r.Run() + total.WarmupCalls = warmupCalls // Numthreads may have reduced, but it should be ok to accumulate 0s from // unused ones. We also must clean up all the created clients. keys := []string{} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/udprunner/udprunner.go new/fortio-1.77.0/udprunner/udprunner.go --- old/fortio-1.76.1/udprunner/udprunner.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/udprunner/udprunner.go 2026-11-18 21:56:41.000000000 +0100 @@ -237,6 +237,7 @@ total.Destination = o.Destination udpstate := make([]RunnerResults, numThreads) var err error + warmupCalls := 0 for i := range numThreads { r.Options().Runners[i] = &udpstate[i] // Create a client (and transport) and connect once for each 'thread' @@ -247,6 +248,7 @@ udpstate[i].client.connID = i if o.Exactly <= 0 { data, err := udpstate[i].client.Fetch() + warmupCalls++ if i == 0 && log.LogVerbose() { log.LogVf("first hit of %s: err %v, received %d: %q", o.Destination, err, len(data), data) } @@ -256,6 +258,7 @@ udpstate[i].RetCodes = make(UDPResultMap) } total.RunnerResults = r.Run() + total.WarmupCalls = warmupCalls // Numthreads may have reduced, but it should be ok to accumulate 0s from // unused ones. We also must clean up all the created clients. keys := []string{} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/ui/static/js/fortio_chart.js new/fortio-1.77.0/ui/static/js/fortio_chart.js --- old/fortio-1.76.1/ui/static/js/fortio_chart.js 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/ui/static/js/fortio_chart.js 2026-11-18 21:56:41.000000000 +0100 @@ -472,6 +472,14 @@ params.set('yMin', form.yMin) params.set('yMax', form.yMax) params.set('yLog', form.yIsLogarithmic) + params.delete('hide') + if (objHasProps(mchart)) { + for (const dataset of mchart.data.datasets) { + if (dataset.hidden) { + params.append('hide', dataset.label) + } + } + } const selectedResults = getSelectedResults() params.delete('sel') if (selectedResults) { @@ -727,18 +735,26 @@ } } }) - // Hide QPS axis on clicking QPS dataset. + // The QPS y-axis is shown only when the QPS dataset is. + const syncQPSAxis = () => { + const qps = mchart.data.datasets.find(d => d.label === 'QPS') + mchart.options.scales.yAxes[1].display = !qps.hidden + } mchart.options.legend.onClick = (event, legendItem) => { // Toggle dataset hidden (default behavior). const dataset = mchart.data.datasets[legendItem.datasetIndex] dataset.hidden = !dataset.hidden - if (dataset.label === 'QPS') { - // Toggle QPS y-axis. - const qpsYAxis = mchart.options.scales.yAxes[1] - qpsYAxis.display = !qpsYAxis.display - } + syncQPSAxis() mchart.update() + updateQueryString() + } + // Restore the datasets hidden in the permalink (hide=<label> parameters). + // No mchart.update() needed here: adding the results data afterwards does it. + const hidden = new URLSearchParams(document.location.search).getAll('hide') + for (const dataset of mchart.data.datasets) { + dataset.hidden = hidden.includes(dataset.label) } + syncQPSAxis() } function runTestForDuration (durationInSeconds) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/ui/uihandler.go new/fortio-1.77.0/ui/uihandler.go --- old/fortio-1.76.1/ui/uihandler.go 2026-11-16 07:22:02.000000000 +0100 +++ new/fortio-1.77.0/ui/uihandler.go 2026-11-18 21:56:41.000000000 +0100 @@ -268,10 +268,7 @@ _, _ = fmt.Fprintf(w, "Saved result to <a href='%s'>%s</a>"+ " (<a href='browse?url=%s.json' target='_new'>graph link</a>)\n", savedAs, savedAs, id) } - _, _ = fmt.Fprintf(w, "All done %d calls %.3f ms avg, %.1f qps\n</pre>\n<script>\n", - res.Result().DurationHistogram.Count, - 1000.*res.Result().DurationHistogram.Avg, - res.Result().ActualQPS) + _, _ = fmt.Fprintf(w, "%s\n</pre>\n<script>\n", res.Result().AllDone()) ResultToJsData(w, json) _, _ = w.Write([]byte("</script><p>Go to <a href='./'>Top</a>.</p></body></html>\n")) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.1/ui/uihandler_test.go new/fortio-1.77.0/ui/uihandler_test.go --- old/fortio-1.76.1/ui/uihandler_test.go 1970-01-01 01:00:00.000000000 +0100 +++ new/fortio-1.77.0/ui/uihandler_test.go 2026-11-18 21:56:41.000000000 +0100 @@ -0,0 +1,61 @@ +// Copyright 2017 Fortio Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package ui + +import ( + "fmt" + "html/template" + "net/http" + "net/http/httptest" + "net/url" + "strings" + "testing" + + "fortio.org/fortio/fhttp" + "fortio.org/fortio/periodic" +) + +func TestHandlerAllDoneWarmup(t *testing.T) { + mux, addr := fhttp.DynamicHTTPServer(false) + mux.HandleFunc("/echo/", fhttp.EchoHandler) + var err error + mainTemplate, err = template.ParseFS(templateFS, "templates/main.html", "templates/header.html") + if err != nil { + t.Fatalf("template: %v", err) + } + target := fmt.Sprintf("http://localhost:%d/echo/", addr.Port) + tests := []struct { + name string + params string + want string + }{ + {"duration based run warms up each thread", "&t=100ms&qps=-1&c=3", "(plus 3 warmup)"}, + {"qps limited run still counts warmup before threads are lowered", "&t=1s&qps=2&c=10", "(plus 10 warmup)"}, + {"exact count run has no warmup", "&n=6&qps=-1&c=3", "(plus 0 warmup)"}, + {"default threads when c=0", "&t=100ms&qps=-1&c=0", fmt.Sprintf("(plus %d warmup)", periodic.DefaultRunnerOptions.NumThreads)}, + {"negative c means 1 thread", "&t=100ms&qps=-1&c=-2", "(plus 1 warmup)"}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + req := httptest.NewRequest(http.MethodGet, "/fortio/?load=Start&runner=http&url="+url.QueryEscape(target)+tt.params, nil) + rec := httptest.NewRecorder() + Handler(rec, req) + body := rec.Body.String() + if !strings.Contains(body, "All done") || !strings.Contains(body, tt.want) { + t.Errorf("expected %q in All done line, got:\n%s", tt.want, body) + } + }) + } +} ++++++ fortio.obsinfo ++++++ --- /var/tmp/diff_new_pack.I6IQa7/_old 2026-11-19 16:55:50.789643342 +0100 +++ /var/tmp/diff_new_pack.I6IQa7/_new 2026-11-19 16:55:50.793643512 +0100 @@ -1,5 +1,5 @@ name: fortio -version: 1.76.1 -mtime: 1794810122 -commit: 32a39ecf9482289d571aefc6b4622a0a868d21d5 +version: 1.77.0 +mtime: 1795035401 +commit: d940ff1a1ade9926677f96827174c5593bdae6d6 ++++++ vendor.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/fortio.org/scli/scli.go new/vendor/fortio.org/scli/scli.go --- old/vendor/fortio.org/scli/scli.go 2026-11-16 07:22:02.000000000 +0100 +++ new/vendor/fortio.org/scli/scli.go 2026-11-18 21:56:41.000000000 +0100 @@ -16,6 +16,7 @@ import ( "context" "flag" + "math" "net" "net/http" "runtime" @@ -75,6 +76,16 @@ log.Debugf("Changing log format to GoroutineID %v", newValue) log.Config.GoroutineID = newValue }) + dflag.DynInt64(flag.CommandLine, "gomaxprocs", 0, + "Change go's gomaxproc value, <0 stay unchanged/uses GOMAXPROCS env or default").WithSyncNotifier( + func(_, newValue int64) { + old := runtime.GOMAXPROCS(0) + if newValue > 0 && newValue < math.MaxInt && newValue != int64(old) { // don't overflow int + newValueInt := int(newValue) + runtime.GOMAXPROCS(newValueInt) + log.S(log.Info, "Changed GOMAXPROCS", log.Int("old", old), log.Int("new", newValueInt)) + } + }) cli.ServerMode = true cli.Main() // will call ExitFunction() if there are usage errors if *configDir != "" { @@ -122,7 +133,7 @@ hasStartedServer = true } log.S(log.Info, "Starting", log.Str("command", cli.ProgramName), log.Str("version", cli.LongVersion), - log.Int("go-max-procs", runtime.GOMAXPROCS(0))) + log.Int("gomaxprocs", runtime.GOMAXPROCS(0))) return hasStartedServer } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/github.com/jhump/protoreflect/v2/protomessage/doc.go new/vendor/github.com/jhump/protoreflect/v2/protomessage/doc.go --- old/vendor/github.com/jhump/protoreflect/v2/protomessage/doc.go 1970-01-01 01:00:00.000000000 +0100 +++ new/vendor/github.com/jhump/protoreflect/v2/protomessage/doc.go 2026-11-18 21:56:41.000000000 +0100 @@ -0,0 +1,8 @@ +// Package protomessage contains helpers for working with proto.Message values +// from generic and/or dynamic code. +// +// This includes converting a message to a particular concrete type (like +// converting a dynamic message to a generated type), re-parsing unrecognized +// fields once the extensions they represent are known, and walking a message +// to visit all of the messages nested inside it. +package protomessage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/github.com/jhump/protoreflect/v2/protoresolve/doc.go new/vendor/github.com/jhump/protoreflect/v2/protoresolve/doc.go --- old/vendor/github.com/jhump/protoreflect/v2/protoresolve/doc.go 2026-11-16 07:22:02.000000000 +0100 +++ new/vendor/github.com/jhump/protoreflect/v2/protoresolve/doc.go 2026-11-18 21:56:41.000000000 +0100 @@ -18,15 +18,11 @@ // - *[protoregistry.Files]: for resolving descriptors. // - *[protoregistry.Types]: for resolving types. // -// When using descriptors, such that all types are dynamic, using the above two -// types requires double the work to register everything with both. The first must -// be used in order to process [FileDescriptorProto] instances into more useful -// [FileDescriptor] instances, and the second must be used to create a resolver -// that the other APIs accept. -// -// The Registry type in this package, on the other hand, allows callers to register -// descriptors once, and the result can automatically be used as a type registry, -// too, with all dynamic types. +// The Registry type in this package is similar to *[protoregistry.Files], but +// it implements more of the resolver interfaces in this package. Like +// [dynamicpb.NewTypes], it can also be used as a type resolver, that provides +// dynamic types for all of its registered descriptors. (See +// Registry.AsTypeResolver.) // // This package also provides functions for composition: layering resolvers // such that one is tried first (the "preferred" resolver), and then others @@ -119,8 +115,6 @@ // (ResolverFromPool, ResolverFromPools, TypesFromDescriptorPool, and TypesFromResolver). // // [google.golang.org/protobuf]: https://pkg.go.dev/google.golang.org/protobuf -// [FileDescriptorProto]: https://pkg.go.dev/google.golang.org/protobuf/types/descriptorpb#FileDescriptorProto -// [FileDescriptor]: https://pkg.go.dev/google.golang.org/protobuf/reflect/protoreflect#FileDescriptor package protoresolve import ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/github.com/jhump/protoreflect/v2/protoresolve/helpers.go new/vendor/github.com/jhump/protoreflect/v2/protoresolve/helpers.go --- old/vendor/github.com/jhump/protoreflect/v2/protoresolve/helpers.go 2026-11-16 07:22:02.000000000 +0100 +++ new/vendor/github.com/jhump/protoreflect/v2/protoresolve/helpers.go 2026-11-18 21:56:41.000000000 +0100 @@ -121,7 +121,7 @@ // FindDescriptorByNameInFile searches the given file for the element with the given // fully-qualified name. This could be used to implement the -// [DescriptorResolver.FindDescriptorByName] method for a resolver that doesn't want +// [DescriptorResolver].FindDescriptorByName method for a resolver that doesn't want // to create an index of all descriptors. This returns nil if no element with the // given name belongs to this file. // diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/github.com/jhump/protoreflect/v2/protoresolve/registry.go new/vendor/github.com/jhump/protoreflect/v2/protoresolve/registry.go --- old/vendor/github.com/jhump/protoreflect/v2/protoresolve/registry.go 2026-11-16 07:22:02.000000000 +0100 +++ new/vendor/github.com/jhump/protoreflect/v2/protoresolve/registry.go 2026-11-18 21:56:41.000000000 +0100 @@ -79,8 +79,9 @@ // // This will retain the given proto message, so calling code should not attempt to // mutate it (or re-use it in a way that could mutate it). The given proto message -// will be supplied to callers of [ProtoFromFileDescriptor], to improve performance -// and fidelity over use of the [protodesc] package to recover the descriptor proto. +// will be supplied to callers of [Registry.ProtoFromFileDescriptor], to improve +// performance and fidelity over use of the [protodesc] package to recover the +// descriptor proto. // // In general, prefer calling this method instead of calling [protodesc.NewFile] // followed by RegisterFile. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/github.com/jhump/protoreflect/v2/protoresolve/types.go new/vendor/github.com/jhump/protoreflect/v2/protoresolve/types.go --- old/vendor/github.com/jhump/protoreflect/v2/protoresolve/types.go 2026-11-16 07:22:02.000000000 +0100 +++ new/vendor/github.com/jhump/protoreflect/v2/protoresolve/types.go 2026-11-18 21:56:41.000000000 +0100 @@ -30,7 +30,7 @@ // TypesFromResolver adapts a resolver that returns descriptors into a resolver // that returns types. This can be used by implementations of Resolver to -// implement the [Resolver.AsTypeResolver] method. +// implement the [Resolver].AsTypeResolver method. // // It returns all dynamic types except for extensions, in which case, if an // extension implements [protoreflect.ExtensionTypeDescriptor], it will return @@ -60,11 +60,11 @@ // TypesFromDescriptorPool adapts a descriptor pool into a pool that returns // types. This can be used by implementations of Resolver to implement the -// [Resolver.AsTypeResolver] method. +// [Resolver].AsTypeResolver method. // // If the given resolver implements ExtensionResolver, then the returned type // pool provides an efficient implementation for the -// [ExtensionTypeResolver.FindExtensionByNumber] method. Otherwise, it will +// [ExtensionTypeResolver].FindExtensionByNumber method. Otherwise, it will // use an inefficient implementation that searches through all files for the // requested extension. func TypesFromDescriptorPool(pool DescriptorPool) TypePool { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/modules.txt new/vendor/modules.txt --- old/vendor/modules.txt 2026-11-16 07:22:02.000000000 +0100 +++ new/vendor/modules.txt 2026-11-18 21:56:41.000000000 +0100 @@ -20,7 +20,7 @@ # fortio.org/safecast v1.2.0 ## explicit; go 1.20 fortio.org/safecast -# fortio.org/scli v1.20.0 +# fortio.org/scli v1.21.0 ## explicit; go 1.26.0 fortio.org/scli # fortio.org/sets v1.3.0 @@ -58,7 +58,7 @@ # github.com/jbuchbinder/gopnm v0.0.0-20220507095634-e31f54490ce0 ## explicit; go 1.18 github.com/jbuchbinder/gopnm -# github.com/jhump/protoreflect/v2 v2.0.0 +# github.com/jhump/protoreflect/v2 v2.0.1 ## explicit; go 1.26.0 github.com/jhump/protoreflect/v2/grpcdynamic github.com/jhump/protoreflect/v2/grpcreflect
