common,evaluator: add PR fields to evaluation; add jobset ordering test
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I305c988aceb8c72c65b740cb323c0ef06a6a6964
This commit is contained in:
parent
0c11680a56
commit
794e4a8e61
2 changed files with 7 additions and 3 deletions
|
|
@ -423,7 +423,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_suggested_jobset_ordering() {
|
fn test_suggested_jobset_ordering() {
|
||||||
let mut jobsets = vec![
|
let mut jobsets = [
|
||||||
SuggestedJobset {
|
SuggestedJobset {
|
||||||
name: "packages".to_string(),
|
name: "packages".to_string(),
|
||||||
nix_expression: "packages".to_string(),
|
nix_expression: "packages".to_string(),
|
||||||
|
|
|
||||||
|
|
@ -172,8 +172,12 @@ async fn evaluate_jobset(
|
||||||
|
|
||||||
// Create evaluation record
|
// Create evaluation record
|
||||||
let eval = repo::evaluations::create(pool, CreateEvaluation {
|
let eval = repo::evaluations::create(pool, CreateEvaluation {
|
||||||
jobset_id: jobset.id,
|
jobset_id: jobset.id,
|
||||||
commit_hash: commit_hash.clone(),
|
commit_hash: commit_hash.clone(),
|
||||||
|
pr_number: None,
|
||||||
|
pr_head_branch: None,
|
||||||
|
pr_base_branch: None,
|
||||||
|
pr_action: None,
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue