Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/exp/protoveneer/cmd/protoveneer: TestGeneration failing due to spurious update to copyright year #64941

Closed
bcmills opened this issue Jan 3, 2024 · 3 comments
Assignees
Labels
FixPending Issues that have a fix which has not yet been reviewed or submitted. FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Soon This needs action soon. (recent regressions, service outages, unusual time-sensitive situations)
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Jan 3, 2024

Go version

c95fe91

What operating system and processor architecture are you using (go env)?

:: Running /workdir/go/bin/go with args ["/workdir/go/bin/go" "test" "-short" "./..."] and env ["HOSTNAME=buildlet-linux-amd64-bullseye-rn05739ee" "HOME=/root" "SHLVL=0" "DEBIAN_FRONTEND=noninteractive" "USER=root" "GO_STAGE0_NET_DELAY=0s" "GO_STAGE0_DL_DELAY=200ms" "WORKDIR=/workdir" "GOROOT_BOOTSTRAP=/workdir/go1.4" "GO_BUILDER_NAME=linux-amd64" "GO_DISABLE_OUTBOUND_NETWORK=1" "GOROOT=/workdir/go" "GOPATH=/workdir/gopath" "GOPROXY=http://gk3-services-nap-jetxd907-8f582974-hv4r.c.symbolic-datum-552.internal:30157" "TMPDIR=/workdir/tmp" "GOCACHE=/workdir/gocache" "GOPLSCACHE=/workdir/goplscache" "PATH=/workdir/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "PWD=/workdir/gopath/src/golang.org/x/exp"] in dir /workdir/gopath/src/golang.org/x/exp

What did you do?

Check builder status at https://build.golang.org/.

What did you expect to see?

All tests passing (per #11811).

What did you see instead?

wrote testdata/basic/basic_veneer.gen.go
--- FAIL: TestGeneration (0.00s)
    --- FAIL: TestGeneration/basic (0.00s)
        protoveneer_test.go:53: diff (-want, +got):
              strings.Join({
              	"// Copyright 202",
            - 	"3",
            + 	"4",
              	" Google LLC\n//\n// Licensed under the Apache License, Version 2.0",
              	" (the \"License\");\n// you may not use this file except in complia",
              	... // 6656 identical bytes
              }, "")
FAIL
FAIL	golang.org/x/exp/protoveneer/cmd/protoveneer	0.006s

(attn @jba @eliben)

@bcmills bcmills added NeedsFix The path to resolution is known, but the work has not been done. Soon This needs action soon. (recent regressions, service outages, unusual time-sensitive situations) labels Jan 3, 2024
@gopherbot gopherbot added this to the Unreleased milestone Jan 3, 2024
@bcmills
Copy link
Contributor Author

bcmills commented Jan 3, 2024

This test was added very recently (in https://go.dev/cl/549635).

@bcmills
Copy link
Contributor Author

bcmills commented Jan 3, 2024

This test is failing at HEAD because the tool is changing the file's copyright to 2024.

In general the copyright year listed in the header of a source file should be the year it was authored, not the year of its most recent minor update, so this seems like a defect in the tool itself — not just the test.

@bcmills bcmills changed the title x/exp/protoveneer/cmd/protoveneer: TestGeneration failing due to dependency on current year x/exp/protoveneer/cmd/protoveneer: TestGeneration failing due to spurious update to copyright year Jan 3, 2024
@dmitshur dmitshur added the FixPending Issues that have a fix which has not yet been reviewed or submitted. label Jan 10, 2024
@jba
Copy link
Contributor

jba commented Jan 11, 2024

Fixed by https://go.dev/cl/554718.

@jba jba closed this as completed Jan 11, 2024
@golang golang locked and limited conversation to collaborators Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FixPending Issues that have a fix which has not yet been reviewed or submitted. FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Soon This needs action soon. (recent regressions, service outages, unusual time-sensitive situations)
Projects
None yet
Development

No branches or pull requests

4 participants