Upgrading

How to move an existing deployment from any earlier release to the current one — and, just as important, which repairs aveloxis migrate does not do for you.

The four steps

Every upgrade is these four steps, in this order, on the primary host:

AVELOXIS_SRC=/path/to/aveloxis    # the git checkout of this repository
cd "$AVELOXIS_SRC" && go install ./cmd/aveloxis && aveloxis version   # 1. the new binary (running processes keep the old one until restarted)
aveloxis deploy-checklist --pending   #    every step this database still needs, oldest first, and the migrate for step 3 — read it now, before step 3 moves the stamp
aveloxis stop all                 # 2. nothing runs against the schema while it changes
aveloxis migrate --skip-views     # 3. the schema — a plain `aveloxis migrate` instead when the checklist asks for one (a release that changed a view definition)
#                                 #    …then the checklist's checks, heals and audits, every block's, oldest first
aveloxis ack-deploy               #    …then record that they ran
aveloxis start all                # 4. serve, web and api; then any step the checklist says needs the running release

deploy-checklist --pending reads this database’s last acknowledged deploy and its schema stamp and prints the range aveloxis start serve enforces — the same computation, not a copy of it: every release after the acknowledged one; from the stamp, its own block included, when no deploy was ever acknowledged (the stamp release’s steps were never acknowledged either) or when the stamp is behind the acknowledgement (one recorded after a migrate that did not complete — the stamp is the evidence); and the new binary’s own steps when there is neither, or when the acknowledgements cannot be read, which it says. A database from before v0.29.0 has no deploy_ack table and counts as never acknowledged: its range starts at the stamp. When the stamp is current and this release’s steps are acknowledged (or it has none), it prints nothing pending — only then: a missing, unreadable or malformed stamp prints the steps, saying why first, and so does a fresh install with no collected data yet. Otherwise it ends by naming the migrate step 3 runs. It reads the database in aveloxis.json (--config for another) and changes nothing. Versions compare as numbers (0.29.9 is before 0.29.10).

When more than one release in the range has deploy steps, deploy-checklist --pending (and --since) prints a header before the blocks: stop, migrate and start once, not once per block, with the strongest migrate any block asks for (a plain aveloxis migrate if any block needs it and no later release in the range lifts it — 0.29.61 lifts 0.29.60’s, for example, because it moved the supply-chain views out of the 8Knot batch — otherwise --skip-views) — that is the migrate step 3 runs, and the one the start gate’s refusal names. When the header names --skip-views although an older block in the range asks for a plain migrate, a line under it says which later release lifts that block’s instruction. The header’s sequence ends with aveloxis ack-deploy, then aveloxis start all, as the steps above do. Consecutive releases with identical steps print as one block labelled with the range they cover. Each block’s own stop, migrate and start lines are covered by the four steps; its checks, heals and audits are not, and run in step 3, oldest first; a step that needs the running release (such as adopt-forge-id or the approvals page) runs after step 4. A --since value that is not a version (dotted numbers such as 0.29.64) is an error and exits non-zero, rather than printing an empty list.

aveloxis ack-deploy belongs to step 3. When the new binary’s release has deploy steps, aveloxis start serve (and start all) asks at a terminal whether they were completed and, without a terminal — a script, systemd, an SSH command — refuses to start until they are acknowledged. Run it after the heals, not before: it records that the steps ran. The gate is aveloxis start’s: a systemd unit runs aveloxis serve directly, which migrates at its own start with no gate, so under systemd run the ladder by hand and start the target last (Production Deployment). If the schema stamp cannot be read, --pending says so and starts the range from the acknowledgements (the new binary’s own steps if there are none); the section below says how to find the version you are coming from, and aveloxis deploy-checklist --since <version> prints the steps after it.

--skip-views skips only the 8Knot materialized-view batch (hours at fleet scale); everything else — the schema, the ledgered backfills, the two supply-chain views — runs either way (v0.29.61). aveloxis refresh-views is not one of the four steps: a release whose heals fed a materialized view lists it in its own checklist (the “standard ladder” below shows where it sits when a release asks for it). Since v0.29.68 web, api and the scancode worker refuse to start while the schema stamp is behind their binary, naming the migrate, instead of serving queries against columns the schema does not have yet; and aveloxis start serve prints the deploy steps of every release since the last acknowledged one, oldest first, under the same once-only header and with the same collapsing of identical blocks as deploy-checklist --pending, not only the current version’s. Neither web nor api ever migrates. The sections below are the detail behind step 3.

The two halves of an upgrade

  1. aveloxis migrate applies every schema change and every one-shot SQL backfill between your old version and the new one. It is idempotent and safe to re-run. Since v0.28.4 the expensive one-shot data steps record their completion in aveloxis_ops.migration_ledger, so a later migrate is seconds — only the first migrate across a large version gap pays the full walk.

  2. Operator-run heal commands repair data the migrate cannot: they call the GitHub/GitLab APIs, run for hours at fleet scale, or need a judgment call (merging duplicate repositories, for example). They are deliberately not migrations. The table further down lists every one with the release that introduced it, so you can skip the ones that predate the version you are coming from.

Find the version you are coming from before you start — it decides which rows of that table apply:

SELECT schema_version FROM aveloxis_ops.schema_meta;

If that fails with relation "aveloxis_ops.schema_meta" does not exist, the database predates v0.14.5 (the release that introduced the stamp). Every row of the table below applies to it — the earliest entry is v0.23.6 — so you do not strictly need the exact version, but the binary that last wrote data tells you where you were: aveloxis serve migrates at startup, so the newest tool_version on collected rows is the last binary that migrated the schema:

SELECT tool_version
FROM aveloxis_data.repo_info
ORDER BY data_collection_date DESC NULLS LAST, repo_info_id DESC
LIMIT 1;

The standard ladder

AVELOXIS_SRC=/path/to/aveloxis   # the git checkout of this repository
cd "$AVELOXIS_SRC" && go install ./cmd/aveloxis
aveloxis version                # confirm the new binary
aveloxis deploy-checklist --pending   # the exact steps this database needs: follow them where they differ from these
aveloxis stop all               # serve, web, api (also cleans stale pidfiles)
aveloxis migrate --skip-views   # schema + ledgered backfills; skips the materialized views
# ... operator-run heals from the table below, in order ...
aveloxis refresh-views          # refresh the materialized views' data (--set 8knot or supply-chain for one set; add --aggregates for the dm_ tables; slow)
aveloxis ack-deploy             # record that the steps ran; a non-interactive `start serve` refuses without it
aveloxis start all

refresh-views refreshes each view’s data; it does not change a view’s definition. A release that changes a view definition needs one plain aveloxis migrate (without --skip-views), which drops and re-creates the views from the new definitions; serve never does it at startup. v0.29.57 is such a release (explorer_libyear_summary’s definition now orders unknown repositories last): its deploy checklist (in the range aveloxis deploy-checklist --pending prints) uses a plain aveloxis migrate in place of the --skip-views step above, then checks that the new definition is in place. That check matters because the migrate only logs a WARN (materialized view creation had errors) when the views fail to re-create, and still exits 0 with the old definitions in place. Since v0.29.68 the build enforces the rule: matviews.sql is pinned by digest, and a change to it fails the test suite until the release shipping it is named and that release’s checklist carries the plain migrate.

Run aveloxis migrate explicitly rather than letting aveloxis serve migrate at startup: web and api never migrate and (since v0.29.68) refuse to start while the schema stamp is behind their binary, and (since v0.27.131) serve trusts the schema-version stamp and skips the migration walk entirely once it matches — so after any hand edit to the schema, run aveloxis migrate once. Verify the stamp matches the binary afterwards:

SELECT schema_version FROM aveloxis_ops.schema_meta;   -- equals `aveloxis version`

What to watch for in the migrate output

0.29.146 sidelines a dead API key and names keys in the log; nothing to configure, no schema change. A key whose token is revoked or expired used to be rested and retried for as long as aveloxis serve ran: three 401s, a rest of up to 30 minutes, and again. Now a key is sidelined until the process restarts (API key sidelined until restart, at ERROR) when it has come back from 5 rests still answering 401, with no successful request of its own between them, and during each of those rests most of the pool’s other keys worked cleanly: a successful request and no 401. For a key that was never quarantined before, those rests add up to 31 minutes, which is the soonest it can happen: a rest during which fewer than most of the other keys made a clean successful request (because they were resting on spent rate-limit budgets, or idle) does not count and does not undo the ones that did, so on a pool short of budget a dead key goes later, and while a pool has more dead keys than working ones none is sidelined. Other keys working cleanly is what separates a dead token from a forge that is rejecting valid tokens: in such an incident the other keys are refused too, so the rest does not count, nothing is sidelined however long it lasts, and a pool’s only or last working key is never sidelined. One case looks the same as a dead token and is treated as one: a forge that refuses some valid tokens for more than half an hour while most of the pool works; a restart brings those keys back. A 401 that arrives while its key is already resting, the answer to a request that was in flight, no longer counts toward another quarantine. Every log line about a key now carries key= beside token_hash=, naming the table, oauth_id and name of its row, or its position in the config file’s api_keys list: that is the row or entry to remove. The five-minute key pool summary line (the GitHub pool’s) carries keys_sidelined and names them; a GitLab pool with a sidelined key logs GitLab key pool: sidelined keys at the same interval. A sidelined key is tried again after a restart, so remove a dead one (troubleshooting has the steps, and a query that finds the row from a token_hash logged by an older release).

