A run's jobs are listed in the order they run, not by name
Browse files at this commitb67eb9a8ce5f458dddf4a454a79b4c3328c51281Parent: c7331fd- fix
- a run's jobs are listed in the order they run, not by name
1 changed file +2 -2
crates/forge-core/src/store/ci.rsmodified+2 -2
| @@ -249,7 +249,7 @@ async fn load_job(conn: &Connection, id: &str) -> Result<Option<CiJob>> { | |||
| 249 | async fn jobs_of_run(conn: &Connection, run_id: &str) -> Result<Vec<CiJob>> { | 249 | async fn jobs_of_run(conn: &Connection, run_id: &str) -> Result<Vec<CiJob>> { |
| 250 | fetch_all( | 250 | fetch_all( |
| 251 | conn, | 251 | conn, |
| 252 | - &format!("SELECT {JOB_COLS} FROM ci_jobs WHERE run_id = ?1 ORDER BY name"), | 252 | + &format!("SELECT {JOB_COLS} FROM ci_jobs WHERE run_id = ?1 ORDER BY rowid"), |
| 253 | (run_id.to_string(),), | 253 | (run_id.to_string(),), |
| 254 | map_job, | 254 | map_job, |
| 255 | ) | 255 | ) |
| @@ -1550,7 +1550,7 @@ impl Store { | |||
| 1550 | Ok((runs, total)) | 1550 | Ok((runs, total)) |
| 1551 | } | 1551 | } |
| 1552 | 1552 | ||
| 1553 | - /// The jobs of a run, by name. | 1553 | + /// The jobs of a run, in insertion order: dependency order, matrix combinations grouped. |
| 1554 | pub async fn jobs_for_run(&self, run_id: &str) -> Result<Vec<CiJob>> { | 1554 | pub async fn jobs_for_run(&self, run_id: &str) -> Result<Vec<CiJob>> { |
| 1555 | let conn = self.read_conn().await; | 1555 | let conn = self.read_conn().await; |
| 1556 | jobs_of_run(&conn, run_id).await | 1556 | jobs_of_run(&conn, run_id).await |