Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 5923146

Browse files
General-BeckTriplEights3krit
committed
Switching to stable-track (#11377)
* sccache "stop server" - > "show stats" * remove testing and beta from update, cli, etc. * Beta->Nigthly updater * Beta->Nightly * ->Nightly and fix * updater ->Stable * Testing->Nightly * Update scripts/gitlab/test-linux.sh Co-Authored-By: Denis Pisarev <[email protected]> * sccache "stop server" - > "show stats" * remove testing and beta from update, cli, etc. * Beta->Nigthly updater * Beta->Nightly * ->Nightly and fix * updater ->Stable * Testing->Nightly * Update scripts/gitlab/test-linux.sh Co-Authored-By: Denis Pisarev <[email protected]> * Update CHANGELOGs and version * temporarily allow darwin and windows to be built on any branch * fix check-benches job * Revert "temporarily allow darwin and windows to be built on any branch" This reverts commit 45c72f6. * fix check-benches job * Revert changing track from `nightly` to `stable` * fix test: rpc_parity_upgrade_ready * fix tests: rpc_parity_version_info, rpc_parity_releases_info Co-authored-by: Denis Pisarev <[email protected]> Co-authored-by: s3krit <[email protected]>
1 parent 9e28241 commit 5923146

File tree

14 files changed

+22
-83
lines changed

14 files changed

+22
-83
lines changed

.gitlab-ci.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ variables:
1919
.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
2020
only: &releaseable_branches
2121
- stable
22-
- beta
2322
- tags
2423
- schedules
2524

@@ -308,7 +307,7 @@ publish-release-awss3-nightly: &publish-release-awss3
308307
script:
309308
- echo "__________Push binaries to AWS S3____________"
310309
- case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
311-
(beta|stable|nightly)
310+
(stable|nightly)
312311
export BUCKET=releases.parity.io/ethereum;
313312
;;
314313
(*)

parity/cli/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ usage! {
296296

297297
ARG arg_release_track: (String) = "current", or |c: &Config| c.parity.as_ref()?.release_track.clone(),
298298
"--release-track=[TRACK]",
299-
"Set which release track we should use for updates. TRACK can be one of: stable - Stable releases; beta - Beta releases; nightly - Nightly releases (unstable); testing - Testing releases (do not use); current - Whatever track this executable was released on.",
299+
"Set which release track we should use for updates. TRACK can be one of: stable - Stable releases; nightly - Nightly releases (unstable); testing - Testing releases (do not use); current - Whatever track this executable was released on.",
300300

301301
ARG arg_chain: (String) = "foundation", or |c: &Config| c.parity.as_ref()?.chain.clone(),
302302
"--chain=[CHAIN]",

parity/configuration.rs

+3-27
Original file line numberDiff line numberDiff line change
@@ -981,9 +981,7 @@ impl Configuration {
981981
},
982982
track: match self.args.arg_release_track.as_ref() {
983983
"stable" => ReleaseTrack::Stable,
984-
"beta" => ReleaseTrack::Beta,
985984
"nightly" => ReleaseTrack::Nightly,
986-
"testing" => ReleaseTrack::Testing,
987985
"current" => ReleaseTrack::Unknown,
988986
_ => return Err("Invalid value for `--releases-track`. See `--help` for more information.".into()),
989987
},
@@ -1512,23 +1510,11 @@ mod tests {
15121510
#[test]
15131511
fn should_parse_updater_options() {
15141512
// when
1515-
let conf0 = parse(&["parity", "--release-track=testing"]);
1516-
let conf1 = parse(&["parity", "--auto-update", "all", "--no-consensus", "--auto-update-delay", "300"]);
1517-
let conf2 = parse(&["parity", "--no-download", "--auto-update=all", "--release-track=beta", "--auto-update-delay=300", "--auto-update-check-frequency=100"]);
1518-
let conf3 = parse(&["parity", "--auto-update=xxx"]);
1513+
let conf0 = parse(&["parity", "--auto-update", "all", "--no-consensus", "--auto-update-delay", "300"]);
1514+
let conf1 = parse(&["parity", "--auto-update=xxx"]);
15191515

15201516
// then
15211517
assert_eq!(conf0.update_policy().unwrap(), UpdatePolicy {
1522-
enable_downloading: true,
1523-
require_consensus: true,
1524-
filter: UpdateFilter::Critical,
1525-
track: ReleaseTrack::Testing,
1526-
path: default_hypervisor_path(),
1527-
max_size: 128 * 1024 * 1024,
1528-
max_delay: 100,
1529-
frequency: 20,
1530-
});
1531-
assert_eq!(conf1.update_policy().unwrap(), UpdatePolicy {
15321518
enable_downloading: true,
15331519
require_consensus: false,
15341520
filter: UpdateFilter::All,
@@ -1538,17 +1524,7 @@ mod tests {
15381524
max_delay: 300,
15391525
frequency: 20,
15401526
});
1541-
assert_eq!(conf2.update_policy().unwrap(), UpdatePolicy {
1542-
enable_downloading: false,
1543-
require_consensus: true,
1544-
filter: UpdateFilter::All,
1545-
track: ReleaseTrack::Beta,
1546-
path: default_hypervisor_path(),
1547-
max_size: 128 * 1024 * 1024,
1548-
max_delay: 300,
1549-
frequency: 100,
1550-
});
1551-
assert!(conf3.update_policy().is_err());
1527+
assert!(conf1.update_policy().is_err());
15521528
}
15531529

15541530
#[test]

rpc/src/v1/tests/helpers/update_service.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl UpdateService for TestUpdater {
7272

7373
fn version_info(&self) -> VersionInfo {
7474
VersionInfo {
75-
track: ReleaseTrack::Beta,
75+
track: ReleaseTrack::Stable,
7676
version: Version{major: 1, minor: 5, patch: 0, build: vec![], pre: vec![]},
7777
hash: H160::from_low_u64_be(150),
7878
}
@@ -84,7 +84,7 @@ impl UpdateService for TestUpdater {
8484
this_fork: Some(15000),
8585
track: ReleaseInfo {
8686
version: VersionInfo {
87-
track: ReleaseTrack::Beta,
87+
track: ReleaseTrack::Stable,
8888
version: Version{major: 1, minor: 5, patch: 1, build: vec![], pre: vec![]},
8989
hash: H160::from_low_u64_be(151),
9090
},

rpc/src/v1/tests/mocked/parity.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn rpc_parity_version_info() {
130130
let io = deps.default_client();
131131

132132
let request = r#"{"jsonrpc": "2.0", "method": "parity_versionInfo", "params": [], "id": 1}"#;
133-
let response = r#"{"jsonrpc":"2.0","result":{"hash":"0x0000000000000000000000000000000000000096","track":"beta","version":{"major":1,"minor":5,"patch":0}},"id":1}"#;
133+
let response = r#"{"jsonrpc":"2.0","result":{"hash":"0x0000000000000000000000000000000000000096","track":"stable","version":{"major":1,"minor":5,"patch":0}},"id":1}"#;
134134
assert_eq!(io.handle_request_sync(request), Some(response.to_owned()));
135135
}
136136

@@ -140,7 +140,7 @@ fn rpc_parity_releases_info() {
140140
let io = deps.default_client();
141141

142142
let request = r#"{"jsonrpc": "2.0", "method": "parity_releasesInfo", "params": [], "id": 1}"#;
143-
let response = r#"{"jsonrpc":"2.0","result":{"fork":15100,"minor":null,"this_fork":15000,"track":{"binary":"0x00000000000000000000000000000000000000000000000000000000000005e6","fork":15100,"is_critical":true,"version":{"hash":"0x0000000000000000000000000000000000000097","track":"beta","version":{"major":1,"minor":5,"patch":1}}}},"id":1}"#;
143+
let response = r#"{"jsonrpc":"2.0","result":{"fork":15100,"minor":null,"this_fork":15000,"track":{"binary":"0x00000000000000000000000000000000000000000000000000000000000005e6","fork":15100,"is_critical":true,"version":{"hash":"0x0000000000000000000000000000000000000097","track":"stable","version":{"major":1,"minor":5,"patch":1}}}},"id":1}"#;
144144
assert_eq!(io.handle_request_sync(request), Some(response.to_owned()));
145145
}
146146

rpc/src/v1/tests/mocked/parity_set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn rpc_parity_upgrade_ready() {
9191
io.extend_with(parity_set_client(&client, &miner, &updater, &network).to_delegate());
9292

9393
let request = r#"{"jsonrpc": "2.0", "method": "parity_upgradeReady", "params": [], "id": 1}"#;
94-
let response = r#"{"jsonrpc":"2.0","result":{"binary":"0x00000000000000000000000000000000000000000000000000000000000005e6","fork":15100,"is_critical":true,"version":{"hash":"0x0000000000000000000000000000000000000097","track":"beta","version":{"major":1,"minor":5,"patch":1}}},"id":1}"#;
94+
let response = r#"{"jsonrpc":"2.0","result":{"binary":"0x00000000000000000000000000000000000000000000000000000000000005e6","fork":15100,"is_critical":true,"version":{"hash":"0x0000000000000000000000000000000000000097","track":"stable","version":{"major":1,"minor":5,"patch":1}}},"id":1}"#;
9595
assert_eq!(io.handle_request_sync(request), Some(response.to_owned()));
9696

9797
updater.set_updated(true);

rpc/src/v1/types/consensus_status.rs

-4
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ impl Into<ConsensusCapability> for CapState {
4949
pub enum ReleaseTrack {
5050
/// Stable track.
5151
Stable,
52-
/// Beta track.
53-
Beta,
5452
/// Nightly track.
5553
Nightly,
5654
/// Testing track.
@@ -64,9 +62,7 @@ impl Into<ReleaseTrack> for updater::ReleaseTrack {
6462
fn into(self) -> ReleaseTrack {
6563
match self {
6664
updater::ReleaseTrack::Stable => ReleaseTrack::Stable,
67-
updater::ReleaseTrack::Beta => ReleaseTrack::Beta,
6865
updater::ReleaseTrack::Nightly => ReleaseTrack::Nightly,
69-
updater::ReleaseTrack::Testing => ReleaseTrack::Testing,
7066
updater::ReleaseTrack::Unknown => ReleaseTrack::Unknown,
7167
}
7268
}

scripts/docker/hub/publish-docker.sh

+2-14
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,6 @@ case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
2323
--tag "parity/parity:${SCHEDULE_TAG}" \
2424
--file tools/Dockerfile .;
2525
docker push "parity/parity:${SCHEDULE_TAG}";;
26-
"beta")
27-
echo "Docker TAGs - 'parity/parity:beta', 'parity/parity:latest', \
28-
'parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}'";
29-
docker build --no-cache \
30-
--build-arg VCS_REF="${CI_COMMIT_SHA}" \
31-
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')" \
32-
--tag "parity/parity:beta" \
33-
--tag "parity/parity:latest" \
34-
--tag "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}" \
35-
--file tools/Dockerfile .;
36-
docker push "parity/parity:beta";
37-
docker push "parity/parity:latest";
38-
docker push "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}";;
3926
"stable")
4027
echo "Docker TAGs - 'parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}', 'parity/parity:stable'";
4128
docker build --no-cache \
@@ -45,7 +32,8 @@ case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
4532
--tag "parity/parity:stable" \
4633
--file tools/Dockerfile .;
4734
docker push "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}";
48-
docker push "parity/parity:stable";;
35+
docker push "parity/parity:stable";
36+
docker push "parity/parity:latest";;
4937
v[0-9]*.[0-9]*)
5038
echo "Docker TAG - 'parity/parity:${VERSION}-${TRACK}'"
5139
docker build --no-cache \

scripts/gitlab/publish-snap.sh

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ SNAP_PACKAGE="parity_"$VERSION"_"$BUILD_ARCH".snap"
1111
# Choose snap release channel based on parity ethereum version track
1212
case ${TRACK} in
1313
nightly) export GRADE="devel" CHANNEL="edge";;
14-
beta) export GRADE="stable" CHANNEL="beta";;
1514
stable) export GRADE="stable" CHANNEL="stable";;
1615
*) echo "No release" && exit 0;;
1716
esac

scripts/gitlab/rust-changes.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "__________Checking if Rust files were changed__________"
77
git log --graph --oneline --decorate=short -n 10
88

99
case ${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}} in
10-
(beta|stable)
10+
(stable)
1111
export GIT_COMPARE=origin/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}~
1212
;;
1313
(master|nightly)

updater/src/types/release_track.rs

+4-22
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@ use std::fmt;
2424
pub enum ReleaseTrack {
2525
/// Stable track.
2626
Stable = 1,
27-
/// Beta track.
28-
Beta = 2,
2927
/// Nightly track.
30-
Nightly = 3,
31-
/// Testing track.
32-
Testing = 4,
28+
Nightly = 2,
3329
/// No known track, also "current executable's track" when it's not yet known.
3430
Unknown = 0,
3531
}
@@ -38,9 +34,7 @@ impl fmt::Display for ReleaseTrack {
3834
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3935
write!(f, "{}", match *self {
4036
ReleaseTrack::Stable => "stable",
41-
ReleaseTrack::Beta => "beta",
4237
ReleaseTrack::Nightly => "nightly",
43-
ReleaseTrack::Testing => "testing",
4438
ReleaseTrack::Unknown => "unknown",
4539
})
4640
}
@@ -50,9 +44,7 @@ impl<'a> From<&'a str> for ReleaseTrack {
5044
fn from(s: &'a str) -> Self {
5145
match s {
5246
"stable" => ReleaseTrack::Stable,
53-
"beta" => ReleaseTrack::Beta,
5447
"nightly" => ReleaseTrack::Nightly,
55-
"testing" => ReleaseTrack::Testing,
5648
_ => ReleaseTrack::Unknown,
5749
}
5850
}
@@ -62,9 +54,7 @@ impl From<u8> for ReleaseTrack {
6254
fn from(i: u8) -> Self {
6355
match i {
6456
1 => ReleaseTrack::Stable,
65-
2 => ReleaseTrack::Beta,
66-
3 => ReleaseTrack::Nightly,
67-
4 => ReleaseTrack::Testing,
57+
2 => ReleaseTrack::Nightly,
6858
_ => ReleaseTrack::Unknown,
6959
}
7060
}
@@ -83,36 +73,28 @@ mod tests {
8373
#[test]
8474
fn test_release_track_from() {
8575
assert_eq!(ReleaseTrack::Stable, 1u8.into());
86-
assert_eq!(ReleaseTrack::Beta, 2u8.into());
87-
assert_eq!(ReleaseTrack::Nightly, 3u8.into());
88-
assert_eq!(ReleaseTrack::Testing, 4u8.into());
76+
assert_eq!(ReleaseTrack::Nightly, 2u8.into());
8977
assert_eq!(ReleaseTrack::Unknown, 0u8.into());
9078
}
9179

9280
#[test]
9381
fn test_release_track_into() {
9482
assert_eq!(1u8, u8::from(ReleaseTrack::Stable));
95-
assert_eq!(2u8, u8::from(ReleaseTrack::Beta));
96-
assert_eq!(3u8, u8::from(ReleaseTrack::Nightly));
97-
assert_eq!(4u8, u8::from(ReleaseTrack::Testing));
83+
assert_eq!(2u8, u8::from(ReleaseTrack::Nightly));
9884
assert_eq!(0u8, u8::from(ReleaseTrack::Unknown));
9985
}
10086

10187
#[test]
10288
fn test_release_track_from_str() {
10389
assert_eq!(ReleaseTrack::Stable, "stable".into());
104-
assert_eq!(ReleaseTrack::Beta, "beta".into());
10590
assert_eq!(ReleaseTrack::Nightly, "nightly".into());
106-
assert_eq!(ReleaseTrack::Testing, "testing".into());
10791
assert_eq!(ReleaseTrack::Unknown, "unknown".into());
10892
}
10993

11094
#[test]
11195
fn test_release_track_into_str() {
11296
assert_eq!("stable", ReleaseTrack::Stable.to_string());
113-
assert_eq!("beta", ReleaseTrack::Beta.to_string());
11497
assert_eq!("nightly", ReleaseTrack::Nightly.to_string());
115-
assert_eq!("testing", ReleaseTrack::Testing.to_string());
11698
assert_eq!("unknown", ReleaseTrack::Unknown.to_string());
11799
}
118100
}

updater/src/updater.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ impl OperationsClient for OperationsContractClient {
283283
// if the minor version has changed, let's check the minor version on a different track
284284
while in_minor.as_ref().expect(PROOF).version.version.minor != this.version.minor {
285285
let track = match in_minor.as_ref().expect(PROOF).version.track {
286-
ReleaseTrack::Beta => ReleaseTrack::Stable,
287-
ReleaseTrack::Nightly => ReleaseTrack::Beta,
286+
ReleaseTrack::Nightly => ReleaseTrack::Stable,
288287
_ => { in_minor = None; break; }
289288
};
290289

@@ -841,7 +840,7 @@ pub mod tests {
841840
let rng = FakeGenRange::new();
842841

843842
let this = VersionInfo {
844-
track: ReleaseTrack::Beta,
843+
track: ReleaseTrack::Nightly,
845844
version: Version::parse("1.0.0").unwrap(),
846845
hash: H160::zero(),
847846
};
@@ -881,7 +880,7 @@ pub mod tests {
881880

882881
fn new_upgrade(version: &str) -> (VersionInfo, ReleaseInfo, OperationsInfo) {
883882
let latest_version = VersionInfo {
884-
track: ReleaseTrack::Beta,
883+
track: ReleaseTrack::Nightly,
885884
version: Version::parse(version).unwrap(),
886885
hash: H160::from_low_u64_be(1),
887886
};

util/version/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["Parity Technologies <[email protected]>"]
88
build = "build.rs"
99

1010
[package.metadata]
11-
# This versions track. Should be changed to `stable` or `beta` when on respective branches.
11+
# This versions track. Should be changed to `stable` when on respective branches.
1212
# Used by auto-updater and for Parity version string.
1313
track = "stable"
1414

util/version/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mod generated {
3030

3131
#[cfg(feature = "final")]
3232
const THIS_TRACK: &'static str = generated::TRACK;
33-
// ^^^ should be reset in Cargo.toml to "stable" or "beta" according to the release branch.
33+
// ^^^ should be reset in Cargo.toml to "stable" according to the release branch.
3434

3535
#[cfg(not(feature = "final"))]
3636
const THIS_TRACK: &'static str = "unstable";

0 commit comments

Comments
 (0)