-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release rules & schedule for cuprated
#374
Labels
A-binaries
Related to binaries.
Comments
Generates alpha release info. START_MONTH=3 START_DAY=12 RELEASE_CYCLE_WEEK_LENGTH=4 KILLSWITCH_GRACE_PERIOD=7 cargo run //! ```Cargo.toml
//! [package]
//! name = "generate_cuprate_release_info"
//! version = "0.1.0"
//! edition = "2021"
//!
//! [dependencies]
//! chrono = "*"
//! ``````
use std::env::var;
use chrono::{Datelike, Days, TimeZone, Utc};
fn main() {
let mut date = Utc
.with_ymd_and_hms(
2025,
var("START_MONTH").unwrap().parse().unwrap(),
var("START_DAY").unwrap().parse().unwrap(),
0,
0,
0,
)
.unwrap();
let release_cycle_week_length = Days::new(
7 * var("RELEASE_CYCLE_WEEK_LENGTH")
.unwrap()
.parse::<u64>()
.unwrap(),
);
let killswitch_grace_period = Days::new(
var("KILLSWITCH_GRACE_PERIOD")
.unwrap()
.parse::<u64>()
.unwrap(),
);
for txt in [
"| `cuprated` version | Release codename | Release date | Killswitch date | Killswitch timestamp |",
"|--------------------|------------------|--------------|-----------------|----------------------|",
] {
println!("{txt}");
}
for i in 1.. {
if date.year() != 2025 {
break;
}
let ks_date = date + release_cycle_week_length + killswitch_grace_period;
let ks_timestamp = ks_date.timestamp();
println!(
"| 0.0.{i:<14} | Molybdenite | {} | {} | {ks_timestamp}",
date.format("%F"),
ks_date.format("%F")
);
date = date + release_cycle_week_length;
}
for txt in [
"| 0.1.0 | ? | ????-??-?? | ? | ?",
"| 1.0.0 | ? | ????-??-?? | N/A | N/A",
] {
println!("{txt}");
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue tracks rules and information related to
cuprated
alpha releases.These rules may be changed at any time.
Versioning
The rules for
cuprated
's versioning scheme.cuprated
versions follow semantic versioning.0.0.x
represents alpha builds0.x.0
represents beta buildsx.0.0
represents stable builds1.0.0
releaseCodenames
The rules for
cuprated
release codenames.A release codename is:
0.0.x -> 0.x.0
,0.x.0 -> x.0.0
,x.0.0 -> y.0.0
)Killswitch
The rules for the killswitch mechanism in
cuprated
releases.The killswitch must:
Schedule parameters
The currently followed parameters for
cuprated
's release schedule.Rule caveats
The exceptions to the above rules:
Schedule
cuprated
's release schedule for the next year under the above rules.cuprated
versionThe text was updated successfully, but these errors were encountered: