Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/_util/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ go 1.25.0

require (
github.com/golang-jwt/jwt/v5 v5.3.1
github.com/microsoft/go-infra v0.0.13
github.com/microsoft/go-infra v0.0.14-0.20260519171846-5b881354cb74
github.com/microsoft/go-infra/goinstallscript v1.2.0
golang.org/x/net v0.54.0
)
Expand Down
4 changes: 2 additions & 2 deletions eng/_util/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5 h1:YH424zrwLTlyHSH/GzLMJeu5zhYVZSx5RQxGKm1h96s=
github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5/go.mod h1:PoGiBqKSQK1vIfQ+yVaFcGjDySHvym6FM1cNYnwzbrY=
github.com/microsoft/go-infra v0.0.13 h1:s7ymSsDJagh35CYuJDc8GJdBqtZ5sE696oi7mxRMnvI=
github.com/microsoft/go-infra v0.0.13/go.mod h1:+NF5K79FJNpFKRPX7J9g9tZ2NFZa9dM751xWPpF3IgY=
github.com/microsoft/go-infra v0.0.14-0.20260519171846-5b881354cb74 h1:ZC1e/Zlxxd3++rJUQ9OKNZPtyAJl9nSJnl/RLlUDfhs=
github.com/microsoft/go-infra v0.0.14-0.20260519171846-5b881354cb74/go.mod h1:+NF5K79FJNpFKRPX7J9g9tZ2NFZa9dM751xWPpF3IgY=
github.com/microsoft/go-infra/goinstallscript v1.2.0 h1:ArYnZHsmv0jnpeDZdFACBUxSmhmYl+Vof8sfk19aYZI=
github.com/microsoft/go-infra/goinstallscript v1.2.0/go.mod h1:SFsdKAEHdmGsGoh8FkksVaxoQ3rnnJ/TBqN09Ml/0Cw=
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: bot-for-go[bot] <199222863+bot-for-go[bot]@users.noreply.github.com>
Date: Tue, 19 May 2026 10:29:26 -0700
Subject: [PATCH] TEMP: AzDO truncation test for microsoft/go#2046

Adds a deliberately-failing fmt test that emits ~100,000 characters of failure output between AZDO-TRUNCATION-TEST-BEGIN/END markers, to verify that the AzDO test viewer now surfaces an output-truncation indicator. Revert this commit (and the corresponding patch file) once verification is complete.
---
src/fmt/azdo_truncation_test.go | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 src/fmt/azdo_truncation_test.go

diff --git a/src/fmt/azdo_truncation_test.go b/src/fmt/azdo_truncation_test.go
new file mode 100644
index 00000000000000..e87dc741029ac4
--- /dev/null
+++ b/src/fmt/azdo_truncation_test.go
@@ -0,0 +1,25 @@
+// TEMPORARY: untracked experiment for microsoft/go#2046.
+// Intentionally fails with ~100,000 characters of output to verify that the
+// Azure DevOps test viewer indicates output truncation (instead of silently
+// truncating). Delete this file after the experiment.
+
+package fmt_test
+
+import (
+ "fmt"
+ "strings"
+ "testing"
+)
+
+func TestAzdoTruncation(t *testing.T) {
+ const lines = 2000
+ var b strings.Builder
+ b.Grow(lines * 50)
+ b.WriteString("AZDO-TRUNCATION-TEST-BEGIN\n")
+ for i := 0; i < lines; i++ {
+ // 12 chars prefix ("line NNNNN: ") + 37 dashes + 1 newline = 50 chars.
+ fmt.Fprintf(&b, "line %05d: %s\n", i, strings.Repeat("-", 37))
+ }
+ b.WriteString("AZDO-TRUNCATION-TEST-END\n")
+ t.Errorf("emitted %d characters of failure output:\n%s", b.Len(), b.String())
+}
Loading