Skip to content

Commit

Permalink
chore(e2e): add solver pin to manifest (#3065)
Browse files Browse the repository at this point in the history
Allow pinning solver tag in manifest.

issue: none
  • Loading branch information
kevinhalliday authored Feb 13, 2025
1 parent 4cecbf8 commit 907a9b1
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion e2e/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,15 @@ func SetImageTags(def ComposeDef, manifest types.Manifest, omniImgTag string) Co
relayerTag = manifest.PinnedRelayerTag
}

solverTag := omniImgTag
if manifest.PinnedSolverTag != "" {
solverTag = manifest.PinnedSolverTag
}

def.AnvilProxyTag = anvilProxyTag
def.MonitorTag = monitorTag
def.RelayerTag = relayerTag
def.SolverTag = omniImgTag
def.SolverTag = solverTag

return def
}
Expand Down
1 change: 1 addition & 0 deletions e2e/docker/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func TestComposeTemplate(t *testing.T) {
Manifest: types.Manifest{
PinnedRelayerTag: "v2",
PinnedMonitorTag: "v3",
PinnedSolverTag: "v4",
},
Testnet: &e2e.Testnet{
Name: "test",
Expand Down
2 changes: 1 addition & 1 deletion e2e/docker/testdata/TestComposeTemplate_commit.golden
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ services:
labels:
e2e: true
container_name: solver
image: omniops/solver:7d1ae53
image: omniops/solver:v4
restart: unless-stopped
ports:
- 26660 # Prometheus and pprof
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ services:
labels:
e2e: true
container_name: solver
image: omniops/solver:main
image: omniops/solver:v4
restart: unless-stopped
ports:
- 26660 # Prometheus and pprof
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ services:
labels:
e2e: true
container_name: solver
image: omniops/solver:main
image: omniops/solver:v4
restart: unless-stopped
ports:
- 26660 # Prometheus and pprof
Expand Down
5 changes: 5 additions & 0 deletions e2e/types/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ type Manifest struct {
// This overrides the --omni-image-tag if non-empty.
PinnedRelayerTag string `toml:"pinned_relayer_tag"`

// PinnedSolverTag defines the pinned solver docker image tag.
// This allows source code defined versions for protected networks.
// This overrides the --omni-image-tag if non-empty.
PinnedSolverTag string `toml:"pinned_solver_tag"`

// EphemeralGenesis defines halovisor binary (network upgrade) to use from genesis onwards.
// The next network upgrade will be planned at height=1.
// This is only applicable to ephemeral networks.
Expand Down

0 comments on commit 907a9b1

Please sign in to comment.