TestMoreKinds went red on macOS CI at 6c099edd:
"scp a.txt ops@db3.internal:/tmp/": "ops" still in
"scp a.txt {{USERNAME_gwaf7b44}}@{{HOSTNAME_mlopsiy3}}:/tmp/"
The username was masked; the hostname's placeholder suffix, an HMAC under
a key random per test process, happened to spell "ops". Short values in
the table (ops, raw, rinak, rkato, deploy) collide like this now and then.
The "gone" checks in TestMoreKinds and TestMask now look in the text with
placeholders taken out (placeholderRe), so a raw value left in the text
still fails them.
Ran:
- injected the CI placeholder ({{HOSTNAME_mlopsiy3}} for db3.internal) in
placeholder(): the old tests fail with CI's exact message, the new pass
- go test -count=1 ./internal/redact; -race too
- gofmt -l; go vet on darwin, GOOS=linux, GOOS=windows