fixup queue to publish to
This commit is contained in:
parent
f6289be861
commit
aa562cf943
|
@ -68,7 +68,19 @@ impl worker::SimpleWorker for EvaluationFilterWorker {
|
||||||
_ => false,
|
_ => false,
|
||||||
};
|
};
|
||||||
|
|
||||||
if interesting {
|
if !interesting {
|
||||||
|
info!("Not interesting: {}#{} to be interesting because of {:?}",
|
||||||
|
job.repository.full_name, job.number, job.action
|
||||||
|
);
|
||||||
|
|
||||||
|
return vec![
|
||||||
|
worker::Action::Ack
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
info!("Found {}#{} to be interesting because of {:?}",
|
||||||
|
job.repository.full_name, job.number, job.action
|
||||||
|
);
|
||||||
let repo_msg = Repo {
|
let repo_msg = Repo {
|
||||||
clone_url: job.repository.clone_url.clone(),
|
clone_url: job.repository.clone_url.clone(),
|
||||||
full_name: job.repository.full_name.clone(),
|
full_name: job.repository.full_name.clone(),
|
||||||
|
@ -89,18 +101,13 @@ impl worker::SimpleWorker for EvaluationFilterWorker {
|
||||||
|
|
||||||
return vec![
|
return vec![
|
||||||
worker::publish_serde_action(
|
worker::publish_serde_action(
|
||||||
Some("mass-rebuild-check-jobs".to_owned()),
|
|
||||||
None,
|
None,
|
||||||
|
Some("mass-rebuild-check-jobs".to_owned()),
|
||||||
&msg
|
&msg
|
||||||
),
|
),
|
||||||
worker::Action::Ack
|
worker::Action::Ack
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
return vec![
|
|
||||||
worker::Action::Ack
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
@ -126,8 +133,8 @@ mod tests {
|
||||||
worker.consumer(&job),
|
worker.consumer(&job),
|
||||||
vec![
|
vec![
|
||||||
worker::publish_serde_action(
|
worker::publish_serde_action(
|
||||||
Some("mass-rebuild-check-jobs".to_owned()),
|
|
||||||
None,
|
None,
|
||||||
|
Some("mass-rebuild-check-jobs".to_owned()),
|
||||||
&massrebuildjob::MassRebuildJob {
|
&massrebuildjob::MassRebuildJob {
|
||||||
repo: Repo {
|
repo: Repo {
|
||||||
clone_url: String::from("https://github.com/NixOS/nixpkgs.git"),
|
clone_url: String::from("https://github.com/NixOS/nixpkgs.git"),
|
||||||
|
|
Loading…
Reference in a new issue