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-17 17:19:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fortio (Old) and /work/SRC/openSUSE:Factory/.fortio.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fortio" Tue Nov 17 17:19:15 2026 rev:60 rq:1398074 version:1.76.1 Changes: -------- --- /work/SRC/openSUSE:Factory/fortio/fortio.changes 2026-10-28 17:48:12.921250518 +0100 +++ /work/SRC/openSUSE:Factory/.fortio.new.1251/fortio.changes 2026-11-17 17:21:50.276250322 +0100 @@ -1,0 +2,17 @@ +Tue Nov 17 06:17:26 UTC 2026 - Johannes Kastl <[email protected]> + +- Update to version 1.76.1: + * Bump google.golang.org/grpc from 1.84.0 to 1.85.0 (#1180) + * Bump fortio.org/scli (#1182) + * Fix Counter.RecordN sum of squares for n > 1 (#1181) + * test: improve TestInsecureRequest with better certificate + validation coverage (#1183) + * build(deps): migrate to github.com/jhump/protoreflect/v2 + (#1176) + * Bump grol.io/grol from 0.102.0 to 0.102.1 in the + fortio-and-grol group (#1179) + * Bump grol.io/grol from 0.101.4 to 0.102.0 in the + fortio-and-grol group (#1178) + * fix(ui): keep valid graphs when a result is malformed (#1173) + +------------------------------------------------------------------- Old: ---- fortio-1.76.0.obscpio New: ---- fortio-1.76.1.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fortio.spec ++++++ --- /var/tmp/diff_new_pack.n7BaiX/_old 2026-11-17 17:21:52.026324011 +0100 +++ /var/tmp/diff_new_pack.n7BaiX/_new 2026-11-17 17:21:52.027324053 +0100 @@ -1,7 +1,7 @@ # # spec file for package fortio # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,15 @@ # -%define __arch_install_post export NO_BRP_STRIP_DEBUG=true Name: fortio -Version: 1.76.0 +Version: 1.76.1 Release: 0 Summary: Load testing library, command line tool, advanced echo server and web UI License: Apache-2.0 URL: https://github.com/fortio/fortio Source: fortio-%{version}.tar.gz Source1: vendor.tar.gz -BuildRequires: go >= 1.26 +BuildRequires: golang(API) >= 1.26 %description Fortio (Φορτίο) started as, and is, Istio's load testing tool and now graduated to be its own project. ++++++ _service ++++++ --- /var/tmp/diff_new_pack.n7BaiX/_old 2026-11-17 17:21:52.061325485 +0100 +++ /var/tmp/diff_new_pack.n7BaiX/_new 2026-11-17 17:21:52.063325569 +0100 @@ -1,23 +1,24 @@ <services> <service name="obs_scm" mode="manual"> - <param name="url">https://github.com/fortio/fortio</param> + <param name="url">https://github.com/fortio/fortio.git</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v1.76.0</param> + <param name="revision">refs/tags/v1.76.1</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="match-tag">v*</param> </service> <service name="set_version" mode="manual"> - <param name="basename">fortio</param> </service> - <service name="tar" mode="buildtime"/> + <service name="go_modules" mode="manual"> + </service> + <!-- services below are running at buildtime --> + <service name="tar" mode="buildtime"> + </service> <service name="recompress" mode="buildtime"> <param name="file">*.tar</param> <param name="compression">gz</param> </service> - <service name="go_modules" mode="manual"> - </service> </services> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.n7BaiX/_old 2026-11-17 17:21:52.085326495 +0100 +++ /var/tmp/diff_new_pack.n7BaiX/_new 2026-11-17 17:21:52.088326621 +0100 @@ -1,6 +1,8 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/fortio/fortio</param> - <param name="changesrevision">67ce9fa2a3a62fdb2f7a0d2b50acda1f7002d32b</param></service></servicedata> + <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> (No newline at EOF) ++++++ fortio-1.76.0.obscpio -> fortio-1.76.1.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/.circleci/config.yml new/fortio-1.76.1/.circleci/config.yml --- old/fortio-1.76.0/.circleci/config.yml 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/.circleci/config.yml 2026-11-16 07:22:02.000000000 +0100 @@ -8,7 +8,7 @@ &defaultEnv docker: # specify the version - - image: docker.io/fortio/fortio.build:v90@sha256:036f5b5d4df9ce30e0574f212d19ced86ddc7b0255f58a536b008943e5c4efc7 + - image: docker.io/fortio/fortio.build:v91@sha256:aff65a2b742abed839fc32f5bf11bacacf16be3adae80b0d9d8eeea60fc44c48 working_directory: /build/fortio jobs: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/.gitattributes new/fortio-1.76.1/.gitattributes --- old/fortio-1.76.0/.gitattributes 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/.gitattributes 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -*.gr linguist-language=golang diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/.github/dependabot.yml new/fortio-1.76.1/.github/dependabot.yml --- old/fortio-1.76.0/.github/dependabot.yml 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/.github/dependabot.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -version: 2 -updates: - - package-ecosystem: gomod - directory: / - schedule: - interval: daily - groups: - "fortio and grol": - patterns: - - "fortio.org/*" - - "grol.io/*" - "go x": - patterns: - - "golang.org/x/*" - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/.github/workflows/include.yml new/fortio-1.76.1/.github/workflows/include.yml --- old/fortio-1.76.0/.github/workflows/include.yml 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/.github/workflows/include.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -# Main fortio still use its own build image for now (including linux/ppc64le,linux/s390x additional platforms) -name: "Shared cli/server fortio workflows" -on: - push: - branches: [ master ] - tags: - # so a vX.Y.Z-test1 doesn't trigger build - - 'v[0-9]+.[0-9]+.[0-9]+' - - 'v[0-9]+.[0-9]+.[0-9]+-pre*' - pull_request: - branches: [ master ] - -jobs: - call-gochecks: - uses: fortio/workflows/.github/workflows/gochecks.yml@main - call-codecov: - uses: fortio/workflows/.github/workflows/codecov.yml@main - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - call-codeql: - uses: fortio/workflows/.github/workflows/codeql-analysis.yml@main - permissions: - actions: read - contents: read - security-events: write -# call-releaser: -# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') -# uses: fortio/workflows/.github/workflows/releaser.yml@main -# with: -# description: "Fortio load testing library, command line tool, advanced echo server and web UI in go (golang)" -# secrets: -# GH_PAT: ${{ secrets.GH_PAT }} -# DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} -# DOCKER_USER: ${{ secrets.DOCKER_USER }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/.github/workflows/main.yml new/fortio-1.76.1/.github/workflows/main.yml --- old/fortio-1.76.0/.github/workflows/main.yml 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/.github/workflows/main.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,69 +0,0 @@ -name: Release - -permissions: - actions: read - contents: write - packages: write - -on: - push: - tags: - # so a vX.Y.Z-test1 doesn't trigger build - - 'v[0-9]+.[0-9]+.[0-9]+' - - 'v[0-9]+.[0-9]+.[0-9]+-pre*' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - - name: Common Setup - id: common_setup - uses: fortio/workflows/.github/actions/common_setup@main - with: - DOCKER_USER: ${{ secrets.DOCKER_USER }} - DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} - - name: Available platforms - run: | - echo "Build platforms: ${{ steps.common_setup.outputs.platforms }}" - - name: Build - id: build - run: | - make info - make release - VERSION=$(make echo-version) - echo "VERSION=${VERSION}" >> $GITHUB_ENV - PACKAGE_VERSION=$(make echo-package-version) - echo "Version $VERSION, Package version $PACKAGE_VERSION" - - - name: Build and push Docker image - uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # pin@v5 - with: - context: . - platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x - push: true - tags: fortio/fortio:${{ env.VERSION }}, fortio/fortio:latest - - - name: Create Release - id: create_release - # Need to find a replacement not using set-output - uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # pin@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ github.ref }} - release_name: Fortio ${{ env.VERSION }} - draft: true - - - name: Upload release artifacts - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - tag_name="${GITHUB_REF##*/}" - echo "will use tag_name=$tag_name" - # tends to fail and not find the release somehow; add a small sleep... (yuck) - sleep 10 - gh release upload "${tag_name}" release/*.{tgz,zip,rpm,deb,gz} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/.gitignore new/fortio-1.76.1/.gitignore --- old/fortio-1.76.0/.gitignore 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/.gitignore 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -# linter config now comes from shared workflows -.golangci.yml -coverage.out* -tmp/ -coverage.txt -*.bak -*.json -test.profile.* -# binary, in case of go build . -fortio -.DS_Store -# Avoid accidental changes to vendor or Gopkg.*: -vendor -Gopkg.* -.idea -# certs for testing -cert-tmp/ -# brew binary bottles create a .brew_home/ dir in source tree -.brew_home/ -.vscode/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/Dockerfile new/fortio-1.76.1/Dockerfile --- old/fortio-1.76.0/Dockerfile 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/Dockerfile 2026-11-16 07:22:02.000000000 +0100 @@ -1,5 +1,5 @@ # Build the binaries in larger image -FROM docker.io/fortio/fortio.build:v90@sha256:036f5b5d4df9ce30e0574f212d19ced86ddc7b0255f58a536b008943e5c4efc7 AS build +FROM docker.io/fortio/fortio.build:v91@sha256:aff65a2b742abed839fc32f5bf11bacacf16be3adae80b0d9d8eeea60fc44c48 AS build WORKDIR /build COPY --chown=build:build . fortio ARG MODE=install diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/Dockerfile.build new/fortio-1.76.1/Dockerfile.build --- old/fortio-1.76.0/Dockerfile.build 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/Dockerfile.build 2026-11-16 07:22:02.000000000 +0100 @@ -1,5 +1,5 @@ # Dependencies and linters for build: -FROM golang:1.26.9@sha256:f1f0bcc2c524a3ced375fcb4d1ecb7aa371aa7070e112599aaca45cc02d0101b +FROM golang:1.26.11@sha256:957952ae74dc010608717144399a59a2c6e82ea03d63be1c7ff6577c5a135f93 # When the image isn't yet available and it's urgent: (replace XX.YY with the version needed) # ENV GOTOOLCHAIN=go1.XX.YY # RUN go version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/Dockerfile.echosrv new/fortio-1.76.1/Dockerfile.echosrv --- old/fortio-1.76.0/Dockerfile.echosrv 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/Dockerfile.echosrv 2026-11-16 07:22:02.000000000 +0100 @@ -1,5 +1,5 @@ # Build the binaries in larger image -FROM docker.io/fortio/fortio.build:v90@sha256:036f5b5d4df9ce30e0574f212d19ced86ddc7b0255f58a536b008943e5c4efc7 AS build +FROM docker.io/fortio/fortio.build:v91@sha256:aff65a2b742abed839fc32f5bf11bacacf16be3adae80b0d9d8eeea60fc44c48 AS build WORKDIR /build COPY . fortio RUN make -C fortio official-build-version BUILD_DIR=/build OFFICIAL_TARGET=fortio.org/fortio/echosrv diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/Dockerfile.fcurl new/fortio-1.76.1/Dockerfile.fcurl --- old/fortio-1.76.0/Dockerfile.fcurl 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/Dockerfile.fcurl 2026-11-16 07:22:02.000000000 +0100 @@ -1,5 +1,5 @@ # Build the binaries in larger image -FROM docker.io/fortio/fortio.build:v90@sha256:036f5b5d4df9ce30e0574f212d19ced86ddc7b0255f58a536b008943e5c4efc7 AS build +FROM docker.io/fortio/fortio.build:v91@sha256:aff65a2b742abed839fc32f5bf11bacacf16be3adae80b0d9d8eeea60fc44c48 AS build WORKDIR /build COPY . fortio RUN make -C fortio official-build-version BUILD_DIR=/build OFFICIAL_TARGET=fortio.org/fortio/fcurl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/Makefile new/fortio-1.76.1/Makefile --- old/fortio-1.76.0/Makefile 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/Makefile 2026-11-16 07:22:02.000000000 +0100 @@ -7,7 +7,7 @@ IMAGES=echosrv fcurl # plus the combo image / Dockerfile without ext. DOCKER_PREFIX := docker.io/fortio/fortio -BUILD_IMAGE_TAG := v90@sha256:036f5b5d4df9ce30e0574f212d19ced86ddc7b0255f58a536b008943e5c4efc7 +BUILD_IMAGE_TAG := v91@sha256:aff65a2b742abed839fc32f5bf11bacacf16be3adae80b0d9d8eeea60fc44c48 BUILDX_PLATFORMS := linux/amd64,linux/arm64,linux/ppc64le,linux/s390x BUILDX_POSTFIX := ifeq '$(shell echo $(BUILDX_PLATFORMS) | awk -F "," "{print NF-1}")' '0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/README.md new/fortio-1.76.1/README.md --- old/fortio-1.76.0/README.md 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/README.md 2026-11-16 07:22:02.000000000 +0100 @@ -1,4 +1,4 @@ -<!-- 1.76.0 --> +<!-- 1.76.1 --> # 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.0/fortio-linux_amd64-1.76.0.tgz \ +curl -L https://github.com/fortio/fortio/releases/download/v1.76.1/fortio-linux_amd64-1.76.1.tgz \ | sudo tar -C / -xvzpf - # or the debian package -wget https://github.com/fortio/fortio/releases/download/v1.76.0/fortio_1.76.0_amd64.deb -dpkg -i fortio_1.76.0_amd64.deb +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 # or the rpm -rpm -i https://github.com/fortio/fortio/releases/download/v1.76.0/fortio-1.76.0-1.x86_64.rpm +rpm -i https://github.com/fortio/fortio/releases/download/v1.76.1/fortio-1.76.1-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.0/fortio_win_1.76.0.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.76.1/fortio_win_1.76.1.zip and extract `fortio.exe` to any location, then using the Windows Command Prompt: ``` fortio.exe server ``` @@ -141,7 +141,7 @@ <!-- use release/updateFlags.sh to update this section --> <pre> <!-- USAGE_START --> -Φορτίο 1.76.0 usage: +Φορτίο 1.76.1 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), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/Webtest.sh new/fortio-1.76.1/Webtest.sh --- old/fortio-1.76.0/Webtest.sh 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/Webtest.sh 2026-11-16 07:22:02.000000000 +0100 @@ -140,7 +140,7 @@ PPROF_URL="$BASE_URL/debug/pprof/heap?debug=1" $CURL "$PPROF_URL" | grep -i TotalAlloc # should find this in memory profile # creating dummy container to hold a volume for test certs due to remote docker bind mount limitation. -DOCKERCURLID=$(docker run -d -v $TEST_CERT_VOL --net host --name $DOCKERSECVOLNAME docker.io/fortio/fortio.build:v90@sha256:036f5b5d4df9ce30e0574f212d19ced86ddc7b0255f58a536b008943e5c4efc7 sleep 120) +DOCKERCURLID=$(docker run -d -v $TEST_CERT_VOL --net host --name $DOCKERSECVOLNAME docker.io/fortio/fortio.build:v91@sha256:aff65a2b742abed839fc32f5bf11bacacf16be3adae80b0d9d8eeea60fc44c48 sleep 120) # while we have something with actual curl binary do # Test for h2c upgrade (#562) docker exec $DOCKERSECVOLNAME /usr/bin/curl -v --http2 -m 10 -d foo42 http://localhost:8080/debug | tee >(cat 1>&2) | grep foo42 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/fgrpc/dynamic_grpc.go new/fortio-1.76.1/fgrpc/dynamic_grpc.go --- old/fortio-1.76.0/fgrpc/dynamic_grpc.go 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/fgrpc/dynamic_grpc.go 2026-11-16 07:22:02.000000000 +0100 @@ -2,26 +2,28 @@ import ( "context" - "encoding/json" "errors" "fmt" "strings" "fortio.org/log" - "github.com/jhump/protoreflect/desc" //nolint:staticcheck // TODO: migrate to v2 API - "github.com/jhump/protoreflect/dynamic" //nolint:staticcheck // TODO: migrate to v2 API - "github.com/jhump/protoreflect/dynamic/grpcdynamic" - "github.com/jhump/protoreflect/grpcreflect" + "github.com/jhump/protoreflect/v2/grpcdynamic" + "github.com/jhump/protoreflect/v2/grpcreflect" "google.golang.org/grpc" + "google.golang.org/protobuf/encoding/protojson" + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/dynamicpb" ) // DynamicGrpcCall represents a prepared dynamic gRPC call with all necessary components. type DynamicGrpcCall struct { - MethodPath string // e.g. "/Service/Method" - RequestMsg *dynamic.Message // dynamic protobuf for request + MethodPath string // e.g. "/Service/Method" + RequestMsg proto.Message // dynamic protobuf for request - conn *grpc.ClientConn // gRPC connection to use for the call - methodDescriptor *desc.MethodDescriptor // Method descriptor for the gRPC method + conn *grpc.ClientConn // gRPC connection to use for the call + methodDescriptor protoreflect.MethodDescriptor // Method descriptor for the gRPC method } // parseFullMethod splits "Service/Method" or "/Service/Method" into service and method. @@ -43,16 +45,16 @@ } stub := grpcdynamic.NewStub(call.conn) - response, err := stub.InvokeRpc(ctx, call.methodDescriptor, call.RequestMsg) + response, err := stub.InvokeRPC(ctx, call.methodDescriptor, call.RequestMsg) if err != nil { return "", fmt.Errorf("gRPC invoke error: %w", err) } log.Debugf("gRpc response: %v", response) - return response.String(), nil + return prototext.Format(response), nil } // getMethodDescriptor retrieves the method descriptor for a given full method name. -func getMethodDescriptor(ctx context.Context, conn *grpc.ClientConn, fullMethod string) (*desc.MethodDescriptor, error) { +func getMethodDescriptor(ctx context.Context, conn *grpc.ClientConn, fullMethod string) (protoreflect.MethodDescriptor, error) { refClient := grpcreflect.NewClientAuto(ctx, conn) defer refClient.Reset() @@ -61,32 +63,46 @@ return nil, err } - sd, err := refClient.ResolveService(serviceName) + fileDesc, err := refClient.FileContainingSymbol(protoreflect.FullName(serviceName)) if err != nil { return nil, err } - md := sd.FindMethodByName(methodName) + + var sd protoreflect.ServiceDescriptor + services := fileDesc.Services() + for i := range services.Len() { + s := services.Get(i) + if string(s.FullName()) == serviceName || string(s.Name()) == serviceName { + sd = s + break + } + } + if sd == nil { + return nil, fmt.Errorf("service %s not found", serviceName) + } + + md := sd.Methods().ByName(protoreflect.Name(methodName)) if md == nil { return nil, fmt.Errorf("method %s not found in service %s", methodName, serviceName) } - log.Debugf("Resolved method descriptor for %s: %s", fullMethod, md.GetFullyQualifiedName()) + log.Debugf("Resolved method descriptor for %s: %s", fullMethod, md.FullName()) return md, nil } // getRequestMessage creates a protobuf message from the JSON payload. -func getRequestMessage(md *desc.MethodDescriptor, jsonPayload string) (*dynamic.Message, error) { - inputType := md.GetInputType() - inMsg := dynamic.NewMessage(inputType) +func getRequestMessage(md protoreflect.MethodDescriptor, jsonPayload string) (proto.Message, error) { + inputType := md.Input() + inMsg := dynamicpb.NewMessage(inputType) if jsonPayload == "" || jsonPayload == "{}" { - log.Debugf("Empty payload. Creating empty message for %s", inputType.GetFullyQualifiedName()) + log.Debugf("Empty payload. Creating empty message for %s", inputType.FullName()) // return empty message if no payload return inMsg, nil } - if err := json.Unmarshal([]byte(jsonPayload), inMsg); err != nil { + if err := protojson.Unmarshal([]byte(jsonPayload), inMsg); err != nil { return nil, fmt.Errorf("failed to unmarshal JSON payload: %w", err) } - log.Debugf("Created request message for %s: %s", inputType, inMsg) + log.Debugf("Created request message for %s: %s", inputType.FullName(), inMsg) return inMsg, nil } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/fgrpc/dynamic_grpc_test.go new/fortio-1.76.1/fgrpc/dynamic_grpc_test.go --- old/fortio-1.76.0/fgrpc/dynamic_grpc_test.go 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/fgrpc/dynamic_grpc_test.go 2026-11-16 07:22:02.000000000 +0100 @@ -357,3 +357,63 @@ t.Errorf("getMethodDescriptor expected error with invalid connection but got none") } } + +func TestDynamicGrpcCallNilDescriptor(t *testing.T) { + conn, err := grpc.NewClient("localhost:99999", grpc.WithTransportCredentials(insecure.NewCredentials())) + if err != nil { + t.Fatalf("Failed to create connection: %v", err) + } + defer conn.Close() + + call := &DynamicGrpcCall{ + MethodPath: "/fgrpc.PingServer/Ping", + conn: conn, + methodDescriptor: nil, + } + + ctx := context.Background() + _, err = dynamicGrpcCall(ctx, call) + if err == nil { + t.Errorf("dynamicGrpcCall expected error with nil method descriptor but got none") + } +} + +func TestDynamicGrpcCallContextCanceled(t *testing.T) { + port := PingServerTCP("0", "test", 0, noTLSO) + addr := fmt.Sprintf("localhost:%d", port) + time.Sleep(100 * time.Millisecond) + + conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) + if err != nil { + t.Fatalf("Failed to connect: %v", err) + } + defer conn.Close() + + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + defer cancel() + + md, err := getMethodDescriptor(ctx, conn, "/fgrpc.PingServer/Ping") + if err != nil { + t.Fatalf("Failed to get method descriptor: %v", err) + } + + reqMsg, err := getRequestMessage(md, `{"seq": 1, "delayNanos": 500000000}`) + if err != nil { + t.Fatalf("Failed to create request message: %v", err) + } + + call := &DynamicGrpcCall{ + MethodPath: "/fgrpc.PingServer/Ping", + RequestMsg: reqMsg, + conn: conn, + methodDescriptor: md, + } + + canceledCtx, cancelImmediate := context.WithCancel(context.Background()) + cancelImmediate() + + _, err = dynamicGrpcCall(canceledCtx, call) + if err == nil { + t.Errorf("dynamicGrpcCall expected error with canceled context but got none") + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/fgrpc/grpcrunner.go new/fortio-1.76.1/fgrpc/grpcrunner.go --- old/fortio-1.76.0/fgrpc/grpcrunner.go 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/fgrpc/grpcrunner.go 2026-11-16 07:22:02.000000000 +0100 @@ -28,14 +28,14 @@ "fortio.org/fortio/fnet" "fortio.org/fortio/periodic" "fortio.org/log" - "github.com/jhump/protoreflect/desc" //nolint:staticcheck // TODO: migrate to v2 API - "github.com/jhump/protoreflect/dynamic" //nolint:staticcheck // TODO: migrate to v2 API "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/encoding/gzip" "google.golang.org/grpc/health/grpc_health_v1" "google.golang.org/grpc/metadata" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" ) // Dial dials gRPC using insecure or TLS transport security when serverAddr @@ -199,8 +199,8 @@ out := r.Options().Out // Important as the default value is set from nil to stdout inside NewPeriodicRunner var conn *grpc.ClientConn var err error - var methodDescriptor *desc.MethodDescriptor - var reqMsg *dynamic.Message + var methodDescriptor protoreflect.MethodDescriptor + var reqMsg proto.Message ts := time.Now().UnixNano() for i := range numThreads { r.Options().Runners[i] = &grpcstate[i] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/fhttp/http_test.go new/fortio-1.76.1/fhttp/http_test.go --- old/fortio-1.76.0/fhttp/http_test.go 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/fhttp/http_test.go 2026-11-16 07:22:02.000000000 +0100 @@ -17,9 +17,15 @@ import ( "bytes" "context" + "crypto/rand" + "crypto/rsa" + "crypto/tls" + "crypto/x509" "encoding/json" + "encoding/pem" "fmt" "io" + "math/big" "net" "net/http" "net/http/httptest" @@ -1637,28 +1643,240 @@ } } +func createExpiredCertServerWithCA(handler http.Handler, caCertBytes []byte, caKey *rsa.PrivateKey) *httptest.Server { + // Generate a private key for the server cert + serverKey, err := rsa.GenerateKey(rand.Reader, 2048) + if err != nil { + panic(err) + } + + // Parse the CA certificate to get its info + caCert, err := x509.ParseCertificate(caCertBytes) + if err != nil { + panic(err) + } + + // Create an expired server certificate signed by the CA + serverTemplate := &x509.Certificate{ + SerialNumber: big.NewInt(2), + NotBefore: time.Now().Add(-24 * time.Hour), + NotAfter: time.Now().Add(-1 * time.Hour), // Expired 1 hour ago + KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, + ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, + DNSNames: []string{"localhost", "127.0.0.1"}, + IPAddresses: []net.IP{net.ParseIP("127.0.0.1"), net.ParseIP("::1")}, + } + + serverCertBytes, err := x509.CreateCertificate(rand.Reader, serverTemplate, caCert, &serverKey.PublicKey, caKey) + if err != nil { + panic(err) + } + + // Encode certificate to PEM + certPEM := pem.EncodeToMemory(&pem.Block{ + Type: "CERTIFICATE", + Bytes: serverCertBytes, + }) + + // Encode private key to PEM + privKeyBytes, err := x509.MarshalPKCS8PrivateKey(serverKey) + if err != nil { + panic(err) + } + + keyPEM := pem.EncodeToMemory(&pem.Block{ + Type: "PRIVATE KEY", + Bytes: privKeyBytes, + }) + + // Load the certificate and key into a tls.Certificate + cert, err := tls.X509KeyPair(certPEM, keyPEM) + if err != nil { + panic(err) + } + + // Create a test server with the expired certificate + listener, err := net.Listen("tcp", "127.0.0.1:0") + if err != nil { + panic(err) + } + + server := &httptest.Server{ + Listener: listener, + TLS: &tls.Config{Certificates: []tls.Certificate{cert}}, + Config: &http.Server{Handler: handler}, + } + + server.StartTLS() + + return server +} + +func createValidCertServer(handler http.Handler, caCertBytes []byte, caKey *rsa.PrivateKey) *httptest.Server { + // Generate a private key for the server cert + serverKey, err := rsa.GenerateKey(rand.Reader, 2048) + if err != nil { + panic(err) + } + + // Parse the CA certificate to get its info + caCert, err := x509.ParseCertificate(caCertBytes) + if err != nil { + panic(err) + } + + // Create a valid (non-expired) server certificate signed by the CA + serverTemplate := &x509.Certificate{ + SerialNumber: big.NewInt(3), + NotBefore: time.Now().Add(-1 * time.Hour), + NotAfter: time.Now().Add(24 * time.Hour), // Valid for 24 hours + KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, + ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, + DNSNames: []string{"localhost", "127.0.0.1"}, + IPAddresses: []net.IP{net.ParseIP("127.0.0.1"), net.ParseIP("::1")}, + } + + serverCertBytes, err := x509.CreateCertificate(rand.Reader, serverTemplate, caCert, &serverKey.PublicKey, caKey) + if err != nil { + panic(err) + } + + // Encode certificate to PEM + certPEM := pem.EncodeToMemory(&pem.Block{ + Type: "CERTIFICATE", + Bytes: serverCertBytes, + }) + + // Encode private key to PEM + privKeyBytes, err := x509.MarshalPKCS8PrivateKey(serverKey) + if err != nil { + panic(err) + } + + keyPEM := pem.EncodeToMemory(&pem.Block{ + Type: "PRIVATE KEY", + Bytes: privKeyBytes, + }) + + // Load the certificate and key into a tls.Certificate + cert, err := tls.X509KeyPair(certPEM, keyPEM) + if err != nil { + panic(err) + } + + // Create a test server with the valid certificate + listener, err := net.Listen("tcp", "127.0.0.1:0") + if err != nil { + panic(err) + } + + server := &httptest.Server{ + Listener: listener, + TLS: &tls.Config{Certificates: []tls.Certificate{cert}}, + Config: &http.Server{Handler: handler}, + } + + server.StartTLS() + + return server +} + func TestInsecureRequest(t *testing.T) { - expiredURL := "https://expired.badssl.com/" + handler := http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { + w.WriteHeader(http.StatusOK) + }) + + // Create a CA and generate both expired and valid certs from it + caKey, err := rsa.GenerateKey(rand.Reader, 2048) + if err != nil { + t.Fatalf("Failed to generate CA key: %v", err) + } + + caTemplate := &x509.Certificate{ + SerialNumber: big.NewInt(1), + NotBefore: time.Now().Add(-24 * time.Hour), + NotAfter: time.Now().Add(24 * time.Hour), + KeyUsage: x509.KeyUsageCertSign, + BasicConstraintsValid: true, + IsCA: true, + DNSNames: []string{"localhost", "127.0.0.1"}, + } + + caCertBytes, err := x509.CreateCertificate(rand.Reader, caTemplate, caTemplate, &caKey.PublicKey, caKey) + if err != nil { + t.Fatalf("Failed to create CA certificate: %v", err) + } + + // Write CA certificate to a temp file + caCertPEM := pem.EncodeToMemory(&pem.Block{ + Type: "CERTIFICATE", + Bytes: caCertBytes, + }) + + tmpCA, err := os.CreateTemp(t.TempDir(), "ca-cert-*.pem") + if err != nil { + t.Fatalf("Failed to create temp CA file: %v", err) + } + defer os.Remove(tmpCA.Name()) + + if _, err := tmpCA.Write(caCertPEM); err != nil { + t.Fatalf("Failed to write CA cert: %v", err) + } + tmpCA.Close() + + // Create servers with both expired and valid certs signed by the same CA + expiredSrv := createExpiredCertServerWithCA(handler, caCertBytes, caKey) + defer expiredSrv.Close() + + validSrv := createValidCertServer(handler, caCertBytes, caKey) + defer validSrv.Close() + + // Also test with self-signed (httptest.NewTLSServer) + selfSignedSrv := httptest.NewTLSServer(handler) + defer selfSignedSrv.Close() + tests := []struct { - fastClient bool // use FastClient - insecure bool // insecure option - code int // expected code - }{ - {false, true, http.StatusOK}, - {false, false, -1}, - {true, true, http.StatusOK}, - {true, false, -1}, + name string + url string + caCert string // path to CA cert file, if any + fastClient bool // use FastClient + insecure bool // insecure option + code int // expected code + }{ + // Self-signed cert tests (no CA provided) + {"self-signed-insecure-false", selfSignedSrv.URL, "", false, false, -1}, + {"self-signed-insecure-true", selfSignedSrv.URL, "", false, true, http.StatusOK}, + {"self-signed-fastclient-insecure-false", selfSignedSrv.URL, "", true, false, -1}, + {"self-signed-fastclient-insecure-true", selfSignedSrv.URL, "", true, true, http.StatusOK}, + + // Valid cert with CA provided (should succeed without insecure) + {"valid-cert-with-ca-insecure-false", validSrv.URL, tmpCA.Name(), false, false, http.StatusOK}, + {"valid-cert-with-ca-insecure-true", validSrv.URL, tmpCA.Name(), false, true, http.StatusOK}, + {"valid-cert-with-ca-fastclient-insecure-false", validSrv.URL, tmpCA.Name(), true, false, http.StatusOK}, + {"valid-cert-with-ca-fastclient-insecure-true", validSrv.URL, tmpCA.Name(), true, true, http.StatusOK}, + + // Expired cert with CA provided (should fail because of expiration, not CA) + {"expired-cert-with-ca-insecure-false", expiredSrv.URL, tmpCA.Name(), false, false, -1}, + {"expired-cert-with-ca-insecure-true", expiredSrv.URL, tmpCA.Name(), false, true, http.StatusOK}, + {"expired-cert-with-ca-fastclient-insecure-false", expiredSrv.URL, tmpCA.Name(), true, false, -1}, + {"expired-cert-with-ca-fastclient-insecure-true", expiredSrv.URL, tmpCA.Name(), true, true, http.StatusOK}, } + for _, tst := range tests { - o := HTTPOptions{ - DisableFastClient: tst.fastClient, - URL: expiredURL, - TLSOptions: TLSOptions{Insecure: tst.insecure}, - } - code, _ := Fetch(&o) - if code != tst.code { - t.Errorf("Got %d code while expecting status (%d)", code, tst.code) - } + t.Run(tst.name, func(t *testing.T) { + o := HTTPOptions{ + DisableFastClient: !tst.fastClient, + URL: tst.url, + TLSOptions: TLSOptions{ + Insecure: tst.insecure, + CACert: tst.caCert, + }, + } + code, _ := Fetch(&o) + if code != tst.code { + t.Errorf("Got %d code while expecting status (%d) for insecure=%t, caCert=%s", code, tst.code, tst.insecure, tst.caCert) + } + }) } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/go.mod new/fortio-1.76.1/go.mod --- old/fortio-1.76.0/go.mod 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/go.mod 2026-11-16 07:22:02.000000000 +0100 @@ -19,15 +19,16 @@ fortio.org/duration v1.0.4 fortio.org/log v1.18.3 fortio.org/safecast v1.2.0 - fortio.org/scli v1.19.0 + fortio.org/scli v1.20.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 v1.19.0 - google.golang.org/grpc v1.84.0 - grol.io/grol v0.101.4 + github.com/jhump/protoreflect/v2 v2.0.0 + google.golang.org/grpc v1.85.0 + google.golang.org/protobuf v1.36.12 + grol.io/grol v0.102.1 ) // Local dev of dependencies changes @@ -42,19 +43,17 @@ require ( fortio.org/struct2env v0.4.2 // indirect - fortio.org/terminal v0.65.4 // indirect + fortio.org/terminal v0.66.0 // indirect github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/jbuchbinder/gopnm v0.0.0-20220507095634-e31f54490ce0 // indirect - github.com/jhump/protoreflect/v2 v2.0.0-beta.1 // indirect github.com/kortschak/goroutine v1.1.3 // indirect github.com/rivo/uniseg v0.4.7 // indirect golang.org/x/crypto/x509roots/fallback v0.0.0-20250406160420-959f8f3db0fb // indirect - golang.org/x/image v0.46.0 // indirect + golang.org/x/image v0.47.0 // indirect golang.org/x/net v0.61.0 // indirect - golang.org/x/sys v0.49.0 // indirect + golang.org/x/sys v0.50.0 // indirect golang.org/x/term v0.47.0 // indirect golang.org/x/text v0.43.0 // indirect golang.org/x/tools v0.51.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20260706201446-f0a921348800 // indirect - google.golang.org/protobuf v1.36.12 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260817212433-ac3dfec99bb1 // indirect ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/go.sum new/fortio-1.76.1/go.sum --- old/fortio-1.76.0/go.sum 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/go.sum 2026-11-16 07:22:02.000000000 +0100 @@ -10,14 +10,14 @@ 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.19.0 h1:3nr1BzCmKds6Ms7O33sjM0r/y9N4ZCEeFZ6kCzI/ii0= -fortio.org/scli v1.19.0/go.mod h1:cgaXS0ccxZl6i9pRn6rZQTtoRVeopu17XyvDdEeZpNE= +fortio.org/scli v1.20.0 h1:5N3HrI4686sNciz/5yFYn0Dg+pFFLpaIRVdvZ2GrtFQ= +fortio.org/scli v1.20.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= fortio.org/struct2env v0.4.2/go.mod h1:lENUe70UwA1zDUCX+8AsO663QCFqYaprk5lnPhjD410= -fortio.org/terminal v0.65.4 h1:AWcMbbA1Zzd38067MsC8VZ2KTWzfLxN5ZEIVUQ1qcBM= -fortio.org/terminal v0.65.4/go.mod h1:55eXfkjKNM5mf0jLy1J5NtsnwPVH3kJdSmXZoCo6pe8= +fortio.org/terminal v0.66.0 h1:0t9xswee/wZZaSeLD6iSTjjjGzBkI6KkRvfbW5MbsjY= +fortio.org/terminal v0.66.0/go.mod h1:7nsoxZg+RtX/mx9QYRUfYRcNqS9kaKqmMMpxryGxAlw= fortio.org/testscript v0.3.2 h1:ks5V+Y6H6nmeGqnVlZuLdiFwpqXemDkEnyGgCZa/ZNA= fortio.org/testscript v0.3.2/go.mod h1:Z2kUvEDHYETV8FLxsdA6zwSZ8sZUiTNJh2Dw5c4a3Pg= fortio.org/version v1.0.4 h1:FWUMpJ+hVTNc4RhvvOJzb0xesrlRmG/a+D6bjbQ4+5U= @@ -36,14 +36,10 @@ 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 v1.19.0 h1:YhKbE78JrjfngcCZfZTIV7rQQGndyqll6fXfaqiOEg4= -github.com/jhump/protoreflect v1.19.0/go.mod h1:I2yar2oJEMf0k4EMryPzfV0tvGwN/SejJziYBOpETQo= -github.com/jhump/protoreflect/v2 v2.0.0-beta.1 h1:Dw1rslK/VotaUGYsv53XVWITr+5RCPXfvvlGrM/+B6w= -github.com/jhump/protoreflect/v2 v2.0.0-beta.1/go.mod h1:D9LBEowZyv8/iSu97FU2zmXG3JxVTmNw21mu63niFzU= +github.com/jhump/protoreflect/v2 v2.0.0 h1:dBg0utH2witLqXfczkVVrHFrFQc8SN1rvaKkOR5ALDg= +github.com/jhump/protoreflect/v2 v2.0.0/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/petermattis/goid v0.0.0-20260113132338-7c7de50cc741 h1:KPpdlQLZcHfTMQRi6bFQ7ogNO0ltFT4PmtwTLW4W+14= -github.com/petermattis/goid v0.0.0-20260113132338-7c7de50cc741/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= @@ -52,14 +48,12 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto/x509roots/fallback v0.0.0-20250406160420-959f8f3db0fb h1:Iu0p/klM0SM7atONioa/bPhLS7cjhnip99x1OIGibwg= golang.org/x/crypto/x509roots/fallback v0.0.0-20250406160420-959f8f3db0fb/go.mod h1:lxN5T34bK4Z/i6cMaU7frUU57VkDXFD4Kamfl/cp9oU= -golang.org/x/image v0.46.0 h1:b1+oYj0Jbp6K5MDT4i4/eZpYlk3V8SJhhDKh6LBHAyQ= -golang.org/x/image v0.46.0/go.mod h1:3B3W05VGVQyuXucLINLjXKrqISASfi4Xj+iCVkLMwew= +golang.org/x/image v0.47.0 h1:za/8gVz++PPZqmZJBNSISICN5Rrj5zixP/8K++fgmqo= +golang.org/x/image v0.47.0/go.mod h1:IkN5o4A7vq55vXN8FWjjnhg9Rs2GOtffqsSi9mWAKYE= golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= -golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= -golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= -golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= -golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs= +golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= @@ -68,13 +62,13 @@ golang.org/x/tools v0.51.0/go.mod h1:9eEncMayCV6zRMGhR5eZEC2iBx98qWcF1HZ9Z7wJOoA= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260706201446-f0a921348800 h1:qEHAMpSaUhtD0p3NbEEI83HwNGFxEwaSJ1G9PLnCBZE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260706201446-f0a921348800/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= -google.golang.org/grpc v1.84.0 h1:soMyaPJ8pAak5PIQ0DGBUir0XRo2fRoMqhNWMLlLxO0= -google.golang.org/grpc v1.84.0/go.mod h1:ljCht0DrxQrXBDRTZp52Qxh3Ffk8CdYm2sj4O2QN2C0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260817212433-ac3dfec99bb1 h1:utmqiUzZAEINbLmRyAt1QjVkMyLQ+lvIwCpLaB1rZfw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260817212433-ac3dfec99bb1/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= +google.golang.org/grpc v1.85.0 h1:BPBCfuVRQ1qvBhKDOq9uvQllMvO59rKsYhXpp7Dd8vw= +google.golang.org/grpc v1.85.0/go.mod h1:0rQrOD58yjal/0EaVbGBANindixsCZNQPDV3VKtaKuQ= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -grol.io/grol v0.101.4 h1:+JJyAbZxQ3pk7Zh3DEU3KDODgl9Eoq0i/mtPV50Wjic= -grol.io/grol v0.101.4/go.mod h1:0j+6BlYTCfD5Zo6zaooWBnP4msCgNPbBGSBvgFAy1Eo= +grol.io/grol v0.102.1 h1:0ppwfZNUmglwpI+8iPqjdchJBNo14LpEfIILUpCckxE= +grol.io/grol v0.102.1/go.mod h1:JFl/z3B+4Tym31D6yCikLXlZOOCZ4+yD3E+as7wwLe8= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/periodic/periodic.go new/fortio-1.76.1/periodic/periodic.go --- old/fortio-1.76.0/periodic/periodic.go 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/periodic/periodic.go 2026-11-16 07:22:02.000000000 +0100 @@ -939,9 +939,9 @@ last := '_' base += string(last) var baseSb927 strings.Builder - for _, rune := range r.Labels { - if (rune >= 'a' && rune <= 'z') || (rune >= 'A' && rune <= 'Z') || (rune >= '0' && rune <= '9') { - last = rune + for _, char := range r.Labels { + if (char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || (char >= '0' && char <= '9') { + last = char } else { if last == '_' { continue // only 1 _ separator at a time diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/release/Dockerfile.in new/fortio-1.76.1/release/Dockerfile.in --- old/fortio-1.76.0/release/Dockerfile.in 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/release/Dockerfile.in 2026-11-16 07:22:02.000000000 +0100 @@ -1,5 +1,5 @@ # Concatenated after ../Dockerfile to create the tgz -FROM docker.io/fortio/fortio.build:v90@sha256:036f5b5d4df9ce30e0574f212d19ced86ddc7b0255f58a536b008943e5c4efc7 AS stage +FROM docker.io/fortio/fortio.build:v91@sha256:aff65a2b742abed839fc32f5bf11bacacf16be3adae80b0d9d8eeea60fc44c48 AS stage ARG archs="amd64 arm64 ppc64le s390x" ENV archs=${archs} # Build image defaults to build user, switch back to root for diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/stats/stats.go new/fortio-1.76.1/stats/stats.go --- old/fortio-1.76.0/stats/stats.go 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/stats/stats.go 2026-11-16 07:22:02.000000000 +0100 @@ -57,7 +57,7 @@ } s := v * float64(n) c.Sum += s - c.sumOfSquares += (s * s) + c.sumOfSquares += v * s // n*(v^2) } // Avg returns the average. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fortio-1.76.0/stats/stats_test.go new/fortio-1.76.1/stats/stats_test.go --- old/fortio-1.76.0/stats/stats_test.go 2026-10-11 03:54:18.000000000 +0200 +++ new/fortio-1.76.1/stats/stats_test.go 2026-11-16 07:22:02.000000000 +0100 @@ -772,6 +772,15 @@ } } +func TestRecordN(t *testing.T) { + var a, b Counter + a.RecordN(5, 3) + for range 3 { + b.Record(5) + } + assert.CheckEquals(t, a, b, "RecordN(5, 3) should be the same as 3 x Record(5)") +} + func TestNaN(t *testing.T) { var c Counter for i := 599713; i > 0; i-- { ++++++ fortio.obsinfo ++++++ --- /var/tmp/diff_new_pack.n7BaiX/_old 2026-11-17 17:21:52.222332264 +0100 +++ /var/tmp/diff_new_pack.n7BaiX/_new 2026-11-17 17:21:52.225332390 +0100 @@ -1,5 +1,5 @@ name: fortio -version: 1.76.0 -mtime: 1791683658 -commit: 67ce9fa2a3a62fdb2f7a0d2b50acda1f7002d32b +version: 1.76.1 +mtime: 1794810122 +commit: 32a39ecf9482289d571aefc6b4622a0a868d21d5 ++++++ vendor.tar.gz ++++++ ++++ 26105 lines of diff (skipped)
