From 893763060ec01d356ade9f6c011519a7f47a92e9 Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 18:13:13 +0000 Subject: docs: drop the citations the deleted docs left behind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The §n, I-n, M-n and m-n references survived in string literals the comment strip never touched: migration SQL comments, assertion messages, runtime error text, Cargo.toml, a CSS and template note, and one corpus manifest. They named sections of files that no longer exist, so the prose stays and the citation goes. --- tests/approve.rs | 2 +- tests/db.rs | 2 +- tests/detect.rs | 14 +++++++------- tests/dispatch.rs | 2 +- tests/http.rs | 2 +- tests/invariants.rs | 24 ++++++++++++------------ tests/pipeline.rs | 8 ++++---- tests/production_surface.rs | 2 +- tests/schema_ownership.rs | 4 ++-- tests/shims.rs | 4 ++-- tests/vcs.rs | 2 +- tests/world.rs | 2 +- 12 files changed, 34 insertions(+), 34 deletions(-) (limited to 'tests') diff --git a/tests/approve.rs b/tests/approve.rs index 15a205a..6e0ac1b 100644 --- a/tests/approve.rs +++ b/tests/approve.rs @@ -150,7 +150,7 @@ fn collapse_in_place_bumps_revision_without_a_new_row() { fx.bump(&[("pkgver", "2.0")]); aur_build::watch::detect::check_pkgbase(&env.cfg, &env.db, "plain-make").unwrap(); let after = candidates::pending_candidates(&env.db).unwrap(); - assert_eq!(after.len(), 1, "still exactly one open review (I7)"); + assert_eq!(after.len(), 1, "still exactly one open review"); assert_eq!(after[0].id, c.id, "same row, not a new one"); assert!(after[0].revision > first, "revision bumped: {}", after[0].revision); assert_eq!(after[0].pkgver, "2.0"); diff --git a/tests/db.rs b/tests/db.rs index ea8c4de..d91e5f5 100644 --- a/tests/db.rs +++ b/tests/db.rs @@ -40,7 +40,7 @@ fn migrations_apply_from_empty_and_are_idempotent() { .db .read(|c| Ok(c.pragma_query_value(None, "journal_mode", |r| r.get(0))?)) .unwrap(); - assert_eq!(journal.to_lowercase(), "wal", "WAL mode (§11a)"); + assert_eq!(journal.to_lowercase(), "wal", "WAL mode"); } #[test] diff --git a/tests/detect.rs b/tests/detect.rs index a7641b1..86d1315 100644 --- a/tests/detect.rs +++ b/tests/detect.rs @@ -37,7 +37,7 @@ fn first_detection_opens_a_first_introduction_with_no_base() { assert_eq!(rep.head, commit); let c = pending(&env, "foo").expect("candidate row"); assert_eq!(c.kind, candidate_kind::FIRST_INTRODUCTION); - assert_eq!(c.base_release_id, None, "I2 has no referent for a first introduction"); + assert_eq!(c.base_release_id, None, "nothing was accepted yet, so there is no diff base"); assert_eq!(c.version(), "1.0-1"); let snap = db::snapshot_by_id(&env.db, c.snapshot_id).unwrap().unwrap(); assert_eq!(snap.aur_commit, commit); @@ -82,7 +82,7 @@ fn recipe_hash_covers_shipped_patches() { let rep = check_pkgbase(&env.cfg, &env.db, "foo").unwrap(); assert!( matches!(rep.outcome, Outcome::Notice { ref kind, .. } if kind == notice_kind::RECIPE_DRIFT), - "recipe drift with an unchanged version is a notice, never a candidate (I11): {:?}", + "recipe drift with an unchanged version is a notice, never a candidate: {:?}", rep.outcome ); let pb = db::get_pkgbase(&env.db, "foo").unwrap().unwrap(); @@ -108,7 +108,7 @@ fn skip_sources_are_stream_hashed_into_the_cache() { let c = pending(&env, "foo").unwrap(); let digests = c.digests(); assert_eq!(digests.len(), 1); - assert_eq!(digests[0].digest, expected, "we hash SKIP sources ourselves (§5.3)"); + assert_eq!(digests[0].digest, expected, "we hash SKIP sources ourselves"); assert!(digests[0].skip_declared); assert_eq!(digests[0].kind, "static"); let cached = env.query_i64( @@ -141,7 +141,7 @@ fn declared_checksums_are_trusted_without_downloading() { assert_eq!( env.query_i64("SELECT count(*) FROM source_cache", &[]), Some(0), - "declared sums are enforced by makepkg, not re-downloaded (§5.3)" + "declared sums are enforced by makepkg, not re-downloaded" ); } @@ -166,9 +166,9 @@ fn i2_diff_base_is_the_last_accepted_version_however_many_detections_arrive() { check_pkgbase(&env.cfg, &env.db, "foo").unwrap(); } let c = pending(&env, "foo").unwrap(); - assert_eq!(c.id, c2.id, "collapsed in place: no new row (I7)"); + assert_eq!(c.id, c2.id, "collapsed in place: no new row"); assert_eq!(c.revision, 2, "revision counts the collapsed detections (v3, v4)"); - assert_eq!(c.base_release_id, Some(rel1), "base never moves: the diff is v1 -> v4 (I2)"); + assert_eq!(c.base_release_id, Some(rel1), "base never moves: the diff is v1 -> v4"); assert_eq!(c.version(), "4.0-1"); assert_eq!( env.query_i64("SELECT count(*) FROM candidate WHERE state='pending_review'", &[]), @@ -325,7 +325,7 @@ fn detection_is_idempotent_and_records_no_duplicate_candidate() { assert_eq!( env.query_i64("SELECT count(*) FROM candidate", &[]), Some(1), - "I3: two byte-identical inputs never produce two candidates" + "two byte-identical inputs never produce two candidates" ); assert_eq!(env.query_i64("SELECT count(*) FROM snapshot", &[]), Some(1)); } diff --git a/tests/dispatch.rs b/tests/dispatch.rs index f702151..84dd2b7 100644 --- a/tests/dispatch.rs +++ b/tests/dispatch.rs @@ -202,7 +202,7 @@ fn a_reaped_build_resumes_at_the_next_incomplete_step_with_no_duplicate_work() { assert_eq!( aur_build::shims::called_with(&env.cfg.hooks.shim_dir.clone().unwrap(), "makepkg", ""), builds_before, - "I5: resuming must not rebuild" + "resuming must not rebuild" ); let steps = builds::steps(&env.db, &id).unwrap(); let done = steps diff --git a/tests/http.rs b/tests/http.rs index 9bb199e..23c8ba5 100644 --- a/tests/http.rs +++ b/tests/http.rs @@ -132,7 +132,7 @@ fn a_stale_approval_is_a_409_that_renders_the_current_diff() { assert!(res.body.contains("refused"), "no explanation: {}", &res.body[..200.min(res.body.len())]); assert!( res.body.contains("while you were looking") || res.body.contains("no longer pending"), - "not a §7.1a explanation: {}", + "not a staleness explanation: {}", &res.body[..400.min(res.body.len())] ); assert!(res.body.contains("9.9"), "the re-render does not show the new version"); diff --git a/tests/invariants.rs b/tests/invariants.rs index d5b3758..4bfffc8 100644 --- a/tests/invariants.rs +++ b/tests/invariants.rs @@ -47,7 +47,7 @@ fn i1_every_index_entry_traces_back_to_an_approval() { WHERE p.state='in_index' AND (r.id IS NULL OR r.approval_id IS NULL)" ), 0, - "I1: an index entry exists that no human approved" + "an index entry exists that no human approved" ); assert_eq!( count(&env, "SELECT count(*) FROM approval WHERE decision='approved'"), @@ -73,7 +73,7 @@ fn i2_base_is_the_last_accepted_version_after_many_detections() { assert_eq!( open[0].base_release_id, Some(accepted.id), - "I2: the diff base must be the accepted release ({}), not the last seen commit", + "the diff base must be the accepted release ({}), not the last seen commit", accepted.id ); let panels = diff::panels(&env.cfg, &env.db, &open[0], Some(&accepted)).unwrap(); @@ -105,7 +105,7 @@ fn i4_kill_mid_publish_leaves_the_old_index_byte_identical() { assert_eq!( std::fs::read(&db_file).unwrap(), old_bytes, - "I4: the served index was torn by a crash" + "the served index was torn by a crash" ); assert_eq!( query_pairs(&env, "SELECT name, version FROM package WHERE state='in_index'"), @@ -144,13 +144,13 @@ fn i5_resume_after_a_crash_repeats_no_completed_step() { assert_eq!( aur_build::shims::called_with(&shim, "makepkg", ""), builds_before, - "I5: resuming re-ran the build step" + "resuming re-ran the build step" ); assert_eq!(count(&env, "SELECT count(*) FROM release WHERE pkgver='2.0'"), 1); assert_eq!( count(&env, "SELECT count(*) FROM artifact"), count(&env, "SELECT count(DISTINCT digest) FROM artifact"), - "I5: the resume recorded a duplicate artifact" + "the resume recorded a duplicate artifact" ); let bad = env .db @@ -186,7 +186,7 @@ fn i7_the_schema_refuses_a_second_open_review() { Ok(()) }) .err(); - assert!(err.is_some(), "I7: a second pending review was accepted"); + assert!(err.is_some(), "a second pending review was accepted"); assert_eq!(candidates::pending_candidates(&env.db).unwrap().len(), 1); } @@ -210,7 +210,7 @@ fn i8_index_equals_the_accepted_pointers() { "SELECT name, version FROM package WHERE state='in_index'", ); assert!(!pointers.is_empty()); - assert_eq!(index, pointers, "I8: index and accepted pointers diverge"); + assert_eq!(index, pointers, "index and accepted pointers diverge"); assert_eq!( count(&env, "SELECT count(*) FROM package WHERE state='in_index' AND version='1.0-1'"), @@ -238,7 +238,7 @@ fn i3_materialization_fails_closed_on_the_recipe_pin() { assert_eq!(step, "materialize"); assert!(error.contains("recipe_hash mismatch"), "{error}"); } - other => panic!("I3 requires a refusal, got {other:?}"), + other => panic!("a fail-closed refusal was required, got {other:?}"), } assert_eq!(count(&env, "SELECT count(*) FROM release"), 0); } @@ -253,7 +253,7 @@ fn i6_manual_rebuild_publishes_the_same_version_without_a_new_approval() { pipeline::run(&env.cfg, &env.db, &id).unwrap(), pipeline::Outcome::Succeeded { .. } )); - assert_eq!(count(&env, "SELECT count(*) FROM approval"), approvals, "I6: a rebuild demanded a new approval"); + assert_eq!(count(&env, "SELECT count(*) FROM approval"), approvals, "a rebuild demanded a new approval"); assert_eq!( query_pairs(&env, "SELECT name, version FROM package WHERE state='in_index'"), vec![("plain-make".to_string(), "1.0-1".to_string())] @@ -269,7 +269,7 @@ fn a_manual_rebuild_is_deterministic_and_its_own_build() { .expect("the published build"); let a = pipeline::enqueue_manual_rebuild(&env.cfg, &env.db, "plain-make").unwrap(); let b = pipeline::enqueue_manual_rebuild(&env.cfg, &env.db, "plain-make").unwrap(); - assert_eq!(a, b, "clicking rebuild twice is one build, not two (§8.2)"); + assert_eq!(a, b, "clicking rebuild twice is one build, not two"); assert_ne!(a, original, "a rebuild is a distinct build from the one that landed"); assert_eq!( count(&env, "SELECT count(*) FROM build"), @@ -329,7 +329,7 @@ fn i12_every_build_records_a_world_snapshot() { assert_eq!( count(&env, "SELECT count(*) FROM build WHERE world_snapshot_id IS NULL AND state='succeeded'"), 0, - "I12: a succeeded build has no recorded world" + "a succeeded build has no recorded world" ); let members = env .db @@ -344,7 +344,7 @@ fn i12_every_build_records_a_world_snapshot() { }) .unwrap(); assert!(members.contains("plain-make"), "our own package belongs in the world"); - assert!(!members.contains("glibc"), "foreign packages must be filtered out (§10.1)"); + assert!(!members.contains("glibc"), "foreign packages must be filtered out"); } fn index_db_names(path: &std::path::Path) -> Vec { diff --git a/tests/pipeline.rs b/tests/pipeline.rs index 12d95b0..d3816d6 100644 --- a/tests/pipeline.rs +++ b/tests/pipeline.rs @@ -166,7 +166,7 @@ fn i1_no_index_entry_without_an_approval() { )?) }) .unwrap(); - assert_eq!(orphans, 0, "I1: index entry with no approval behind it"); + assert_eq!(orphans, 0, "index entry with no approval behind it"); } #[test] @@ -291,7 +291,7 @@ fn i5_a_restarted_build_resumes_at_the_next_incomplete_step() { assert_eq!( aur_build::shims::called_with(&env.cfg.hooks.shim_dir.clone().unwrap(), "makepkg", ""), builds_after_crash, - "I5: resuming must not rebuild" + "resuming must not rebuild" ); assert_eq!(in_index(&env), vec![("plain-make".into(), "1.0.1-1".into())]); assert_eq!( @@ -373,7 +373,7 @@ fn re_enqueueing_the_same_intent_is_a_noop() { let c = approve_fixture(&env, "plain-make"); let a = pipeline::enqueue_for_candidate(&env.cfg, &env.db, &c).unwrap(); let b = pipeline::enqueue_for_candidate(&env.cfg, &env.db, &c).unwrap(); - assert_eq!(a, b, "build ids are deterministic (§8.2)"); + assert_eq!(a, b, "build ids are deterministic"); assert_eq!(env.query_i64("SELECT count(*) FROM build", &[]), Some(1)); } @@ -454,7 +454,7 @@ fn publish_refuses_without_an_approval_behind_it() { assert_eq!(step, "publish"); assert!(error.contains("no approval"), "{error}"); } - other => panic!("I1 requires a refusal, got {other:?}"), + other => panic!("a fail-closed refusal was required, got {other:?}"), } assert_eq!(in_index(&env).len(), 1); } diff --git a/tests/production_surface.rs b/tests/production_surface.rs index c5d7353..214fbc6 100644 --- a/tests/production_surface.rs +++ b/tests/production_surface.rs @@ -40,7 +40,7 @@ fn no_production_module_references_the_shim_harness() { } assert!( offenders.is_empty(), - "production code must not depend on the test harness (§6 M-4). Parse with `pkginfo`, not with the shim:\n{}", + "production code must not depend on the test harness. Parse with `pkginfo`, not with the shim:\n{}", offenders.join("\n") ); } diff --git a/tests/schema_ownership.rs b/tests/schema_ownership.rs index 944038c..34fb184 100644 --- a/tests/schema_ownership.rs +++ b/tests/schema_ownership.rs @@ -49,7 +49,7 @@ fn no_sql_statements_outside_the_db_module() { } assert!( offenders.is_empty(), - "SQL belongs to `db/` (§6 M-1). Move these into a typed query:\n{}", + "SQL belongs to `db/`. Move these into a typed query:\n{}", offenders.join("\n") ); } @@ -72,7 +72,7 @@ fn only_rust_formats_a_version() { .collect(); assert!( offenders.is_empty(), - "version formatting belongs to `pkgver::full_version`, not to SQL (m-18):\n{}", + "version formatting belongs to `pkgver::full_version`, not to SQL:\n{}", offenders.join("\n") ); } diff --git a/tests/shims.rs b/tests/shims.rs index 5cc0167..345d9f2 100644 --- a/tests/shims.rs +++ b/tests/shims.rs @@ -62,7 +62,7 @@ fn makechrootpkg_emits_pkginfo_buildinfo_and_sig() { assert!(pkginfo.contains("pkgarch = x86_64")); let buildinfo = aur_build::pkginfo::buildinfo_text(&bytes).unwrap(); assert!(buildinfo.contains("format = 2")); - assert!(buildinfo.contains("installed ="), "BUILDINFO carries the chroot world (§10.1)"); + assert!(buildinfo.contains("installed ="), "BUILDINFO carries the chroot world"); assert!(buildinfo.contains(" glibc 2.39-1 x86_64 -")); assert!(build.with_extension("pkg.tar.zst.sig").exists() || pkg.with_extension("pkg.tar.zst.sig").exists()); assert_eq!( @@ -315,7 +315,7 @@ fn fixtures_are_detected_through_the_watcher() { } assert!( aur_build::db::unapproved_index_entries(&env.db).unwrap().is_empty(), - "detection alone must never touch the index (I1)" + "detection alone must never touch the index" ); } } diff --git a/tests/vcs.rs b/tests/vcs.rs index e83643e..e41adfd 100644 --- a/tests/vcs.rs +++ b/tests/vcs.rs @@ -216,7 +216,7 @@ fn the_vcs_cache_is_reused_across_polls() { let (env, fx) = env_with_fixture("git-sourced"); detect_and_take(&env, "git-sourced"); let cache = env.cfg.vcs_cache_path(&format!("file://{}", fx.upstream.clone().unwrap().display())); - assert!(cache.exists(), "Stage B should leave a persistent clone behind (§5.2 clone reuse)"); + assert!(cache.exists(), "Stage B should leave a persistent clone behind"); let mtime_before = std::fs::metadata(&cache).ok().and_then(|m| m.modified().ok()); env.exec("UPDATE stage_b_cache SET resolved_at='2000-01-01T00:00:00Z'", &[]); fx.upstream_commit("upstream: again\n"); diff --git a/tests/world.rs b/tests/world.rs index 7de4f85..4d1e2bc 100644 --- a/tests/world.rs +++ b/tests/world.rs @@ -136,7 +136,7 @@ fn the_world_snapshot_is_intersected_with_our_index_at_ingest_time() { assert_eq!( env.query_i64("SELECT count(*) FROM build WHERE state='succeeded' AND world_snapshot_id IS NULL", &[]), Some(0), - "I12: a succeeded build must have a recorded world" + "a succeeded build must have a recorded world" ); } -- cgit v1.2.3