the builds list keeps the swarm's deploy builds too
build_meta, the build of each agent from internal/meta before a deploy, now writes its result into the same list as the config PR builds: the agent, the internal/meta commit, how it ended and what nix printed. The builds card titles them by agent and shows them with the PR builds.
This commit is contained in:
parent
221c3f35a1
commit
b74011bb54
1 changed files with 212 additions and 33 deletions
|
|
@ -51,10 +51,17 @@ pub(crate) struct BuildRecord {
|
|||
/// `<agent>-<first 12 of head_sha>-<started_unix>`, the last segment
|
||||
/// of the link on the build's status.
|
||||
pub(crate) id: String,
|
||||
/// `agent-configs/<agent>`.
|
||||
/// `agent-configs/<agent>` for a config PR's build, `internal/meta` for a
|
||||
/// deploy's (`meta_build`).
|
||||
pub(crate) repo: String,
|
||||
pub(crate) pr: u64,
|
||||
/// The commit built.
|
||||
/// The config PR a build checks. A `meta_build` build has none.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub(crate) pr: Option<u64>,
|
||||
/// The agent a `meta_build` build built; a PR build's is in `repo`.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub(crate) agent: Option<String>,
|
||||
/// The commit built: the PR's head, or `internal/meta`'s for a deploy's
|
||||
/// build.
|
||||
pub(crate) head_sha: String,
|
||||
/// Unix seconds: when the node sent the build, and when its answer came.
|
||||
pub(crate) started_unix: i64,
|
||||
|
|
@ -362,7 +369,8 @@ pub(crate) mod tests {
|
|||
BuildRecord {
|
||||
id: id.to_owned(),
|
||||
repo: "agent-configs/atlas".to_owned(),
|
||||
pr: 3,
|
||||
pr: Some(3),
|
||||
agent: None,
|
||||
head_sha: "abc".to_owned(),
|
||||
started_unix: 1_000,
|
||||
finished_unix: 1_060,
|
||||
|
|
|
|||
Loading…
Reference in a new issue