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. --- Cargo.toml | 6 +++--- src/db/builds.rs | 2 +- src/db/migrations.rs | 28 ++++++++++++++-------------- src/pipeline/steps.rs | 4 ++-- static/app.css | 2 +- templates/audit.html | 2 +- templates/package.html | 2 +- templates/packages.html | 2 +- templates/review.html | 2 +- testcorpus/git-multi/manifest.json | 2 +- 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 +- 22 files changed, 60 insertions(+), 60 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3290225..0a28dde 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ path = "src/lib.rs" name = "aur-build" path = "src/main.rs" -# The sandbox agent (§8, remote-builder design): the binary that runs inside +# The sandbox agent: the binary that runs inside # the disposable sandbox and dials back to the hub. Production code — this is # what a Kata container's entrypoint is — not test-support. [[bin]] @@ -25,7 +25,7 @@ path = "src/bin/sandbox-agent.rs" # the pipeline shells out to; the test harness prepends their directory to PATH # so the whole step machine runs without root, network or an Arch chroot. # -# They are test-only (§6 M-4) and declare the `test-support` feature, so a +# They are test-only and declare the `test-support` feature, so a # production `cargo build --release` neither builds them nor links the shim code # into the library. # --------------------------------------------------------------------------- @@ -77,7 +77,7 @@ flate2 = "1" [features] # Test-only escape hatches. A fixture sometimes needs a database state no typed -# API reaches (§6 M-9), and the honest way to allow that is to say where: this +# API reaches, and the honest way to allow that is to say where: this # feature is enabled only by the crate's own dev-dependency below, so a # production build cannot see the raw-SQL door at all. test-support = [] diff --git a/src/db/builds.rs b/src/db/builds.rs index de9e7fb..fe341d3 100644 --- a/src/db/builds.rs +++ b/src/db/builds.rs @@ -340,7 +340,7 @@ pub fn begin_step(db: &Db, build_id: &str, step: &str, attempt: i64) -> Result<( )?; if n == 0 { return Err(Error::invalid(format!( - "step {s} of build {b} is already checkpointed as done and must not re-run (I5)" + "step {s} of build {b} is already checkpointed as done and must not re-run" ))); } tx.execute("UPDATE build SET current_step=?1 WHERE id=?2", params![s, b])?; diff --git a/src/db/migrations.rs b/src/db/migrations.rs index 4c4774e..0a1ca27 100644 --- a/src/db/migrations.rs +++ b/src/db/migrations.rs @@ -20,7 +20,7 @@ CREATE TABLE settings ( value TEXT NOT NULL ); --- Append-only audit log (I10). Enforced by trigger below. +-- Append-only audit log. Enforced by trigger below. CREATE TABLE audit ( id INTEGER PRIMARY KEY, at TEXT NOT NULL, @@ -41,7 +41,7 @@ CREATE TABLE pkgbase ( aur_head TEXT, -- live mirror tip current_accepted_release_id INTEGER, -- the single pointer everything reads state TEXT NOT NULL DEFAULT 'tracked', - unpinable INTEGER NOT NULL DEFAULT 0, -- §16 pkgver() that ignores pins + unpinable INTEGER NOT NULL DEFAULT 0, -- pkgver() that ignores pins created_at TEXT NOT NULL ); @@ -55,13 +55,13 @@ CREATE TABLE subscription ( next_check_at TEXT, last_checked_at TEXT, last_error TEXT, - poll_interval_secs INTEGER, -- per-source override (§19) + poll_interval_secs INTEGER, -- per-source override created_at TEXT NOT NULL, UNIQUE (repo_id, pkgbase) ); CREATE INDEX subscription_due ON subscription (state, next_check_at); --- An immutable pin of the AUR git repo for a pkgbase (§5.1a). +-- An immutable pin of the AUR git repo for a pkgbase. CREATE TABLE snapshot ( id INTEGER PRIMARY KEY, pkgbase_id INTEGER NOT NULL REFERENCES pkgbase(id), @@ -73,7 +73,7 @@ CREATE TABLE snapshot ( UNIQUE (pkgbase_id, aur_commit) ); --- Fingerprint of the accepted dep set a build ran against (§10.1). +-- Fingerprint of the accepted dep set a build ran against. CREATE TABLE world_snapshot ( id INTEGER PRIMARY KEY, hash TEXT NOT NULL UNIQUE, @@ -119,11 +119,11 @@ CREATE TABLE candidate ( CREATE INDEX candidate_by_pkgbase ON candidate (pkgbase_id, state); CREATE INDEX candidate_pending_age ON candidate (state, detected_at); --- I7: at most one open review per pkgbase, as a database guarantee. +-- At most one open review per pkgbase, as a database guarantee. CREATE UNIQUE INDEX one_open_review_per_pkgbase ON candidate (pkgbase_id) WHERE state = 'pending_review'; --- The immutable decision record (§7.2). +-- The immutable decision record. CREATE TABLE approval ( id INTEGER PRIMARY KEY, candidate_id INTEGER NOT NULL UNIQUE REFERENCES candidate(id), @@ -157,7 +157,7 @@ CREATE TABLE release ( ); CREATE INDEX release_by_pkgbase ON release (pkgbase_id, state); --- `package` is the unit of the index and dependency resolution (§3). +-- `package` is the unit of the index and dependency resolution. CREATE TABLE package ( id INTEGER PRIMARY KEY, repo_id INTEGER NOT NULL REFERENCES repo(id), @@ -173,7 +173,7 @@ CREATE INDEX package_by_name ON package (repo_id, name, state); const M_0002_BUILD: &str = r#" CREATE TABLE build ( - id TEXT PRIMARY KEY, -- deterministic intent hash (§8.2) + id TEXT PRIMARY KEY, -- deterministic intent hash pkgbase_id INTEGER NOT NULL REFERENCES pkgbase(id), candidate_id INTEGER REFERENCES candidate(id), release_id INTEGER REFERENCES release(id), @@ -196,7 +196,7 @@ CREATE TABLE build ( CREATE INDEX build_queued ON build (state, priority DESC, created_at); CREATE INDEX build_lease ON build (state, lease_expires_at); --- Step-level checkpoints: the mechanism behind I5. +-- Step-level checkpoints: what a resume reads. CREATE TABLE build_step ( build_id TEXT NOT NULL REFERENCES build(id), step TEXT NOT NULL, @@ -211,7 +211,7 @@ CREATE TABLE build_step ( "#; const M_0003_NOTICES: &str = r#" --- "something changed but nothing is publishable" (§5.2, I11). +-- "something changed but nothing is publishable". CREATE TABLE notice ( id INTEGER PRIMARY KEY, pkgbase_id INTEGER NOT NULL REFERENCES pkgbase(id), @@ -240,7 +240,7 @@ CREATE TABLE vcs_cache ( fetched_at TEXT NOT NULL ); --- Derived, read-only: "approving this marks N packages stale" (§10.5). +-- Derived, read-only: "approving this marks N packages stale". -- Nothing consumes it automatically; it is a read-time aid only. CREATE TABLE dep_edge ( from_pkgbase TEXT NOT NULL, @@ -253,7 +253,7 @@ CREATE TABLE dep_edge ( "#; const M_0004_TRIGGERS: &str = r#" --- I10: the audit log is append-only. +-- The audit log is append-only. CREATE TRIGGER audit_no_update BEFORE UPDATE ON audit BEGIN @@ -308,7 +308,7 @@ ALTER TABLE artifact ADD COLUMN purged_at TEXT; -- Set when a release's files have been evicted; NULL means the bytes are held. ALTER TABLE release ADD COLUMN purged_at TEXT; --- Staging is disposable (§8.2), but "disposable" needs a definition: a dir is +-- Staging is disposable, but "disposable" needs a definition: a dir is -- swept when its build is terminal or unknown and the dir is older than the -- grace period. Recording the sweep keeps a crashed-then-swept build auditable. CREATE TABLE IF NOT EXISTS gc_run ( diff --git a/src/pipeline/steps.rs b/src/pipeline/steps.rs index 061593b..efd3cdb 100644 --- a/src/pipeline/steps.rs +++ b/src/pipeline/steps.rs @@ -318,14 +318,14 @@ fn collect(ctx: &Ctx) -> Result { for path in entries { if std::fs::symlink_metadata(&path).map(|m| m.file_type().is_symlink()).unwrap_or(true) { return Err(Error::fail_closed(format!( - "{} is a symlink; a build may not smuggle bytes in from outside its own staging dir (I9)", + "{} is a symlink; a build may not smuggle bytes in from outside its own staging dir", path.display() ))); } let resolved = path.canonicalize()?; if !resolved.starts_with(&staging_root) { return Err(Error::fail_closed(format!( - "{} resolves outside this build's staging dir ({staging_root:?}); refusing to ingest it (I9)", + "{} resolves outside this build's staging dir ({staging_root:?}); refusing to ingest it", path.display() ))); } diff --git a/static/app.css b/static/app.css index 017ada5..16b0887 100644 --- a/static/app.css +++ b/static/app.css @@ -24,6 +24,6 @@ h1 { font-size:1.3rem } h2 { font-size:1.05rem; margin:1.4rem 0 .4rem } .tag { border:1px solid var(--line); border-radius:3px; padding:0 .3rem; font-size:.85em; background:#f4f4f1 } /* Live builds table: the htmx swap target. Without JavaScript the table is - simply server-rendered and a refresh is a refresh (§13). */ + simply server-rendered and a refresh is a refresh. */ #builds.htmx-request { opacity:.6 } .log { max-height:60vh; overflow:auto } diff --git a/templates/audit.html b/templates/audit.html index f47030e..850896d 100644 --- a/templates/audit.html +++ b/templates/audit.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block content %}

