Repository navigation
Description
Summary
Nothing watches for AVM Terraform modules whose fixes are merged but never released. The result is issues closed as ✅ fixed where the fix is not installable from the registry — in the two confirmed cases, for nearly a year.
This proposes a scheduled, deterministic workflow (plain bash + gh + jq, no LLM) that reports the gap.
Why this exists
AVM's Terraform issue-triage guide says:
Only close the issue, once the next version of the module was fully developed, tested and published.
GitHub's default behaviour contradicts that: merging a PR whose body says Fixes #N closes the issue immediately, whether or not a release follows. Following the rule takes deliberate effort, and AVM's docs never connect the rule to the label that represents the state — Status: Awaiting Release To Be Cut :scissors:, defined in avm-standard-github-labels.csv as "This is fixed in the main branch but not in the latest release, will be fixed with next release cut".
In practice the gap is usually small. Across 30 merged PRs carrying closing keywords in 10 repos, the median merge→release gap was 0 days (73% within 24h; portal-dashboard PR #103 merged 17:44, v0.2.0 published 17:56). There is no release automation in these repos — maintainers simply treat merge and release as one action.
But the tail is where users get hurt.
Measured today (188 non-archived terraform-azurerm-avm-* repos)
| finding | count | notes |
|---|---|---|
| Repos with no releases at all | 49 | not consumable from the registry at all |
| Repos with commits after their newest release | 138 of 139 | mostly chore: run avm pre-commit [skip ci] — not actionable |
| Closed issues whose fix is in no release | 2 confirmed | found in the 30 worst repos only; full sweep not yet run |
The two confirmed cases, each verified by hand:
terraform-azurerm-avm-res-desktopvirtualization-workspace#101— closed 356 days ago, fixing PR fix(repository-sync): retire legacy Copilot environment #102 still unreleasedterraform-azurerm-avm-ptn-avd-lza-managementplane#108— closed 328 days ago, fixing PR chore(deps): update hashicorp/azurerm requirement from >= 4.60.0, < 5.0.0 to >= 4.60.0, < 5.5.1 in /infra in the terraform group across 1 directory #109 still unreleased
Both read as "closed ✅" to their reporters.
Proposed check
Per repo, three API calls and zero judgment:
newest published release (sort releases by published_at)
-> compare <tag>...HEAD
-> drop chore / pre-commit / deps / [skip ci] commits
-> extract PR numbers from remaining commit subjects
-> for each PR, read closing-keyword refs from its body
-> report the referenced issues that are CLOSED
Report three tiers, highest first:
- Ghost-closed — closed issue, fix in no release. Highest value: a user has been told their bug is fixed and it is not shipped.
- Ageing unreleased work — functional commits unreleased past a threshold (suggest 90 days).
- Never released — the 49 repos above. Different problem, same sweep, worth surfacing once.
Implementation notes
- Output one rollup issue, updated in place. Per-repo issues would be ~88 notifications nobody reads.
- Reuse
repository-management/repository-sync/actions/avm-reposfor enumeration, archived-repo skipping and app auth. Same pattern asrepository-management-sync.yml. - Sort releases by
published_at; do not use/releases/latest. It disagrees on at least one repo:terraform-azurerm-avm-res-netapp-netappaccountanswers0.2.0(2025-05-09) whilev0.3.0(2025-12-02) exists, both non-draft and non-prerelease. Comparing against a stale tag makes released fixes look unreleased. (Same fix applied to the triage workflow in fix(triage): correct concurrency grouping and newest-release detection for dispatched runs azure-verified-modules-managed-files#42.) - Match on PR number, not merge SHA. Squash merges rewrite the SHA — on
netapp-netappaccount, PR fix(module): preserve stale version failure semantics #31'smerge_commit_shais not the commit onmain; the work landed under a different PR number entirely. Commit-subject PR numbers survived that; SHAs did not. - Filter the literal
#123. AVM's PR template containsCloses #123as placeholder text, which produces false positives on every repo.
Why not an agent
The computation has an exact answer and needs no reasoning. An LLM would add 30 AIC per repo ($100/sweep at 188 repos) plus a hallucination surface to what is a jq filter. The only genuinely judgment-based question — whether unreleased work is worth cutting a release for — belongs to the module owner, not a bot.
Caveat on scope
The "functional vs chore" classification above is approximate; an initial filter counted chore: pre-commit updates and fix: grept apply as functional. The chore patterns need tightening before the ageing tier is trustworthy. The ghost-closed tier does not depend on that classification and is solid.
Ghost-closed numbers come from the 30 worst repos only — a full sweep may find more.
Activity
myaschmitz commentedon Aug 27, 2026
Follow-up: measured how bot/chore noise actually behaves
Sampled 1,374 unreleased commits across 45 repos to test the filtering assumptions in the description above. Two findings change the design.
1. The noise is almost entirely bots
azure-verified-modules[bot]dependabot[bot]Top bot subjects:
chore: run avm pre-commit [skip ci](902),chore: sync managed files [skip ci](214),chore: pre-commit updates(159), thenchore(deps): bump ....2. Tier 1 needs no chore filtering at all
Of 146 merged PRs sitting in unreleased sets:
Bots never write
Fixes #N, because bots are not resolving a reported issue. So the ghost-closed tier — "a closed issue whose fix is in no release" — filters itself: achore: run avm pre-commitcommit has no closed issue attached to it.That is how the two confirmed ghost-closures surfaced out of 1,374 commits with no subject-line regex at all.
3. For tier 2, filter on author, not commit subject
The chore-pattern regex in the description is the wrong axis. It lets
chore: pre-commit updatesthrough, whilefix: grept applyappears as both a bot commit (9x) and a human one — so no subject pattern separates them.Filtering on author cuts 1,374 -> 23 in one step, and needs no maintenance as commit conventions drift.
Then a second pass on changed paths separates the remaining 23. Real module work touches
.tfoutside.github/:4. Template placeholders:
#456as well as#123AVM's PR template ships placeholder closing keywords and people merge without editing them. On
ptn-azuremonitorwindowsagentPR #32:Neither exists; that repo has one issue in total. Drop refs that fail to resolve rather than hardcoding the magic numbers — a dangling reference is the general case, and both of these are just instances of it.