Skip to content

Commit 1e493f7

Browse files
committed
Switch to Heliosv3
1 parent 6d7c6e7 commit 1e493f7

File tree

8 files changed

+26
-9
lines changed

8 files changed

+26
-9
lines changed

.github/buildomat/jobs/a4x2-prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "a4x2-prepare"
44
#: variety = "basic"
5-
#: target = "helios-2.0"
5+
#: target = "helios-3.0"
66
#: rust_toolchain = true
77
#: output_rules = [
88
#: "=/out/cargo-bay-ce.tgz",

.github/buildomat/jobs/build-and-test-helios.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "build-and-test (helios)"
44
#: variety = "basic"
5-
#: target = "helios-2.0"
5+
#: target = "helios-3.0"
66
#: rust_toolchain = true
77
#: output_rules = [
88
#: "%/work/*",

.github/buildomat/jobs/check-features.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "check-features (helios)"
44
#: variety = "basic"
5-
#: target = "helios-2.0"
5+
#: target = "helios-3.0"
66
#: rust_toolchain = true
77
#: output_rules = [
88
#: "/out/*",

.github/buildomat/jobs/clippy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "clippy (helios)"
44
#: variety = "basic"
5-
#: target = "helios-2.0"
5+
#: target = "helios-3.0"
66
#: rust_toolchain = true
77
#: output_rules = []
88

.github/buildomat/jobs/omicron-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "omicron-common (helios)"
44
#: variety = "basic"
5-
#: target = "helios-2.0"
5+
#: target = "helios-3.0"
66
#: rust_toolchain = true
77
#: output_rules = []
88

.github/buildomat/jobs/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "helios / package"
44
#: variety = "basic"
5-
#: target = "helios-2.0"
5+
#: target = "helios-3.0"
66
#: rust_toolchain = true
77
#: output_rules = [
88
#: "=/work/package.tar.gz",

.github/buildomat/jobs/tuf-repo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "helios / build TUF repo"
44
#: variety = "basic"
5-
#: target = "helios-2.0"
5+
#: target = "helios-3.0"
66
#: rust_toolchain = true
77
#: output_rules = [
88
#: "=/work/manifest.toml",

dev-tools/releng/src/helios.rs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use fs_err::tokio as fs;
1010
use fs_err::tokio::File;
1111
use serde::Deserialize;
1212
use slog::Logger;
13+
use std::path::Path;
1314
use tokio::io::AsyncWriteExt;
1415
use tokio::io::BufWriter;
1516

@@ -23,7 +24,7 @@ const MANIFEST_PATH: &str = "incorporation.p5m";
2324
const REPO_PATH: &str = "incorporation";
2425
pub const ARCHIVE_PATH: &str = "incorporation.p5p";
2526

26-
pub const PUBLISHER: &str = "helios-dev";
27+
pub const PUBLISHER: &str = "helios";
2728

2829
pub(crate) enum Action {
2930
Generate { version: String },
@@ -119,9 +120,25 @@ async fn generate_incorporation_manifest(
119120
fmri: String,
120121
}
121122

123+
let stdout = Command::new("pkg")
124+
.args([
125+
"list",
126+
"-H",
127+
"-o",
128+
"branch",
129+
"-n",
130+
"-g",
131+
HELIOS_PKGREPO,
132+
"release/name",
133+
])
134+
.ensure_stdout(&logger)
135+
.await?;
136+
137+
let branch = stdout.trim();
138+
122139
let mut manifest = BufWriter::new(File::create(path).await?);
123140
let preamble = format!(
124-
r#"set name=pkg.fmri value=pkg://{PUBLISHER}/{INCORP_NAME}@{version},5.11
141+
r#"set name=pkg.fmri value=pkg://{PUBLISHER}/{INCORP_NAME}@{version}-{branch},5.11
125142
set name=pkg.summary value="Incorporation to constrain software delivered in Omicron Release V{version} images"
126143
set name=info.classification value="org.opensolaris.category.2008:Meta Packages/Incorporations"
127144
set name=variant.opensolaris.zone value=global value=nonglobal

0 commit comments

Comments
 (0)