Skip to content

Commit

Permalink
mass-rebuilder: It's always nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
dasJ committed Dec 29, 2024
1 parent 4c2ad4f commit 5ed4d64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 65 deletions.
6 changes: 0 additions & 6 deletions ofborg/src/message/evaluationjob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ pub struct EvaluationJob {
pub pr: Pr,
}

impl EvaluationJob {
pub fn is_nixpkgs(&self) -> bool {
self.repo.name == "nixpkgs"
}
}

pub struct Actions {}

impl Actions {
Expand Down
46 changes: 0 additions & 46 deletions ofborg/src/tasks/eval/generic.rs

This file was deleted.

22 changes: 9 additions & 13 deletions ofborg/src/tasks/evaluate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,19 +291,15 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> {
}
};

let mut evaluation_strategy: Box<dyn eval::EvaluationStrategy> = if job.is_nixpkgs() {
Box::new(eval::NixpkgsStrategy::new(
job,
&pull,
&issue,
&issue_ref,
&repo,
&self.gists,
self.nix.clone(),
))
} else {
Box::new(eval::GenericStrategy::new())
};
let mut evaluation_strategy = eval::NixpkgsStrategy::new(
job,
&pull,
&issue,
&issue_ref,
&repo,
&self.gists,
self.nix.clone(),
);

let prefix = get_prefix(repo.statuses(), &job.pr.head_sha)?;

Expand Down

0 comments on commit 5ed4d64

Please sign in to comment.