Skip to content

Commit

Permalink
chore: use latest zlib version published (1.3.1) (#1477)
Browse files Browse the repository at this point in the history
## Checklist

- [x] I have read the [contribution
guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md)
- [x] reference issue for this pull request:
ooni/probe#2660
- [x] if you changed anything related to how experiments work and you
need to reflect these changes in the ooni/spec repository, please link
to the related ooni/spec pull request: N/A
- [x] if you changed code inside an experiment, make sure you bump its
version number: N/A

## Description

Bump to the latest zlib published version. Fixes `cmd/buildtool` tests
at
https://github.com/ooni/probe-cli/actions/runs/7644312040/job/20828352810

Closes ooni/probe#2660
  • Loading branch information
ainghazal committed Jan 29, 2024
1 parent 2d9d7ba commit 412be5e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions internal/cmd/buildtool/android_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,12 @@ func TestAndroidBuildCdepsZlib(t *testing.T) {
expect: []buildtooltest.ExecExpectations{{
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -493,12 +493,12 @@ func TestAndroidBuildCdepsZlib(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -546,12 +546,12 @@ func TestAndroidBuildCdepsZlib(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -599,12 +599,12 @@ func TestAndroidBuildCdepsZlib(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down
10 changes: 5 additions & 5 deletions internal/cmd/buildtool/cdepszlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ func cdepsZlibBuildMain(globalEnv *cBuildEnv, deps buildtoolmodel.Dependencies)
defer restore()

// See https://github.com/Homebrew/homebrew-core/blob/master/Formula/z/zlib.rb
cdepsMustFetch("https://zlib.net/zlib-1.3.tar.gz")
cdepsMustFetch("https://zlib.net/zlib-1.3.1.tar.gz")
deps.VerifySHA256( // must be mockable
"ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e",
"zlib-1.3.tar.gz",
"9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23",
"zlib-1.3.1.tar.gz",
)
must.Run(log.Log, "tar", "-xf", "zlib-1.3.tar.gz")
_ = deps.MustChdir("zlib-1.3") // must be mockable
must.Run(log.Log, "tar", "-xf", "zlib-1.3.1.tar.gz")
_ = deps.MustChdir("zlib-1.3.1") // must be mockable

mydir := filepath.Join(topdir, "CDEPS", "zlib")
for _, patch := range cdepsMustListPatches(mydir) {
Expand Down
12 changes: 6 additions & 6 deletions internal/cmd/buildtool/ios_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ func TestIOSBuildCdepsZlib(t *testing.T) {
expect: []buildtooltest.ExecExpectations{{
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -194,12 +194,12 @@ func TestIOSBuildCdepsZlib(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -248,12 +248,12 @@ func TestIOSBuildCdepsZlib(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/buildtool/linuxcdeps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ func TestLinuxCdepsBuildMain(t *testing.T) {
expect: []buildtooltest.ExecExpectations{{
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.tar.gz",
"curl", "-fsSLO", "https://zlib.net/zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "zlib-1.3.tar.gz",
"tar", "-xf", "zlib-1.3.1.tar.gz",
},
}, {
Env: []string{},
Expand Down

0 comments on commit 412be5e

Please sign in to comment.