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
|
|
@ -193,7 +193,8 @@ async fn record(
|
|||
job.rev.get(..12).unwrap_or(&job.rev)
|
||||
),
|
||||
repo: format!("{CONFIG_ORG}/{}", job.agent),
|
||||
pr: job.pr,
|
||||
pr: Some(job.pr),
|
||||
agent: None,
|
||||
head_sha: job.rev.clone(),
|
||||
started_unix,
|
||||
finished_unix: unix_now(),
|
||||
|
|
@ -343,7 +344,7 @@ mod tests {
|
|||
panic!("one build recorded: {builds:?}")
|
||||
};
|
||||
assert_eq!(build.repo, "agent-configs/atlas");
|
||||
assert_eq!((build.pr, build.head_sha.as_str()), (3, "abc"));
|
||||
assert_eq!((build.pr, build.head_sha.as_str()), (Some(3), "abc"));
|
||||
assert_eq!(build.outcome, BuildOutcome::Failed);
|
||||
assert_eq!(build.error_tail.as_deref(), Some(tail));
|
||||
assert_eq!((&build.out_path, &build.detail), (&None, &None));
|
||||
|
|
|
|||
Loading…
Reference in a new issue