Ops

-

Append-only: the audit table rejects UPDATE and DELETE at the schema level (I10).

+

Append-only: the audit table rejects UPDATE and DELETE at the schema level.

{% for a in rows %}{% endfor %}
whenactoractionentitydetail
{{ a.at }}{{ a.actor_kind }}:{{ a.actor }} {{ a.action }}{{ a.entity }} {{ a.entity_id }}
{{ a.detail }}
diff --git a/templates/package.html b/templates/package.html index 0bb7a0a..d6c5d29 100644 --- a/templates/package.html +++ b/templates/package.html @@ -6,7 +6,7 @@
-Rebuilds reuse the approved source identity and need no new approval (I6). +Rebuilds reuse the approved source identity and need no new approval. {% if can_withdraw %}
diff --git a/templates/packages.html b/templates/packages.html index 79b27cc..4998f5b 100644 --- a/templates/packages.html +++ b/templates/packages.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block content %}

Index [{{ repo }}]

-

Exactly the set of accepted releases — one entry per pkgbase, nothing else (I8).

+

Exactly the set of accepted releases — one entry per pkgbase, nothing else.

{% if rows.is_empty() %}

The index is empty.

{% else %} {% for p in rows %} diff --git a/templates/review.html b/templates/review.html index e61482b..2910be5 100644 --- a/templates/review.html +++ b/templates/review.html @@ -19,7 +19,7 @@ diff is measured against.

{% for s in c.signals %}{{ s }} {% endfor %}{% endif %} {% if !c.dependents.is_empty() %}
This will mark {{ c.dependents.len() }} package(s) stale

These are ours and their recipes name this one, so publishing changes what they were -built against. Nothing rebuilds automatically (§10) — they will appear on Attention until you +built against. Nothing rebuilds automatically — they will appear on Attention until you rebuild them.

{% for d in c.dependents %}{{ d }} {% endfor %}

{% endif %} {% if !c.missing_deps.is_empty() %}
Missing dependencies diff --git a/testcorpus/git-multi/manifest.json b/testcorpus/git-multi/manifest.json index bedfd29..9f8d792 100644 --- a/testcorpus/git-multi/manifest.json +++ b/testcorpus/git-multi/manifest.json @@ -8,5 +8,5 @@ ], "log_lines": ["==> Making package."], "vercheck": "r1-1", - "expect": { "notes": "two VCS sources, two pin entries (§5.2: probe every source, not just the first)" } + "expect": { "notes": "two VCS sources, two pin entries: probe every source, not just the first" } } 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
packageversionarchsizepublished