-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-418] automation e2e docker migration (#10432)
* Update the automation tests * Update CI to remove the k8s e2e runners * merge conflict fix * More fixes for CI * merge conflict fixes * merge conflict fixes * Add test comparison check and test list matrix builder * cleanup * bump ctf * more cleanup from review comments * add build test image back in when build-test-image label is added to PR
- Loading branch information
Showing
11 changed files
with
722 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Package actions enables common chainlink interactions | ||
package actions | ||
|
||
import ( | ||
"github.com/pkg/errors" | ||
|
||
"github.com/smartcontractkit/chainlink/integration-tests/docker/test_env" | ||
) | ||
|
||
// UpgradeChainlinkNodeVersions upgrades all Chainlink nodes to a new version, and then runs the test environment | ||
// to apply the upgrades | ||
func UpgradeChainlinkNodeVersionsLocal( | ||
newImage, newVersion string, | ||
nodes ...*test_env.ClNode, | ||
) error { | ||
if newImage == "" && newVersion == "" { | ||
return errors.New("unable to upgrade node version, found empty image and version, must provide either a new image or a new version") | ||
} | ||
for _, node := range nodes { | ||
if err := node.UpgradeVersion(node.NodeConfig, newImage, newVersion); err != nil { | ||
return err | ||
} | ||
} | ||
return nil | ||
} |
Oops, something went wrong.