Commit Graph

8 Commits

Author SHA1 Message Date
Dmitri Shuralyov
8ed73c7550 all: run integration test on longtest builders in CI
Remove the 'ignore' build constraint from integration_test.go and
arrange things such that the integration test runs on longtest
(but not longtest-race, for now anyway) builders. The existing
scripts for running the invocation test locally are preserved
and can be used as before.

This change relies on the builders being configured to place pre-built
protoc and conformance_test_runner binaries in $PATH (CL 547116); thanks
to Michael for making them available via a CIPD package.

Apply a few improvements to downloadFile and downloadArchive that came
about from earlier prototypes that used them and uncovered some issues.

Fixes golang/go#64066.

Change-Id: I48b163e3ea9c441b748071da340d3e37282cc22b
Co-authored-by: Michael Stapelberg <stapelberg@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/541123
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
2023-12-15 09:19:03 +00:00
Dmitri Shuralyov
3bfc0b0118 all: drop -mod=vendor in integration test invocations
Drop -mod=vendor because it's not needed by now. There are multiple
reasons for this: 1) integration_test.go has no external dependencies,
2) there's no checked-in vendor directory, 3) CL 544855 deleted the
last 'go mod vendor' invocation in code, and 4) now that the go.mod
has a go directive at 1.14+ (CL 547337), automatic vendoring¹ is on.

For golang/go#64066.

¹ https://go.dev/doc/go1.14#vendor, https://go.dev/ref/mod#vendoring

Change-Id: If8f3ea85d560b2796a2ccdb4ae7dbc38f0760982
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/548115
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
2023-12-07 18:57:23 +00:00
Lasse Folger
d77bd4b022 release.bash: replace aliased git commands with non-aliased equivalents
Change-Id: Ie9a9fd1d4cefc28c8fb5429a975ac50436e29d70
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/394454
Reviewed-by: Chressie Himpel <chressie@google.com>
Reviewed-by: Florian Zenker <floriank@google.com>
2022-03-22 12:18:24 +00:00
Joe Tsai
dc57387746 release.bash: make work on Linux
Most releases of Linux use the GNU version of sed, while
most releases of macOS use the BSD version of sed.

For the -i flag, BSD always expects an argument,
while GNU expects an optional argument in a different format.

See https://www.freebsd.org/cgi/man.cgi?query=sed&sektion=&n=1
See https://www.gnu.org/software/sed/manual/html_node/Command_002dLine-Options.html#Command_002dLine-Options

Change-Id: Id0f472553c8583d427524f59b36c376d6bc28786
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/330869
Trust: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Damien Neil <dneil@google.com>
2021-06-25 08:33:33 +00:00
Damien Neil
426f20bc78 release.bash: make work on macOS
macOS's sed always considers the parameter following -i to be an
extension, so "-i -e" means "edit in place saving backup with a -e
extension".

macOS's sed does not support \s in regexps.

Change-Id: Ic9b57baa5fc88fff2251c640d11ed417a7257f13
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/322449
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2021-05-25 06:48:41 +00:00
Joe Tsai
4ab2bc9bb7 internal/version: move version information to internal package
Change-Id: I947876de5d290cf783d9ba798871725e77e16517
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/223277
Reviewed-by: Damien Neil <dneil@google.com>
2020-03-13 19:57:50 +00:00
Joe Tsai
4f3de44102 release.bash: add support for building release binaries
Updates golang/protobuf#738

Change-Id: I6dd85ff0129bfcfb67b12b06549c568eebfd68e3
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/189342
Reviewed-by: Damien Neil <dneil@google.com>
2019-08-21 01:15:26 +00:00
Joe Tsai
769cbd0041 release.bash: add script for making new releases
Change-Id: Ic5754837d1bd93c8b23fc489c6682d1b20dc1c26
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/189922
Reviewed-by: Damien Neil <dneil@google.com>
2019-08-21 01:00:05 +00:00