The same release stops a URL that is not a repository’s from being stored as one. Two paths did it. An add request saved by an older release could hold such a URL, and at its approval it was stored as a git-only repository with no owner and no name: an organization’s page (https://github.com/org/) stored that way fails at the clone on every collection. Such an item is now marked failed, and the add form says an organization page is one: the group page shows its own notice for it, and the API names it in invalid or, when no line of the paste was usable, in the 400’s message. And when a repository’s page redirected to a URL that is not a repository’s, the new URL was stored: its owner’s page, which blanked the row’s owner and name, or the forge’s sign-in page (https://gitlab.com/users/sign_in, where gitlab.com sends a request for a project that went private), which was stored as if it were a repository named sign_in. Now the redirect is not followed (and a row an older release stored under such a URL is no longer taken for the new home of every repository that redirects there), the row keeps its URL, and the log says redirect target is not a repository URL at ERROR. A 200 from such a page is also no longer a sign of life: a repository marked gone stays gone when its probe ends there (in the collection’s first step, the automatic gone recheck, which logs redirected to a page that is not a repository's, and aveloxis mark-gone-repos), and mark-gone-repos no longer lifts an archived row on it. The page is judged whatever its length: gitlab.com’s sign-in redirect carries the address to return to, and a long one is still the sign-in page. A gone repository that someone adds again while its page redirects there therefore stays both gone and queued, with that ERROR at each collection; aveloxis data-verify counts those under gone and queued.

aveloxis data-verify reports the rows already stored, under two WARNs. repositories at a forge account page names GitHub and GitLab rows whose URL is under the forge’s own pages (https://gitlab.com/users/sign_in): unless the first path segment is a real namespace of yours (GitLab allows auth, sessions, signin and sign_in as group names), the row was a repository whose redirect was stored, its original URL is lost, and each repository that redirected there later was taken for its duplicate: one that had never been collected was deleted and its group links moved onto this row, and one with collected data lost its queue row (aveloxis reconcile-repos finds those and queues them again). Deleting this row therefore also removes the group links that were moved onto it; find what it was from its collected data (SELECT DISTINCT repo_id, cmt_author_email FROM aveloxis_data.commits WHERE repo_id = … or its issues’ URLs) before deciding. Two limits remain. The sign-in rule knows a forge by its host name (github.com, or a host with gitlab in it): on a GitLab instance configured under another host name the redirect is still stored, and this check is how to find it. And a GitLab project that went private answers with that redirect and a 200, so it is still collected against its old URL, failing, with the ERROR above at each collection, where a GitHub repository that went private is marked gone.

repositories without owner or name names rows stored without an owner or a name. Look at each one before acting:

SELECT r.repo_id, r.repo_git, r.platform_id,
       (SELECT COUNT(*) FROM aveloxis_data.commits c WHERE c.repo_id = r.repo_id) AS commit_rows,
       (SELECT COUNT(*) FROM aveloxis_data.issues i WHERE i.repo_id = r.repo_id) AS issues
FROM aveloxis_data.repos r
WHERE COALESCE(r.repo_owner, '') = '' OR COALESCE(r.repo_name, '') = '';

A row with collected data was a repository once, and a redirect changed its URL: keep it, and decide what its URL should be. A row with no data whose repo_git is an organization’s page was never a repository. No command removes one; these statements do, in one transaction, with the id from the query (153226 stands for it here), and then add the organization if that was meant:

BEGIN;
DELETE FROM aveloxis_ops.collection_status WHERE repo_id = 153226;
DELETE FROM aveloxis_ops.staging WHERE repo_id = 153226;
DELETE FROM aveloxis_ops.collection_queue WHERE repo_id = 153226;
DELETE FROM aveloxis_ops.user_repo_stars WHERE repo_id = 153226;
DELETE FROM aveloxis_ops.user_repos WHERE repo_id = 153226;
DELETE FROM aveloxis_data.repos WHERE repo_id = 153226;
COMMIT;

The foreign keys are checked at the COMMIT. If it fails, something else still refers to the row (the error names the table): nothing was deleted, so look at what that table holds for the repository before going further. A fleet already running 0.29.145 needs only the stop, the migrate (a version stamp) and the start.

0.29.145 clears star counts stored as watcher counts, once; nothing to configure, no schema change. Before 0.29.143 the GitHub REST fallback stored a repository’s star count in repo_info.watcher_count; 0.29.143 fixed the fallback and left the rows it had already written. This migrate sets watcher_count to NULL on every repo_info and repo_info_history snapshot with data_source = 'GitHub REST' and a tool_version before 0.29.143, and logs the two counts (cleared the star counts the GitHub REST fallback stored as watcher_count before 0.29.143). NULL means the watcher count of that snapshot is unknown: the count of that day cannot be recovered, and no value is put in its place. Snapshots the fallback wrote on 0.29.143 or later hold the watcher count and are not touched, and neither is any other column. The step runs once per database and reads repo_info and its history in full (there is no index on data_source). To see what it cleared afterwards: SELECT repo_id, data_collection_date FROM aveloxis_data.repo_info_history WHERE data_source = 'GitHub REST' AND watcher_count IS NULL. The /stars, /forks and /watchers series leave out a snapshot whose count is NULL (they drew it as 0), so a cleared snapshot is a missing point in the watchers chart; a current snapshot that was cleared reads as 0 watchers on /watchers-count until the repository’s next collection writes a new one. The Augur-compatible view aveloxis_augur_data.repo_info passes the NULL through as watchers_count, so a consumer of it (8Knot’s repository overview) shows no watcher count for a repository whose current snapshot was cleared, until that collection. Two cases the step cannot see, because nothing on the row tells them apart: a fallback answer that was staged before 0.29.143 and written by a later release keeps its star count (a stop that fell between a job’s fetch and its write, across that upgrade), and a fleet whose 0.29.143 migrate logged tool_version default sweep: alter failed for repo_info has later, correct fallback counts cleared with the wrong ones.

The same release makes the fetch into an existing bare clone wait for git’s automatic maintenance. A fetch ends by starting git maintenance run --auto, which git detaches by default, so the fetch returned while a repack was still replacing pack files; the analysis phase copies the clone seconds later, and the copy failed when a pack disappeared under it. The log showed analysis failed with local clone failed and either failed to copy file or trying to write ref … with nonexistent object, and that collection kept the repository’s previous dependency, libyear and scc rows. Aveloxis now runs the fetch with gc.autoDetach=false and maintenance.autoDetach=false. Nothing is skipped: the bare clones are repacked as often as before, and a fetch that starts a repack takes longer by the time of the repack, which used to run unseen after it. A stop ends the repack together with the fetch: git is asked to stop (SIGTERM), so it removes its lock and temporary files, and whatever has not stopped after 10 seconds is killed. A repack that fails does not fail the fetch; it is logged as fetch succeeded but git reported errors. Git skips a clone’s automatic maintenance, silently, for as long as objects/maintenance.lock exists in it, and a maintenance that was killed without the chance to clean up (the host went down, the kernel killed it) leaves that file. Aveloxis logs git maintenance lock present before the fetch with the path when it finds one; if no git maintenance is running on that clone, remove the file (see troubleshooting). A fleet already running 0.29.144 needs the stop, the migrate and the start.

0.29.144 pins scc and records its version; nothing to configure, no schema change. aveloxis install-tools, aveloxis upgrade-tools and the monthly tool update now install one pinned scc, go install github.com/boyter/scc/v4@v4.1.1-0.20261108043418-62ac0b03d79a (scc’s master at commit 62ac0b03, which reports scc version 4.2.0 (beta)), the version Aveloxis validates. Before, they installed scc/v3@latest, which can never be newer than 3.7.0, so the monthly update would have replaced a newer scc in the Go bin directory with 3.7.0. Before the start, while the processes are stopped, run aveloxis upgrade-tools (install-tools leaves an installed scc alone), then check that scc --version prints 4.2.0 (beta). The upgrade now fails, naming the paths, when another scc comes first on PATH (a Homebrew copy, for example, which serve would keep running) or when the installed scc does not report 4.2.0 (beta). An scc scan that an upgrade overlaps records its rows as scc (version unknown). scc 4.x counts lines differently from 3.x (it fixed quote handling that made 3.x count comments and blank lines as code), so as each repository is re-analyzed its repo_labor code lines fall and its comment lines, blank lines and complexity rise, most in Python and JavaScript projects; estimates from code lines, such as the COCOMO labor investment, fall with them. Every repo_labor row now names the scc that counted it in data_source (scc 4.2.0 (beta); rows written earlier say scc), so a history can be split where the counting changed (Analysis). aveloxis data-verify no longer says aveloxis migrate rebuilds every INVALID index: the migrate rebuilds only the indexes it builds itself, and an index built by hand stays INVALID through any number of migrates. The check now says to confirm in pg_stat_progress_create_index that no build of the index is running and then to drop it with DROP INDEX CONCURRENTLY; a concurrent build that is still running is reported as index builds in progress, a WARN. The binary is built with Go 1.26.11 (go.mod’s toolchain), which fixes GO-2026-6859, a crash of the HTTP/1 server that serve, web and api run; a host whose own Go is 1.27.0 to 1.27.3 builds with that instead (GOTOOLCHAIN=auto takes the newer), so update it to 1.27.4 or later before the build (go version). A fleet already running 0.29.143 needs the stop, the migrate, aveloxis upgrade-tools while the processes are stopped, and the start.

0.29.143 changes nothing to run. When the GitHub GraphQL repository-info query fails and collection falls back to REST, repo_info.watcher_count now holds the number of watchers (subscribers_count); before, it held the star count, because REST’s watchers_count is a legacy alias of stargazers_count (#245). Rows already written by the fallback, and their repo_info_history entries, keep the star count; the next collection of the repository writes the watcher count. The fallback marks its rows data_source = 'GitHub REST', so the affected snapshots can be found (SELECT repo_id, data_collection_date FROM aveloxis_data.repo_info_history WHERE data_source = 'GitHub REST'); the past watcher counts themselves cannot be recovered (0.29.145 sets them to NULL). A fleet already running 0.29.142 needs only the stop, the migrate (a version stamp) and the start.

0.29.142 changes nothing to configure; the migrate may analyze three tables. PostgreSQL gathers statistics on an index’s expression only when the table is analyzed, never when the index is built, and until then the planner prices every lookup at 0.5% of the table and keeps its full scan. So the three lower(email) indexes of 0.29.141 serve no query until autovacuum happens to analyze their tables (after about a tenth of the rows change). The migrate now analyzes any table whose expression index has no statistics yet, logging analyzed a table for its expression index for each: on a fleet that ran 0.29.141, contributors, contributors_aliases and contributor_identities unless autovacuum analyzed them since. ANALYZE reads a fixed-size sample (seconds) and blocks neither reads nor writes; an empty table never gets statistics and is analyzed at every migrate, at no cost. aveloxis data-verify gains five checks worth running once after the start: one open gone episode per gone-stamped repository and none on a reachable one, gone-stamped repositories still queued, INVALID indexes, earlier-era daily buckets below their fold from the commits table, and the three lower(email) indexes. aveloxis data-test gains a snapshot mode that compares two releases’ migrations on one prepared database (data-test); nothing runs it at a deploy. A fleet already running 0.29.141 needs the stop, the migrate and the start.

0.29.141 adds three indexes; nothing to configure. The migrate builds idx_contributors_email_lower, idx_contributors_aliases_email_lower and idx_contributor_identities_email_lower (each on lower() of the table’s e-mail column) with CREATE INDEX CONCURRENTLY. Writers are not blocked, but each build reads its whole table, and contributors is the largest, so on a large fleet this migrate runs longer than a version stamp. A concurrent build also waits for every older open transaction in the database, which the ladder’s stop all avoids. They serve case-insensitive e-mail lookups such as aveloxis-cve’s author resolution, which read all three tables in full on every call. A build interrupted by a stop leaves an INVALID index; the next migrate drops and rebuilds it.

0.29.140 adds one table, one nullable column and two one-shot steps; nothing to configure. aveloxis_data.repo_gone_history (schema.sql creates it on the migrate) keeps every stretch during which a repository did not resolve on its forge — repos.repo_gone_at was the current state only and was cleared when the repository came back — and a ledgered step opens an episode for each repository already stamped gone (status unknown, source backfill-0.29.140). The repository page lists the episodes (gone_history of /stats), the current one marked, and keeps them after the repository is back. Three behaviours change with it. A gone-stamped repository is resurrected (stamp cleared, re-queued) by a definitive sign of life, not only by the 28-day recheck: an org scan that lists it publicly under the forge ID the row already stores (a private or GitLab-internal listing is no sign of life — the probe is unauthenticated; and once per gone stretch, so a listed-but-unreachable repository cannot flap), or the operator adopting its recorded forge-ID change (the adoption’s own transaction, and only when the re-created repository is KNOWN to have been listed publicly — repo_forge_id_changes.observed_private, a new nullable column the migrate adds, carries the scan’s answer, and a change recorded before this release stays unknown (the admin page marks it “visibility not recorded”; adopting it keeps it unknown) until a scan lists it again; the CLI asks the forge and records its answer; the admin page’s adoption reads the record inside its own transaction, on the locked row, so a scan’s later observation is never overwritten by an older one; an api or web process started before the migrate serves the forge-ID notice with the visibility unknown instead of failing the page); a listing under another ID stays a pending change. The gone marker (stamp, gone episode, dequeue) is one transaction with one writer — prelim’s sideline, mark-gone-repos and reconcile-repos — so a resurrection can no longer land between the stamp and the dequeue, nor between a candidate read and a stamp alone; and the dataless rename heal carries a duplicate’s gone episodes to the repository it heals onto instead of cascading them away. The migrate step that mirrors the forge’s archived flag onto repos.repo_archived (v0.27.50, every migrate) now leaves gone-stamped rows alone — it un-archived every gone repository whose last metadata snapshot was not archived, which is where serve’s start gauge non-archived repos with no collection_queue row came from after each deploy (426 of 469 on kate, 2026-11-05); reconcile-repos’ dead arm stamps gone the way prelim does (it set the archived flag alone, so those rows never joined the recheck), and its lost-queue-row arm clears a stale stamp with the enqueue. And a repository re-created upstream under the same URL, once its forge-ID change is adopted, keeps its earlier history in the charts: the daily commit table’s trim stops at the new repository’s creation day (its first observation when the forge gave no date) — that day itself keeping the earlier repository’s commits authored before the re-creation — the adoption restores the earlier era’s daily buckets a walk had already trimmed from the commits table (which keeps every commit), the migrate does the same once for every repository adopted before this release (stamping each one’s cache state, so a chart answer cached before the migrate is recomputed), the page says two histories share the name, and the charts mark the boundary (“new upstream”). The contributor_retention series reads the daily commit table for a single repository whose picture is complete (the last series on the per-file commit rows; its commits arm alone ran past the API’s bound on the largest repositories), so a contributor the resolver never stamped on her commits now counts through her alias there as in the other series; a set of repositories (the compare page) keeps the per-file path, which counts a commit shared by a fork and its upstream once. The api and web processes and the one-shot commands do not migrate: until the migrate has run, the forge-ID adoption (the admin page answers 503, the API 503), aveloxis adopt-forge-id, collect and the writing runs of mark-gone-repos, reconcile-repos, dedup-repos and backfill-repo-metadata refuse with a message naming the deploy steps and write nothing (the last four’s --dry-run still previews); the gate is the schema stamp, so from 0.29.140 on it holds for every release. Once after the start, run aveloxis reconcile-repos, then aveloxis mark-gone-repos. The queueless repositories reconcile-repos archived without a gone stamp before this release split at the migrate: those whose latest metadata snapshot is not archived lose the flag (the v0.27.50 step) and are reconcile-repos’ to probe — a 404 stamps them gone, a 2xx re-queues them; the rest keep it and are mark-gone-repos’ — a 404 stamps them, a 2xx restores the flag from the forge and re-queues them, and one renamed onto a repository already tracked is a duplicate and is left as it is. Database side, for the contributors/top answers that ran past http_timeout_seconds on the largest repositories: their covering indexes on messages and issues fell back to the heap because a third of those tables’ pages were not all-visible (autovacuum’s default scale factor of 0.2 lets 30 M dead rows accumulate on a 148 M-row table) — ALTER TABLE aveloxis_data.messages SET (autovacuum_vacuum_scale_factor = 0.01, autovacuum_vacuum_insert_scale_factor = 0.01), the same on aveloxis_data.issues, then one VACUUM (VERBOSE) aveloxis_data.messages; the factor is 1 % of the table, a bound derived from the visibility map, not a flat number. A fleet already running 0.29.139 needs the stop, the migrate and the start.

0.29.139 changes nothing to run. The api’s page cache leader (the computation that finishes after its caller leaves, 0.29.137) runs under the request’s own deadline, kept across the detachment from the caller, and never later than http_timeout_seconds from the moment it is claimed; before, its window started at the claim, so a computation could run past the request’s deadline by the time authorization and the cache’s setup had taken. A fleet already running 0.29.138 needs only the stop, the migrate (a version stamp) and the start.

0.29.138 changes nothing to run. The api’s re-warm reports a replay that ran out of http_timeout_seconds by the clock, not by which of two timers of the same length fired first (since 0.29.137 the page cache’s leader computes under its own bound, started after the replay’s): the test that pins the case named a degraded answer where the bound had cut the request in one run of 400 under the race detector on two processors (how often a fleet’s replays hit the tie is unmeasured). The replay was counted as failed either way; only the logged reason changes. A fleet already running 0.29.137 needs only the stop, the migrate (a version stamp) and the start.

0.29.137 changes nothing to run. Three changes behind the repository page’s charts: the API’s page cache finishes and stores an answer whose caller left mid-computation (a front end whose read timeout is shorter than http_timeout_seconds cut the warm script’s contributors chart, and the cancelled work was discarded every pass) — bounded by http_timeout_seconds and ended by aveloxis stop api at once, with a WARN repository page cache: a computation its caller left behind ran into http_timeout_seconds and was not stored in api.log naming the request when the bound ends it; the contributors, committers and code_change_commits series read the daily commit table for a repository whose picture is complete (the same rule as the weekly series and top contributors — aveloxis heal-commit-daily fills a repository collected before the table existed; a repository not yet complete keeps the per-file path, slower and never wrong) and count a person once per bucket before the deleted-identity rule. A stored daily-table identity now survives a walk only while the day’s commit count is unchanged (a changed count means the evidence changed, so the walk drops it and the readers resolve the author afresh); rows whose count changed under the earlier rule keep the identity it kept until their count next changes — an operator who wants a repository’s rows re-decided clears its commit_daily_complete_at and runs aveloxis heal-commit-daily --apply for it. A fleet already running 0.29.136 needs only the stop, the migrate (a version stamp) and the start.

0.29.136 changes nothing to run. aveloxis deploy-checklist --pending (and --since) and the start gate wrap their notes at the terminal’s column width — COLUMNS when it is set, otherwise 80 — with a blank line between steps; a step’s command line is never split. A fleet already running 0.29.135 needs only the stop, the migrate (a version stamp) and the start.

0.29.135 changes nothing to run. Documentation: with HTTP_PROXY/HTTPS_PROXY set, the outbound-address rule’s probe connects through the proxy, which resolves the target itself — the rule checks each hop by name; the proxy’s resolution is yours (SECURITY.md names the residual). A fleet already running 0.29.134 needs only the stop, the migrate and the start.

0.29.134 changes nothing to run. A host the outbound-address rule trusts by name — a configured forge, a collection.private_network_hosts entry — is now resolved and refused when it resolves to a link-local address (the cloud metadata range); its private addresses remain your trust, and it must resolve from the serve host, a configured proxy notwithstanding. 0.29.132 did not resolve trusted names at all, so “never reached” did not hold for one. A fleet already running 0.29.133 needs only the stop, the migrate and the start.

0.29.133 changes nothing to run. The go-module closure of a cloned repository sets GOPRIVATE and GONOPROXY to a pattern no module path matches, where 0.29.132 emptied them — the go command treats an empty variable as “use the value saved with go env -w”, so a saved private pattern stayed in force and a stranger’s go.mod naming it reached that host directly — and reads the effective GOPROXY and GONOSUMDB through go env, so a proxy saved with go env -w is honoured (its direct entry removed) and the checksum exemption the go command derives from your GOPRIVATE is kept as it was. A fleet already running 0.29.132 needs only the stop, the migrate and the start.

0.29.132 adds the outbound-address rule and one configuration key, not a schema change. The collector refuses a repository host whose address is loopback, link-local, private (RFC 1918, ULA) or otherwise special-use — at the redirect probe, both git clones and the scorecard run — unless the operator trusts it. The hosts of github.base_url, gitlab.base_url and web.gitlab_base_url are trusted as configured, so a self-hosted GitLab or GitHub Enterprise on a private network needs nothing; any other private host (a standalone git server on the LAN) goes in collection.private_network_hosts, a host name or a CIDR range. Before starting 0.29.132, list such hosts: SELECT DISTINCT lower(split_part(repo_git, '/', 3)) FROM aveloxis_data.repos WHERE repo_gone_at IS NULL names every tracked host; resolve each from the serve host (getent ahosts HOST) and list the private ones, github.com included if your resolver maps it to a private egress. After the start, grep the serve log for repository host is a private address: such a repository is never marked gone — a GitHub or GitLab repository’s job records the refused clone and completes its API collection (it returns at its normal due time), a git-only repository’s job fails and retries on its backoff. Link-local addresses are never reached; numeric hosts that are not dotted-decimal addresses are refused as written. Before each clone or fetch the git endpoint’s redirect chain is walked under the rule (a forge may redirect it where its web page does not: GitLab answers the spelling without .git with a 301), and git follows no redirect of its own. The go-module closure of a cloned repository keeps the serve host’s effective GOPROXY list with its direct entry removed (the public proxy when none is set) and overrides GOPRIVATE and GONOPROXY with a pattern no module path matches (GONOSUMDB is passed as its effective value, GOSUMDB untouched; as corrected in 0.29.133 — the 0.29.132 binary itself emptied the two): a module no proxy serves is now the existing go mod graph WARN line instead of a fetch from this host. The serve process logs the effective trust at start.

0.29.131 changes nothing to run. A conversation link written to a message another repository owns — a comment a second case variant collected after the first, a cross-posted mailing-list email bridged by a second list’s repository, a Jira comment of a project registered to a second repository — now moves that owner’s cache state in the same statement (the insert side of 0.29.130’s merge rule), so its cached contributor-retention series is not left stale until its next collection. A fleet already running 0.29.130 needs only the stop, the migrate and the start.

0.29.130 changes nothing to run. A merge of two case variants of one repository (aveloxis dedup-repos, aveloxis reconcile-repos) now moves the cache state of every repository whose message one of the loser’s deleted conversation links named, with the winner’s: a comment first collected under a third variant, or under a repository an issue was transferred from, counts in that repository’s contributor-retention series once per link, and the merge’s delete of the loser’s links changed the series without moving the cache. A fleet already running 0.29.129 needs only the stop, the migrate and the start.

0.29.129 closes a way around the sign-out-everywhere rule, not a schema change. Ending every session of one’s own account needs a sign-in within web.session_idle_minutes through every route now: the account page and POST /api/v1/me/sessions/revoke as before, and the administrator’s Users page button and POST /api/v1/admin/users/{userID}/sessions/revoke when the id named is the caller’s own (403 reauthentication_required at the API; the web GUI asks to sign in again). An administrator ends another account’s sessions at any sign-in age, as before. aveloxis heal-messages stamps the cache state of the repositories it wrote only, not the whole planned batch. A fleet already running 0.29.128 needs only the stop, the migrate and the start.

0.29.128 changes nothing to run. A CI check is widened (a workflow’s job-level env: may not name the runner, env, steps, job or jobs contexts anywhere in an expression, not only as its first token, and a container’s or a service’s env: not steps or jobs, the sets GitHub’s context table gives those places; the file is decoded, so no indentation style, comment or alias hides a value); the binaries behave as 0.29.127’s. Nothing beyond the ladder.

0.29.127 widens the message heal’s cache stamp, not a schema change. aveloxis heal-messages stamps every repository a healed message’s rows name — the message’s own and each conversation link’s — not only the one parent per bridge table it refetches, so a link to a repository no refetched parent named (duplicate repositories sharing a message after a rename) no longer leaves that repository’s cached API answers stale until its next collection. A fleet already running 0.29.126 needs only the stop, the migrate and the start.

0.29.126 makes a failed drain stamp owed, not a schema change. A Jira or mailing-list drain whose cache-state stamp fails (a database error after the rows landed) stamps the repository again at the start of the next drain pass, so its committed rows reach the API’s cached answers once the database is back; before, a retry that got no further never stamped, and a repository without a queue row kept them invisible for good. The deployment guide’s API host recipe now obtains the certificate before the TLS block exists (certbot’s nginx plugin tests the configuration first), and docs/schema.md documents aveloxis_ops.page_cache_replay. A fleet already running 0.29.125 needs only the stop, the migrate and the start.

0.29.125 fixes what Copilot’s review of PR #246, its CI and a full OWASP ASVS 5.0 review found, not a schema change. On an existing installation, make the processes’ directory and logs the owner’s alone once — chmod 700 ~/.aveloxis && chmod 600 ~/.aveloxis/*.log (new installations are created so; the logs hold sign-ins and administrator actions) — and chmod 600 the aveloxis.json if the start logs config file is readable by other users. A remote database configured with sslmode weaker than require now logs a warning at start. “Sign out everywhere” (the account page and POST /api/v1/me/sessions/revoke) needs a sign-in within web.session_idle_minutes, like the address change; an administrator demoted in the web console loses the privilege at the API on the next request. The monitor’s prioritize action refuses cross-site requests. Go dependency closures now run the host’s own Go toolchain only (no download of the toolchain a cloned go.mod names): a module whose go line is newer than the host’s Go logs ‘go toolchain invocation failed … GOTOOLCHAIN=local’ and its transitive closure is skipped — keep the host’s Go current. A Jira or mailing-list staged row that commits part of its writes and fails again now stamps its repository each time a retry gets further, and a stop between a mail row’s issue creation and its message’s upsert no longer leaves that issue unstamped. A request whose canonical URI is longer than 2,684 bytes is answered live and never cached (the saved re-warm list’s primary key could not hold it). The Nightly workflow, refused by GitHub since 0.29.107 for naming the runner context in a job’s env, is valid now and runs on its schedule once this reaches main. A fleet already running 0.29.124 needs only the stop, the migrate and the start.

0.29.124 gives the API’s saved re-warm list one owner, not a schema change. The first aveloxis api process to start on a database claims aveloxis_ops.page_cache_replay (a Postgres advisory lock on its own database session, so the api needs a direct or session-mode connection, not a transaction pooler; after a database restart the list is claimed again at the next re-warm pass); a second api process on the same database logs the saved re-warm list is held by another session and re-warms from memory alone. The list is also saved when the api stops. A Jira or mailing-list drain pass that wrote nothing for a repository (a staged row that keeps failing) no longer moves that repository’s cache state. A fleet already running 0.29.123 needs only the stop, the migrate and the start.

0.29.123 adds a Cache page to the administrator console, not a schema change. /admin/cache in the built-in web GUI (and three read-only administrator routes under /api/v1/admin/cache it reads) shows what the API’s caches hold and whether each cached answer of a repository is current. A fleet already running 0.29.122 needs only the stop, the migrate and the start.

0.29.122 adds one table so an API restart keeps its cache warm. aveloxis migrate --skip-views creates aveloxis_ops.page_cache_replay (empty; nothing to backfill): the API’s re-warm list, the cached answers visitors came back to, saved every re-warm pass and replayed when the API starts. The re-warm also recomputes such an answer when its window moves (once a week), not only after a collection. With api.response_cache_mb set and the re-warm on (api.cache_rewarm_seconds, 60 by default; the re-warm is off when the cache is), the first start of this release has an empty list, and after that an API restart rebuilds the answers visitors use without a warm-up run. A fleet already running 0.29.121 needs only the stop, the migrate and the start.

0.29.121 shares the comparison page’s repository series with the repository page, not a schema change. /compare takes each repository entity’s series from the repository-page cache (the answer of /api/v1/repos/{repoID}/metric-series for the same metric and window), so a repository compared and viewed is computed once until it is collected again; organization entities are computed as before. A fleet already running 0.29.120 needs only the stop, the migrate and the start.

0.29.120 makes the API’s cached answers durable until the repository is collected again, not a schema change. No cached answer expires on a timer any more: collection.enrich_interval_minutes paces only the contributor enrichment sweep, and a name it fills in shows after the repository’s next collection. Fleet-wide contributor operations — contributor merges (merge-cntrb-collisions, migrate-cntrb-ids), identity backfills (backfill-identities) and the enrichment, search, affiliation and breadth sweeps — show in a repository’s cached answers at its next collection. The default window of /timeseries, /contributors/top and /contributions/* starts two years before the Monday (UTC) that starts the current week, so it moves once a week (Changes for API clients). The runs outside a collection that write a repository’s data — the leftover-staging drain, heal-messages, heal-commit-daily, dedup-repos and reconcile-repos, the gone-recheck sweep, the mailing-list and Jira drains, backfill-mailing-list-projection and backfill-jira-identities — now mark the repositories they write, so the cached answers follow them. A fleet already running 0.29.119 needs only the stop, the migrate and the start.

0.29.119 adds one read-only API route, not a schema change. GET /api/v1/repos/{repoID}/metric-series answers one temporal metric’s series for one repository (the body /compare answers for that repository alone) from the repository-page cache, so a repository page’s metric charts are computed once per collection (or when their window moves) instead of every collection.enrich_interval_minutes and at every reset of the comparison’s shared series cache (API guide). A front end that still draws them from /compare keeps working. A failed lookup of a compared entity’s label is now logged. A fleet already running 0.29.118 needs only the stop, the migrate and the start.

0.29.118 keeps GitHub repository traffic and collects GitLab’s daily clone counts. GitHub serves a repository’s views, clones, popular paths and referrers for 14 days only; the migrate adds five empty tables to aveloxis_data (repo_views, repo_traffic_paths, repo_traffic_referrers, repo_traffic_windows, repo_traffic_weeks) and changes no existing table, and each repository’s history starts at its first collection on this release (nothing older is backfilled). The stored history is served at GET /api/v1/repos/{repoID}/traffic (API guide). Reading traffic needs push access with a classic token, or the “Administration” repository permission set to read with a fine-grained token; a key without it gets 403 on the daily clones read, and the collection logs one Info line skipping traffic endpoints and records no error. Any other traffic error now fails the repository’s job as a releases error does (success=false, the first error’s message in last_error, which for a traffic error starts clone stats: or traffic <endpoint>:); before this release a failed daily clones read was dropped silently. A key that can read traffic makes five more GitHub requests per repository and collection. GitLab repositories get no views, paths, referrers, windows or weeks, but a key with at least the Reporter role (and read_api for a personal token) now gets the project’s daily HTTP clone and pull counts for the 30 UTC days GitLab serves: repo_clones rows with unique_clones NULL, a day GitLab omits stored as 0 and data source GitLab API. That is one more request per GitLab project and collection; a 403 or 404 logs the same Info line and records no error, and any other error, such as a 5xx, is recorded as clone stats: ... and fails the job as above, which is new for GitLab. Nothing older than those 30 days is backfilled. A fleet already running 0.29.117 needs only the stop, the migrate and the start.

0.29.117 changes nothing to run. A CI check is corrected; the binaries behave as 0.29.116’s. Nothing beyond the ladder.

0.29.116 changes nothing to run. The api’s home-page cache no longer starts a redundant second background reload right after one finished. Nothing beyond the ladder.

0.29.115 corrects the reverse-proxy recipe. With api.require_auth true, the GUI host’s /api/ must reach the web process, which attaches the signed-in session’s Bearer token. The earlier recipe in Production Deployment sent /api/ straight to the api port, which answers 401 to every browser outside exempt_cidrs. If your nginx site has that location ^~ /api/ block, remove it (the web’s location / then takes /api/), and give scripts that call the API with their own token a host of their own, as the guide’s second server block shows (aveloxis-gui’s host forwards /api/ to the API itself and needs no change). Nothing else to run beyond the ladder.

0.29.114 changes two answers, not the schema. Copilot’s review of 0.29.113: “Sign out everywhere” (POST /api/v1/me/sessions/revoke) is never refused by a spent request quota and is not counted, like sign-out, and a long login in the web GUI’s navigation bar wraps instead of widening the page. Nothing to run beyond the ladder.

0.29.113 adds one column and changes session rules. aveloxis migrate --skip-views adds last_used_at to aveloxis_ops.user_session_tokens (the standard ladder; nothing to run by hand). From this release a browser session of the web GUI is signed out after web.session_idle_minutes without a request (30 by default; set it in aveloxis.json to change it, up to 1440; the front end’s /auth/token tokens are not subject to it), the cookies are __Host- prefixed outside dev_mode (every browser signs in again once after the deploy: the old cookie names are no longer read), a sign-in replaces the session the browser already carried, changing the account e-mail needs a sign-in within that bound (the API’s POST /api/v1/me/email answers 403 reauthentication_required otherwise), the account page lists and ends an account’s sessions (GET /api/v1/me/sessions, POST /api/v1/me/sessions/revoke) and an administrator ends any account’s (the Users page, POST /api/v1/admin/users/{userID}/sessions/revoke), both processes send Strict-Transport-Security (do not add a second one in nginx), and sign-ins and per-address 429s are logged. The new Security page is the written record an assessment asks for.

0.29.111 changes documentation only. Stage 5 of the admin-console program: the Administration section of the web GUI guide, the serve monitor’s loopback-only note, the GitLab-group parity statement, the API design convention on the value field, and the REST API guide trimmed to prose with pointers into the reference. Nothing to run beyond the ladder.

0.29.110 changes how the built-in web GUI reaches the API, not the schema. Stage 4 of the admin-console program: the web process attaches a Bearer token of the signed-in session to every /api/ request it forwards (minted on the session’s first such request, held in the web process, revoked by sign-out) and forwards no cookie, so api.require_auth can be true with this GUI and its pages are scoped to the account — and counted against the account’s session request quotas (shadow by default). A web restart mints new tokens on the next request of each session. Nothing to change in aveloxis.json.

0.29.109 adds the administrator console to the built-in web GUI, not to the schema. Stage 3 of the admin-console program: Approvals (with forge-ID adoption), Users, Capacity, API tokens and Collections pages, linked from every page for administrators; the /monitor page sorts by column and shows cached counts; an administrator opens any group read-only; the compare page draws the API’s /compare (the “100%” mode is gone). For API clients: GET /api/v1/admin/monitor/queue accepts page_size (at most 100), an over-long q or an absurd page answers an empty page instead of a 500, the envelope carries warnings when a batched read failed, collection names and descriptions and the adoption note are bounded in characters, and a position outside int4 is a 400. The full list is “Changes for API clients” in the REST API guide. 0.29.108 before it changed nothing an operator runs (the deploy ladders are built by one helper and frozen by a digest).

0.29.102 adds two columns, moves web sessions into the database, and must be deployed with aveloxis-gui’s matching release. Stage 2 of the admin-console program. Run aveloxis migrate --skip-views (two columns and one index on aveloxis_ops.user_session_tokens; an index built CONCURRENTLY). What changes for people: web sessions are database rows (24 hours from sign-in; a restart of aveloxis web no longer signs everyone out), administrator privilege is read from the account’s row on every request (a demotion takes effect at once), and signing out of the web GUI ends the API tokens that sign-in minted. E-mail confirmation links outstanding at the deploy stop working (they are stored hashed from this release; the owner requests a new one from the account page). POST /auth/token and POST /logout are POST-only — deploy aveloxis-gui’s matching release with this one (its login page and sign-out send POST; check-setup.sh requires 0.29.102). web.session_secret is removed from the configuration (nothing ever read it); a file that still carries the key loads, and from 0.29.106 logs a warning naming it at start. Every POST to the web process is checked for its origin: if aveloxis-gui runs on another origin, web.spa_url must name it (it already should, for the sign-in return), and a reverse proxy must forward the public Host ($host, or $http_host on a non-default port — the guard compares the browser’s origin, port included). The pages now load their scripts and Chart.js from the web process itself (/static/; no CDN) and answer with a Content-Security-Policy and a framing refusal: a reverse proxy that sets its own CSP should let the web process’s through or match it.

0.29.101 tightens the two GitLab URL rules, not the schema. gitlab.base_url must now end in /api/v4 (the REST client appends paths to it as given; a bare https://gitlab.example.org loaded on 0.29.100 and sent every GitLab REST call to the wrong path) and web.gitlab_base_url must be the instance’s web URL (https://gitlab.example.org, not its /api/v4 URL; no query, fragment or user name): either refuses every process at start, naming the field. The defaults and any working value pass. Nothing else to run beyond the ladder.

0.29.100 changes two configuration rules and several API answers, not the schema. Stage 1 of the admin-console program. Before starting, check two blocks of aveloxis.json. The mail block: a half-filled one (gmail_user without gmail_app_password or the reverse, a user that is not an address, a password that is not a 16-letter App Password, a site_url that is not a URL) now refuses to start every process, naming the field — it used to run with mail off and a WARN. And gitlab.base_url: a value that is not an absolute http(s) URL of the instance’s API (no scheme, a query, a user name) now refuses to start as well — the default and any working value are unaffected. The API: a group that is not the caller’s answers 404 on every group route, as a group that does not exist does; a rejected group refuses an add with 409; every refusal body on the group, decision, role and forge-ID routes is JSON {"error": "…"}; a paste’s lines that are not repository URLs come back in invalid while the rest go through; a collection that does not exist is a 404 and a duplicate collection name a 409; the legacy pending-group approval (GET /admin/groups/pending and the group decision route’s approve arm) is gone — POST /admin/groups/{id}/reject remains, and the add-request decisions are unchanged. Administrator privilege is decided from the users row at every operation: an API token never administers, and an administrator’s open session loses its power the moment the row is demoted. GitLab groups registered in user groups are now enumerated by serve, by full group path, on the configured gitlab.base_url instance when GitLab API keys exist; an organization URL on that instance is registered as a GitLab group, and a repository URL on it is collected as a GitLab repository, whatever its host name says; a GitLab group on another instance (or on any instance when gitlab.base_url is empty) is refused at the add, as a GitHub organization off github.base_url is. The web GUI and the CLI loaders list no organizations themselves any more (aveloxis web loads no API keys; add-repo <org> registers and serve lists). A new install seeds the capacity refusal contact from mail.operator_email (or leaves it empty); a deployment seeded earlier keeps its address. Each changed route carries the reason in the REST API guide, whose “Changes for API clients” sections cover 0.29.99, 0.29.100 (added with 0.29.111), 0.29.102, 0.29.109 and 0.29.110. aveloxis-gui’s check-setup.sh requires 0.29.100 from this release on.

0.29.99 changes API answers, not the schema. Stage 1b of the admin-console program: an unknown repository id is a 404 on every repository route (it was a 403 for tokens and sessions) and an id of 0 or less a 400; a date that does not parse is a 400 instead of a silent default; Augur’s end_date includes its day and the Augur commit metrics count by the UTC day of the author timestamp; empty lists are []; the Augur catalog routes are scoped for API tokens; /watchers carries the snapshot history; /repos/stats?ids= refuses an entry that is not an id and its rows carry archived, forked_from and last_activity_at; the searches match % and _ literally. The full list, with the reason for each, is “Changes for API clients” in the REST API guide. Nothing to run beyond the ladder; the repository-page cache re-keys itself on the version. aveloxis-gui’s check-setup.sh requires 0.29.99 from this release on.

0.29.98 is a maintenance release. Nothing changes for operators: the web GUI’s handlers now live in files by concern and its page templates are embedded files (the pages render byte for byte as before), the serve monitor on 127.0.0.1:5555 no longer registers the POST /api/repos route that only answered with the CLI command to run, and unused store and collector functions were removed. No schema change; the migrate’s step order is unchanged.

0.29.97 fixes the migrate on databases born between 0.29.82 and 0.29.88. On those, aveloxis migrate on 0.29.89 through 0.29.96 could log schema migration error step="v0.29.82 seed api_token_settings" … null value in column "default_rate_limit_per_hour" … (SQLSTATE 23502): the table’s rollback-mirror column is NOT NULL without a default on that schema generation, and the seed had stopped supplying it. The seed now supplies the shipped hourly allowance and the column gets the default the current schema declares. If your migrate logged that error, run aveloxis migrate --skip-views again on this version; no other step was affected and nothing is lost. No new schema object.

0.29.96 names the quota in a refused addition’s log line. The line organization repositories not linked, written when the organization reconcile cannot link everything, used to say the account’s repository quota was reached whatever refused; for an organization a user registered without an administrator’s decision, the daily additions quota refuses through the same path. Every line that logs a refusal (that one, the four once-a-day repository quota / daily additions quota lines, the two sign-up quota lines and the API’s two request refused lines, for a quota and for the auto-add cap) now carries the same fields: quota=, used=, allowed= and wanted=. The old names were reach=, added_today=, adding= and signups_today=; adjust any log filter on them. The API’s per-request rate quotas (requests_per_hour and the token quotas) are the one exception: their refusal is the once-per-window quota reached — refused until its window ends line, unchanged, which carries quota=, allowed=, used= and window_ends= instead of wanted=. No schema change.

0.29.95 keeps aveloxis data-test out of your clone folder. Each side of a data-test run now clones its repositories under the run’s work dir (<work-dir>/clones-released and <work-dir>/clones-new). Before, both sides inherited the deployment’s repo_clone_dir, and because a clone is stored by the repository’s row id in whichever database the binary talks to, a scratch run replaced the deployment’s own repo_1, repo_2, … with other repositories’ clones. Nothing to do by hand on a host where that happened: the collector checks a clone’s origin URL before reusing it, logs stale clone detected: origin URL mismatch, re-cloning, and re-clones the right repository, so the cost was one re-clone per affected repository, not wrong history. No schema change.

0.29.94 saves the API-token defaults whole. On the admin page, the hourly and daily allowances and the lifetime a new token gets are now saved in one transaction: before, each allowance was committed on its own, so a failure part-way (a lost connection, a refused write) left a mix the administrator never submitted. No schema change; a fleet already running 0.29.93 needs only the stop, the migrate and the start.

0.29.93 closes six smaller defects. The migrate rebuilds the commits and repo_labor duplicate-guard indexes when an earlier interrupted build left them INVALID (it took them as present before). Check before the migrate with SELECT c.relname, i.indisvalid FROM pg_index i JOIN pg_class c ON c.oid = i.indexrelid WHERE c.relname IN ('idx_commits_repo_hash_file', 'uq_repo_labor_natural_key'); — a false means this migrate rebuilds that index, which for commits is a full duplicate scan plus a concurrent build (hours on a large fleet), so plan the window; dropping invalid index from prior interrupted CONCURRENT build in the migrate log confirms it ran. The scancode worker refuses repository URLs git must not be handed. A dependency scan whose snapshot clear fails stops for that cycle instead of duplicating rows. aveloxis prioritize and aveloxis recollect refuse a URL that is not tracked instead of creating a repository row. The welcome email describes per-addition approval, and several dropped errors are now logged. No schema change: from 0.29.92 the upgrade is the stop, aveloxis migrate --skip-views and the start; from an older release, the 0.29.92 notes below apply in the same one migrate.

0.29.92 fixes a cross-site scripting hole in the built-in web GUI. The repository page, the compare page and the repository search on the dashboard and group pages wrote license names, ScanCode file paths and copyright lines, and repository names from the API into the page as markup, so text a package author or repository owner controls could run script in a signed-in viewer’s browser. They now render it as text, and /compare?repos= keeps only repository ids, at most five. No schema change: from 0.29.91 the upgrade is the stop, aveloxis migrate --skip-views and the start; from an older release, the 0.29.91 notes below apply in the same one migrate.

0.29.91 counts automatically approved organizations and never refuses sign-out. Repositories an organization scan links now count toward repo_links_per_day unless an administrator approved that organization for that group. Signing out is never refused by a spent quota. The api logs a warning naming api.trusted_proxy when a request from a loopback or exempt address carries X-Forwarded-For and the key is empty. Removing a repository that is not in the group answers 404. Automatically approved pastes count toward repo_links_per_day. The web’s /api proxy now forwards only the client address it resolved under web.trusted_proxy, so set both web.trusted_proxy and api.trusted_proxy to 127.0.0.1 when nginx, web and api share a host. No schema change: from 0.29.89 or 0.29.90 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.90 adds or refuses a paste of repositories whole. A paste of repositories by an account that is not an administrator is now added whole or refused whole, even when the same account adds from two places at once: the repositories already tracked are linked and the new ones recorded for approval in one step. No schema change: from 0.29.89 the upgrade is the stop, aveloxis migrate --skip-views and the start; from an older release, the 0.29.89 notes below apply in the same one migrate.

0.29.89 adds fair-use quotas. Each signed-in account, API token, account’s repositories and network address’s new accounts has a quota (see the configuration guide, “Capacity”, and the API guide, “Rate limits”). The migrate adds seven tables to aveloxis_ops and seeds one row per quota, adds api_tokens.rate_limit_per_day, and moves the API-token default allowance into the token_requests_per_hour quota (a value you saved is kept, except the old default 5,000, which becomes the new 1,000: if you chose 5,000 on purpose, set it again on the Capacity page; the old api_token_settings column stays, kept current, so an older release still reads its token default). Every new quota starts in shadow: counted and logged (quota reached (shadow) for requests, repository quota (shadow), daily additions quota (shadow) and sign-up quota (shadow) for the others), never refused, until you turn it on in the GUI’s Capacity page. The 0.29.88 session ceiling is replaced by them, so no signed-in session is refused until you do. A new API token’s default is now 1,000 calls an hour. Each process logs capacity quota in force for every quota at start. Behind nginx, set web.trusted_proxy, or every sign-up counts as nginx’s address (the web logs a warning naming it). Sign-up addresses are kept only as a hash that changes every UTC day; to keep each new account’s address sealed for a year for a lawful request, see Sign-up address escrow. Rolling back to 0.29.82–0.29.88 needs one cleanup, because older releases never delete the sign-up quota’s daily secret: the deploy checklist gives the command. From 0.29.88 the upgrade is the stop, aveloxis migrate --skip-views and the start.

The migrate seeds the contact address that every refusal names as aveloxis.io@gmail.com, the Aveloxis project’s address, on every deployment. If you host Aveloxis yourself, set your own address on the Capacity page (or with POST /api/v1/admin/capacity/contact from an administrator’s session; see the API guide, “Capacity (admin)”) before you enforce any quota; otherwise heavy users of your host are told to write to the Aveloxis project.

0.29.88 tags stored token hashes, scopes batch stats and bounds group writes. Stored session and API-token hashes now carry their algorithm (sha256$); the migrate tags the existing ones. An API token can no longer change its owner’s e-mail address; a group add carries at most 1,000 URLs and a group name at most 200 characters; batch stats (/repos/stats?ids=) are scoped for every non-administrator, sessions included; an API token is counted against its own allowance also from an exempt network (api.exempt_cidrs); and refusals are logged once a minute per user and kind. This release also added an hourly ceiling on signed-in sessions, which 0.29.89 replaced with requests_per_hour and requests_per_day. One-time sign-out: a database whose last migrate was by 0.29.82–0.29.86 signs every API session out once at this migrate (log line signed every API session out once, with the count), because a session an older binary wrote there could be stored raw but marked hashed, and no row says which; users sign in again. A database that never ran those releases signs nobody out. One case is not detected (a database that ran 0.29.82–0.29.86, then a release older than 0.29.82, then 0.29.87): if that can be true for yours, the deploy checklist gives the one statement that signs everyone out by hand. Stop every process before this migrate: an older web or api still running would write untagged rows the new api cannot read until the next migrate. Rollback hazard: after this migrate, going back to any of 0.29.82–0.29.87 makes every session and API token unusable while the older binary runs, because it looks for the untagged hash; upgrading again restores them, so do not re-grant API tokens. From 0.29.87 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.87 removes session tokens an older binary wrote. Every migrate from 0.29.87 on deletes a session token that an older binary wrote (after a rollback, or by a process still running the old version during the deploy) and logs removed session tokens an older binary wrote with the count; those users sign in again once. Below 0.29.82 such tokens were stored in plaintext, and they are no longer left behind. One case cannot be told apart: a session a pre-0.29.82 binary created during a rollback from 0.29.82–0.29.86, before this release first migrates, stays in plaintext and no longer signs in; it is deleted at the first sign-in of anyone after it expires (30 days after it was created). No schema change: from 0.29.86 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.86 keeps every API token to its owner’s groups. An API token reads only the repositories in its owner’s groups, also one granted to an administrator (before, such a token read every repository). A request for any other repository is refused with 403 and the way to add it (its URL, the owner’s groups, and the calls to add it to a group or create one), where since 0.29.82 the repository was added to Shared with Me; a script that relied on that must add the repositories to a group first. The batch stats route (/repos/stats?ids=) likewise answers a token only for its owner’s groups. Signed-in browser sessions are unchanged. No schema change: from 0.29.85 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.85 logs heavy signed-in sessions. An account whose session makes more requests in an hour than an API token is allowed is logged in api.log (signed-in session made more requests this hour than an API token is allowed), and again at each doubling; nothing is refused (0.29.89 replaced this line with the session quotas). Sign-out and the expired-session sweep also remove an old Augur refresh_tokens row that pointed at the session (before, such a session could not be signed out), and cross-origin browser clients can read the rate-limit headers. No schema change: from 0.29.84 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.84 serves a known API token from a busy address. An API token validated in the last minute is counted against its own hourly allowance even when its address has just sent a bad token and run out of its per-IP limit; before, it got the address’s 429. No schema change: from 0.29.83 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.83 is built with Go 1.26.9 and golang.org/x/net v0.60.0 (security fixes in net/http, crypto/tls and HTTP/2). A star or comparison that links a repository already in your groups no longer counts against the per-user cap on repositories added by viewing them. No schema change: from 0.29.82 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.82 limits only callers without a token, hashes session tokens, and adds API tokens. A request with a valid session token is no longer counted by the per-IP rate limit; an API token granted on the GUI’s API tokens page is counted against its own hourly allowance (see the API guide, “Rate limits”). The migrate adds aveloxis_ops.api_tokens, aveloxis_ops.api_token_settings and user_session_tokens.token_hashed, and on the run that adds that column replaces every stored session token with its SHA-256 hash: nobody is signed out. Rolling back to an older release afterwards signs every API session out once (the older release compares the raw token). Signing out of the GUI now also ends the API session token. An API token never works on admin routes, lives at most 365 days and stops at once when revoked; a signed-in user can add at most 100 repositories an hour to “Shared with Me” by viewing them. From 0.29.81 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.81 credits a merged contributor’s commits to the contributor it was merged into. Top contributors read from the daily commit table used to drop the commits of a contributor that a merge had folded into another. No schema change: from 0.29.80 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.80 keeps a quiet collection with a broken clone incremental. An incremental GitHub or GitLab collection whose clone fails and whose API phase found nothing new now completes with the clone’s error in last_error, instead of failing as “no data collected”, so the next collection stays incremental while you fix the clone. A first or forced collection is still judged and still fails that way. No schema change: from 0.29.79 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.79 marks a repository’s daily commit counts incomplete when a collection adds commits it could not record completely. The page then reads the commits table for that repository until its next clean collection, instead of leaving the new commits out. No schema change: from 0.29.78 the upgrade is the stop, aveloxis migrate --skip-views and the start.

0.29.78 keeps two answers with the response cache off. With api.response_cache_mb unset (the default), the API again keeps the weekly time series and the top contributors in memory, up to 1,000 answers, as it did before 0.29.73; every other answer stays uncached until the setting is turned on. No schema change: from 0.29.77 the upgrade is the stop, aveloxis migrate --skip-views and the start; from an earlier version, follow the checklist, which includes 0.29.77’s steps.

0.29.77 builds two indexes and sets a storage parameter. The top-contributors issue and pull-request arms read a large repository’s rows one heap page at a time (repository 94609 on the production fleet: 505K pull-request rows and 58K issue rows, 2.5M page reads with the review and message arms, past nginx’s 120 s). The migrate builds idx_issues_repo_created_reporter and idx_pull_requests_repo_created_author CONCURRENTLY — the v0.27.4 (repo_id, created_at) indexes with the author column INCLUDED, so those arms are index-only; the plain forms are dropped — and sets autovacuum_vacuum_insert_scale_factor = 0.01 on the five large tables, because an index-only scan is only as good as the visibility map and insert-mostly tables left half their pages unmarked under the default. The ladder then runs, after the start and once serve is up, one manual VACUUM (ANALYZE) on messages, pull_request_reviews, pull_requests and issues to catch the map up (online; its duration scales with the table sizes and is not measured; a migrate that runs DDL — aveloxis migrate, or a serve start whose stamp is behind the binary — waits behind it per table, while a serve start on a stamped fleet fast-paths past the DDL). Run the ladder as usual.

0.29.76 changes nothing in the schema. After the fleet-wide heal-commit-daily, the repository page’s /stats still answered 503 on the largest repositories: its last-activity bound fell back to a live scan of the commits table whenever the stored bound could not be used — not yet filled (it fills at the repository’s next collection), or bogus and so read as unfilled (every kernel fork carries one commit dated 2085 and some one dated at the epoch; the next walk repairs the stored value). The activity bounds now read the first and last plausible day of the complete daily picture before any live scan. Run the ladder as usual.

0.29.75 adds one column (repos.commit_daily_complete_at, nullable, an instant ALTER) and, on the run that adds it, stamps every repository that already has daily commit rows (one indexed probe per repository; seconds on a fleet). From here the repository page’s commit readers use the daily table only for a stamped repository — a facade walk whose every commit was proven written stamps it, heal-commit-daily stamps what it fills, a walk that swallowed writes never does — and heal-commit-daily lists the unstamped ones; a repository whose only walk swallowed writes shows the fuller commits table until its next clean walk. Also: every answer that depends on who asks — the routes behind a signed-in session, a signed-in caller’s search, compare or entity search, the one-time Shared-with-Me notice, and every 401/403 — carries Cache-Control: private, no-store (/api/v1/me was the one Copilot named). Run the ladder as usual.

0.29.74 changes nothing in the schema. It exists so that every cached repository answer is recomputed: the answers’ validators carry the binary’s version, and 0.29.73’s late fixes — the daily commit table’s readers and the plausible-date bounds — changed answers without changing it, so a restart on 0.29.73 kept serving an old time series as a 304. Run the ladder as usual; a fleet that skipped 0.29.73 gets its steps.

0.29.73 adds a column and a table (repos.data_changed_at, stamped by every writer of a repository’s data so the API’s response cache can tell a changed repository from an unchanged one; and repo_commit_daily, the facade’s daily commit counts that the repository page’s commit answers read): run aveloxis migrate --skip-views on the way to it; api and web refuse to start until the stamp is current. Then aveloxis heal-commit-daily --apply (row 20) fills the new table for repositories collected before — a background job, not a gate.

Migration steps are fail-closed (v0.19.4): a failing step fails the migrate — every remaining step still runs, the error lists every failed step, and serve refuses to start until they are fixed. Three steps are deliberately warn-only because they wait for operator action (a few other best-effort steps — the commits dedup index, the .git suffix cleanup, the tool_version default sweep — also warn rather than fail, but need nothing from you and simply re-run on the next migrate):

Log line

Since

What it means

Action

case-variant duplicate repos present; skipping unique index uq_repos_repo_git_ci

v0.25.32

Azure/x and azure/x both exist as separate rows; the backstop unique index cannot be built over them

aveloxis dedup-repos until it reports 0 pairs, then aveloxis migrate --skip-views again

repo_labor has duplicate natural-key groups — skipping uq_repo_labor_natural_key

v0.27.18

a writer bypassed the snapshot-replace path

investigate the duplicates, then re-run migrate

pg_trgm operator class gin_trgm_ops not found; skipping idx_repos_owner_name_trgm

v0.25.30 (the index itself is v0.18.30; it was fatal from v0.19.4 until the v0.25.30 skip)

the extension needs superuser to create

performance only (monitor search falls back to sequential scans); CREATE EXTENSION pg_trgm; as a superuser and re-run migrate

One more gate is fail-closed rather than warn-only — it waits for serve to be stopped:

Log line

Since

What it means

Action

repo_groups_list_serve carries duplicate (group, list) rows but another aveloxis-serve is connected to this database — consolidating nothing

v0.28.18

duplicate list registrations exist and a running aveloxis serve (any one connected to this database other than the migrating process) could be draining one of them — the drain holds no lock, so no row is provably idle; the list UNIQUE index and the repo_groups consolidation wait

stop serve, re-run aveloxis migrate --skip-views, start serve

The first migrate across a large gap can take a while. The long poles (“ledgered” = recorded in migration_ledger after it completes and never walked again; the others re-run on every migrate but converge to a cheap no-op once their work is done):

Step

Since

Ledgered?

Cost

commits.cmt_author_platform_username backfill from resolved author ids

v0.25.6

yes

scales with the commits table (about an hour at ~470M rows)

repo_labor history rotation (latest snapshot only)

v0.27.7

yes

keyset windows over repo_labor_id; minutes to tens of minutes

GitLab force-full flag (main-path comment-drop heal)

v0.27.37

yes (v0.28.18) — seeded on upgrade from ≥ v0.27.37, so it does not re-run

instant; on a database last migrated BELOW v0.27.37 it flags every collected GitLab repo for one full pass on its next cycle

message-bridge data_source backfills + review-ref dedup

v0.27.15

yes

45–75 min on a fleet-scale messages table

repo_groups “Default” consolidation

v0.27.17

no — runs every migrate, a no-op once consolidated

seconds to minutes once the FK-child indexes exist (v0.28.15); the first pass deletes one row per duplicate group with a deferred FK check per child table

messages.msg_kind backfill + message_heal_worklist capture

v0.27.38

no — but fast-skips once its final step has run

keyset windows over msg_id (1h42m over 62M message ids, measured on the 2026-08-26 aveloxis DB migrate); populates the worklist that heal-messages consumes

PR meta-link backfill (meta_head_id / meta_base_id)

v0.27.104

yes

tens of minutes over tens of millions of PR ids

Configuration compatibility

An older aveloxis.json keeps working: unknown keys are ignored and every new key takes its documented default (see Configuration) — with one class of exception: a value a release starts to validate is refused at load, by aveloxis migrate and every process alike, so check the table before step 3. Defaults that changed, and values now refused — check whether you relied on the old behavior:

Key

Old default

New default

Since

collection.scancode_shutdown_grace_minutes

30

0 — scancode subprocesses are killed immediately on aveloxis stop

v0.23.7

collection.pr_child_mode, collection.listing_mode

rest

graphql (REST stays available as an escape hatch)

v0.26.0

collection.matview_rebuild_day = "disable"

silently fell back to Saturday

honored (alias of disabled)

v0.27.96

collection.vuln_scan_transitive

off

on — lockfile closures + transitive findings + real SBOM graphs

v0.27.136

collection.archived_recollect_multiplier

(every repo on the same cadence)

6 — archived repos recollect six times less often

v0.28.1

api.trusted_proxy

any text; a host name, a CIDR or a non-canonical spelling silently never matched

must be an IP address in canonical form (127.0.0.1, lowercase compressed IPv6); anything else is refused at load, naming the canonical spelling

v0.29.73

api.front_end_secret

—

a value without api.trusted_proxy, or shorter than 32 characters, is refused at load

v0.29.73

Two behavior changes that need no configuration but are worth knowing: since v0.27.139 incremental collection anchors since on the previous round’s last_collected (the pre-v0.27.139 now − days_until_recollect window silently skipped items last-updated between rounds), so the first post-upgrade cycle per repo is transitional and heal-collection-gaps below covers the history; and path values in aveloxis.json are never $HOME-expanded — use absolute paths.

Operator-run heals, with the release that introduced each

Run every row whose Since cell names any release newer than the version you are coming from, in table order. Several rows list later extensions in parentheses — row 4 gained pull_request_repo owners in v0.27.104 and row 6 gained platform_repo_id in v0.27.102, both long after the row’s first release — so comparing against the first version alone would skip a repair that does apply to you. Every command is idempotent and resumable; re-running is always safe. Rows marked fleet-scale take hours on a 100K-repo fleet and minutes on a small one.

Order

Command

Since

Repairs

When

1

aveloxis upgrade-tools

v0.23.6 (scc pinned v0.29.144)

re-installs scc / scorecard / scancode and injects typecode-libmagic into the scancode venv (the monthly auto-update does the same); from v0.29.144 installs the one scc version Aveloxis validates and fails when another scc comes first on PATH

any install that predates v0.29.144; run it with the processes stopped

2

aveloxis dedup-repos --dry-run, then aveloxis dedup-repos until 0 pairs

v0.25.32 (index precondition v0.28.18)

case-variant duplicate repositories; the migrate skips the uq_repos_repo_git_ci backstop until they are drained

only when the migrate warns; needs the new binary’s migrate to have built the email_message indexes first (it refuses otherwise); re-run aveloxis migrate --skip-views afterwards

3

event-cohort SQL (below)

v0.26.3

PR events silently dropped on quiet repos by the two-pass ETag self-alias bug; flags each affected repo for one full recollect

any repo collected before v0.26.3

4

aveloxis backfill-identities --phase 1, then --phase 2, then --phase 3

v0.26.5 (keyset batching v0.26.6; pull_request_repo owners v0.27.104)

assignee / reviewer / PR-meta / PR-repo cntrb_id and issues.closed_by_id, all previously unpopulated

yes; fleet-scale — use --batch-size 1000000 on large tables; run phase 2 after row 3’s recollects finish

5

aveloxis heal-messages until “nothing pending”

v0.27.38 (probe index v0.27.67; per-pass stamps v0.28.1; cursor walk v0.28.8)

message rows overwritten by the cross-kind platform-ID collision; the migrate captures the worklist, this consumes it

yes; it also drains each repo’s leftover staging — run aveloxis staging-stats first to size it

6

aveloxis backfill-repo-metadata

v0.27.79 (platform_repo_id v0.27.102)

description / languages / archived / forked_from, plus the rename-proof forge repository id

yes; ~1.6 h per 94K repos

7

aveloxis rewalk-whitespace --limit 5, then --workers 8

v0.27.105

cmt_whitespace and Augur-adjusted cmt_added / cmt_removed on historical commits (new collections compute them inline)

recommended; fleet-scale, marker-resumable, safe beside serve

8

aveloxis heal-collection-gaps --dry-run, then --workers 4 until 0 candidates

v0.27.140 (safe beside serve from v0.27.150)

issues / PRs lost to the pre-v0.27.139 blind-window since bug; visits only repos whose metadata counts exceed stored counts

required for any repo collected before v0.27.139; must run on the new binary; fleet-scale (~65 h at --workers 4 on a 140K-repo fleet)

9

aveloxis refresh-views

—

the materialized views over the healed data; add --aggregates (v0.28.18) to rebuild the dm_ tables too — that pass runs for hours at fleet scale

after rows 3–8 settle (the weekly rebuild also covers the views, and the dm_ tables unless matview_rebuild_skip_dm_aggregates is set)

10

aveloxis reconcile-repos

v0.27.39 (index precondition v0.28.18)

stranded repositories (a repos row with no queue row) left by upstream renames

periodic, until the residue drains; its consolidation arms skip with a warning (and the run exits nonzero) until the new binary’s migrate has built the email_message indexes

11

aveloxis mark-gone-repos

v0.28.1 (automatic recheck v0.29.7)

the explicit “gone” state for deleted or privatized repositories that still hold data; until v0.29.7 it was also the ONLY path that noticed a gone repository had come back — serve now re-probes the gone cohort every collection.gone_repo_recheck_days (28) on its own

optional — one run after the upgrade verifies the historical cohort immediately instead of over the first cadence

12

aveloxis heal-vulnerabilities

v0.27.4 (scan-side version normalization v0.27.72)

empty OSV stub findings and malformed-purl false positives

optional — the scheduled scans self-heal on their normal cadence

13

scripts/heal_mirror_links.sh --dry-run, then without it (it reads the database from aveloxis.json; a database name as an argument overrides it)

v0.28.20

linked_pull_request_id / linked_issue_id on GitHub-mirror mailing-list messages, NULL on every such row before v0.28.20

only if you collect Apache mailing lists; needs the migrate to have built the node_id indexes first (it refuses otherwise)

14

aveloxis load-apache-lists

v0.25.7 (forge-resolved lookups v0.27.152)

registers Apache dev@ / users@ lists for PMCs whose primary repository is in your catalog

only if you enable mailing-list collection — see below

15

aveloxis resolve-email-identities (--dry-run first)

v0.29.0

mailing-list sender attribution in one fast pass (email + canonical + alias chains; the alias arm alone reaches ~163K bodies nothing else can) — the hourly ticker does the same walk continuously afterwards

only if you collect mailing lists; minutes-scale even on a 12.6M-body fleet

16

aveloxis strip-quoted-history --limit 50000, then full

v0.29.0

msg_text_clean on historical mailing-list bodies (82.5% of list mail embeds the thread it replies to; new mail is stripped at ingest)

only if you collect mailing lists; ~30–45 min per 12.6M bodies, marker-resumable

17

aveloxis register-jira-projects, then aveloxis backfill-jira-identities

v0.29.0

Jira reporter + assignee identity and authoritative issue state, from the Jira Server API (comment-author identity is NOT in this one-shot — the ongoing Jira worker banks it as it collects each project’s comment blocks). Time-sensitive: the stable username this matches on does not exist in Jira Cloud’s API — run it before the ASF instance migrates

only if you hold Jira-projected issues (Apache mailing lists); ~2–3 polite hours for the full ASF corpus

18

aveloxis backfill-mailing-list-projection

v0.29.0

re-projects mailing-list messages a wrong-system drain pool processed without Layer-2 projection (the cross-system drain fix: 90%+ of Apache list mail was drained by the lore processor and never projected onto issues). The migrate itself restamps ml_system and resets the affected rows to pending; this command runs the keyed + thread passes over them

only if you collect mailing lists AND upgraded through an affected version; one clean run converges — rerun only after a mid-run error

20

aveloxis heal-commit-daily, then --apply

v0.29.73

repo_commit_daily (distinct commits per repository, UTC day and author email, which the facade writes after every completed walk) for repositories collected before 0.29.73: until a repository’s picture is complete (repos.commit_daily_complete_at, 0.29.75 — set by this command and by a walk whose every commit was proven written), its page’s weekly commit series and top-contributors commit counts read the commits table — one row per file per commit, scattered, minutes for a kernel fork — and the largest run past a reverse proxy’s 120 s timeout

any fleet upgrading to 0.29.73; one scan of each repository’s commit rows, largest first, each its own transaction; safe beside serve (a repository’s own next collection fills it anyway); interrupt and rerun freely; run under nohup on a large fleet

19

aveloxis heal-libyear, then --apply

v0.29.57

libyear values stored as 0 for dependencies with no pinned version, whose libyear can never be computed; they become NULL, which averages and medians skip (before v0.29.57 an unknown libyear was stored as 0 and read as “up to date”)

any fleet upgrading to v0.29.57; the dry run is the default and reports the count; walks the table in primary-key windows, safe beside serve. Run aveloxis refresh-views (row 9) again afterwards, or explorer_libyear_summary keeps the old values until the next weekly rebuild. The same release changed that view’s definition, so a fleet crossing v0.29.57 also needs one plain aveloxis migrate (see above) if the checklist it followed used --skip-views. 8Knot’s dependency-age chart reads this table itself and keeps only libyear >= 0, so these dependencies leave that chart (it had counted them as up to date)

Skipped as instance-specific: the load-foundation-* importers (only if you track a foundation’s whole catalog) and register-mailing-list (curated non-Apache lists).

The v0.26.3 event-cohort SQL

Before v0.26.3 the issue-event and PR-event feeds paginated the same GitHub endpoint twice; on any repository where nothing changed between the two passes the second one got a 304 and the entire PR-event history was silently dropped. “Has PRs but no PR events” can be legitimate for small quiet repos, so this is deliberately not an automatic migration. Flag the affected cohort for one full recollect (lower the HAVING threshold to taste):

UPDATE aveloxis_ops.collection_queue q
SET force_full_collect = TRUE
FROM (
    SELECT pr.repo_id
    FROM aveloxis_data.pull_requests pr
    WHERE NOT EXISTS (SELECT 1 FROM aveloxis_data.pull_request_events e
                      WHERE e.repo_id = pr.repo_id)
    GROUP BY pr.repo_id
    HAVING COUNT(DISTINCT pr.pull_request_id) >= 50
) sub
WHERE q.repo_id = sub.repo_id
  AND q.force_full_collect = FALSE;

Each flagged repo re-walks its full event history on its next cycle.

Mailing lists on an existing catalog

aveloxis load-apache-lists never inserts repositories. For each Apache PMC it looks the PMC’s primary repository up in your catalog (URL variants first, then a github.com redirect probe for renamed projects) and registers that PMC’s lists only when the repository is found; everything else is counted as skipped. On a catalog that already holds some Apache repositories it therefore registers exactly those PMCs — load-foundation-core-repos is only needed if you want every PMC’s flagship repository imported first. A PMC whose sibling repository you track (say apache/arrow-rs without apache/arrow) is skipped, because mailing-list bodies attach to the PMC’s primary repository. The command needs outbound network access (Apache’s projects.json / podlings.json, lists.apache.org for list enumeration, and github.com for the redirect probe) and moves each linked repository into an Apache PMC: <slug> repo group.

aveloxis load-apache-lists --dry-run   # [pmc] list → repo_id per PMC you hold; the rest are "skipped"
aveloxis load-apache-lists

Then enable the worker in aveloxis.json and restart serve:

{
  "collection": {
    "mailing_list_enabled": true,
    "mailing_list_polite_email": "you@example.org",
    "mailing_list_backfill_months": 6
  }
}

mailing_list_polite_email is the contact address sent to the archive admins in the User-Agent; mailing_list_backfill_months bounds the first pass per list (0 = full history from each list’s first month).

aveloxis mailing-list-stats shows coverage as lists drain; aveloxis verify-mailing-list reports which classification and routing branches have produced rows. Run the mailing-list ingestion after the issue / PR heals above have settled: messages are projected onto the issues and pull requests already in the database, so a more complete catalog links more mail. Full design in Mailing-List Ingestion.

Recurring maintenance (not tied to a release)

A few checks are worth a calendar entry rather than an upgrade step. All but one run only when you run them; each exists because a fleet drifted without anyone noticing.

Cadence

What

Why

quarterly, and after any incident where someone raised a limit

run the pg_settings verification query in Verifying what is actually live and diff it against your recorded baseline

the settings that OOM a host (work_mem × max_connections × parallel workers) are the ones most often raised “temporarily” — see Drift is the failure mode

automatic since v0.29.7 (collection.gone_repo_recheck_days, 28)

aveloxis serve re-probes every “gone” repository once per cadence and re-enqueues the ones that answer 2xx; aveloxis mark-gone-repos is the on-demand form

a repository that returned 404/410/451 was dequeued, so no collection cycle ever looks at it again, and organizations do flip repositories private and back. On a release before v0.29.7 run the command quarterly by hand. The probe is an unauthenticated HEAD per candidate — it spends no API budget

quarterly

aveloxis reconcile-repos

stranded repos rows left by upstream renames (row 10 above) accumulate between upgrades too

yearly, or when disk is tight

index audit before dropping anything: SELECT indexrelname, idx_scan, pg_size_pretty(pg_relation_size(indexrelid)) FROM pg_stat_user_indexes WHERE relname = 'commits' ORDER BY idx_scan;

zero-scan indexes on commits can reach tens of GB, but the matview UNIQUE indexes read as zero-scan and are REQUIRED for REFRESH ... CONCURRENTLY — audit readers first, drop only email/affiliation indexes nothing queries

once, then whenever the network changes

confirm pg_hba.conf does not carry a host all all 0.0.0.0/0 line for a port that is reachable from the internet; firewall the port or restrict it to known networks

the PostgreSQL log’s password authentication failed lines from unknown addresses are the symptom

If you run more than one host against the database, the second host’s role is a decision, not an accident — see Dedicated scancode host.

Where the per-release detail lives

Per-release notes are on the GitHub releases page. Every command above is documented in Commands; recovery procedures for specific incidents are in Troubleshooting; the transitional v0.25.x distribution-tracking knobs and their deprecation horizon are in Configuration.