diff --git a/crates/forge-core/src/store/ci.rs b/crates/forge-core/src/store/ci.rs index e6d0c24..1460536 100644 --- a/crates/forge-core/src/store/ci.rs +++ b/crates/forge-core/src/store/ci.rs @@ -249,7 +249,7 @@ async fn load_job(conn: &Connection, id: &str) -> Result> { async fn jobs_of_run(conn: &Connection, run_id: &str) -> Result> { fetch_all( conn, - &format!("SELECT {JOB_COLS} FROM ci_jobs WHERE run_id = ?1 ORDER BY name"), + &format!("SELECT {JOB_COLS} FROM ci_jobs WHERE run_id = ?1 ORDER BY rowid"), (run_id.to_string(),), map_job, ) @@ -1550,7 +1550,7 @@ impl Store { Ok((runs, total)) } - /// The jobs of a run, by name. + /// The jobs of a run, in insertion order: dependency order, matrix combinations grouped. pub async fn jobs_for_run(&self, run_id: &str) -> Result> { let conn = self.read_conn().await; jobs_of_run(&conn, run_id).await