MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / AllUpgradeCombos

Function AllUpgradeCombos

dgraphtest/config.go:26–87  ·  view source on GitHub ↗

AllUpgradeCombos returns all possible upgrade combinations for which tests need to run

(v20 bool)

Source from the content-addressed store, hash-verified

24
25// AllUpgradeCombos returns all possible upgrade combinations for which tests need to run
26func AllUpgradeCombos(v20 bool) []UpgradeCombo {
27 fixedVersionCombos := []UpgradeCombo{
28 // OPEN SOURCE RELEASES, 4fc9cfd => v23.1.0
29 // v23.1.0 has one error modified which was fixed in commit 4fc9cfd after v23.1.0
30 {"v21.03.0-92-g0c9f60156", "4fc9cfd", BackupRestore},
31 {"v21.03.0-98-g19f71a78a-slash", "4fc9cfd", BackupRestore},
32 {"v21.03.0-99-g4a03c144a-slash", "4fc9cfd", BackupRestore},
33 {"v21.03.1", "4fc9cfd", BackupRestore},
34 {"v21.03.2", "4fc9cfd", BackupRestore},
35 {"v22.0.0", "4fc9cfd", BackupRestore},
36 {"v22.0.1", "4fc9cfd", BackupRestore},
37 {"v22.0.2", "4fc9cfd", BackupRestore},
38
39 // CLOUD VERSIONS
40 {"e3d3e6290", "4fc9cfd", BackupRestore}, // v21.03.0-48-ge3d3e6290
41 {"8b9e92314", "4fc9cfd", BackupRestore}, // v21.03.0-63-g8b9e92314
42 {"dfa5daec1", "4fc9cfd", BackupRestore}, // v21.03.0-66-gdfa5daec1
43 {"88e4aa07c", "4fc9cfd", BackupRestore}, // v21.03.0-69-g88e4aa07c
44 {"d9df244fb", "4fc9cfd", BackupRestore}, // v21.03.0-73-gd9df244fb
45 {"ed09b8cc1", "4fc9cfd", BackupRestore}, // v21.03.0-76-ged09b8cc1
46 {"e4ad0b113", "4fc9cfd", BackupRestore}, // v21.03.0-78-ge4ad0b113
47 {"83c9cbedc", "4fc9cfd", BackupRestore}, // v21.03.0-82-g83c9cbedc
48 {"c5862ae2a", "4fc9cfd", BackupRestore}, // v21.03.0-84-gc5862ae2a
49
50 // In place upgrade for cloud versions
51 {"e3d3e6290", "4fc9cfd", InPlace}, // v21.03.0-48-ge3d3e6290
52 {"8b9e92314", "4fc9cfd", InPlace}, // v21.03.0-63-g8b9e92314
53 {"dfa5daec1", "4fc9cfd", InPlace}, // v21.03.0-66-gdfa5daec1
54 {"88e4aa07c", "4fc9cfd", InPlace}, // v21.03.0-69-g88e4aa07c
55 {"d9df244fb", "4fc9cfd", InPlace}, // v21.03.0-73-gd9df244fb
56 {"ed09b8cc1", "4fc9cfd", InPlace}, // v21.03.0-76-ged09b8cc1
57 {"e4ad0b113", "4fc9cfd", InPlace}, // v21.03.0-78-ge4ad0b113
58 {"83c9cbedc", "4fc9cfd", InPlace}, // v21.03.0-82-g83c9cbedc
59 {"c5862ae2a", "4fc9cfd", InPlace}, // v21.03.0-84-gc5862ae2a
60 {"0c9f60156", "4fc9cfd", InPlace}, // v21.03.0-92-g0c9f60156
61 }
62
63 // In mainCombos list, we keep latest version to current HEAD as well as
64 // older versions of dgraph to ensure that a change does not cause failures.
65 mainCombos := []UpgradeCombo{
66 {"v24.0.0", localVersion, BackupRestore},
67 {"v24.0.0", localVersion, InPlace},
68 }
69
70 if v20 {
71 fixedVersionCombos = append(fixedVersionCombos, []UpgradeCombo{
72 {"v20.11.2-rc1-25-g4400610b2", "4fc9cfd", BackupRestore},
73 {"v20.11.2-rc1-23-gaf5030a5", "4fc9cfd", BackupRestore},
74 {"v20.11.0-11-gb36b4862", "4fc9cfd", BackupRestore},
75 }...)
76
77 mainCombos = append(mainCombos, []UpgradeCombo{
78 {"v20.11.2-rc1-16-g4d041a3a", localVersion, BackupRestore},
79 }...)
80 }
81
82 if os.Getenv("DGRAPH_UPGRADE_MAIN_ONLY") == "false" {
83 return fixedVersionCombos

Callers 5

TestPluginTestSuiteFunction · 0.92
TestMultitenancySuiteFunction · 0.92
TestSystestSuiteFunction · 0.92
TestMainFunction · 0.92
TestACLSuiteFunction · 0.92

Calls

no outgoing calls

Tested by 5

TestPluginTestSuiteFunction · 0.74
TestMultitenancySuiteFunction · 0.74
TestSystestSuiteFunction · 0.74
TestMainFunction · 0.74
TestACLSuiteFunction · 0.74