Merge pull request 'Boards: retain the release-owned CLI publication helper' (#381) from fix/board-publisher-release-cli into main

This commit is contained in:
unimatrix 2026-11-17 13:22:43 +00:00
commit 97c1138e1e

View file

@ -12,10 +12,9 @@ import subprocess
import tempfile
EXPECTED = {
'provision-system-boards.php': 'b866ac27a8caf56d89307d386a9eac4a977f524646f4b2251e750d24e2fe6b5c',
'system-board-membership.php': '8d9fc7126a229b2ca0f6033ec0647946e418558981af75eb731ef5526f63a15f',
}
FILES = ['system-board-provision.php', 'provision-system-boards.php', 'system-board-membership.php']
FILES = ['system-board-provision.php', 'system-board-membership.php']
PROMOTION_STATE = Path('/mnt/HC_Volume_107481500/dunegit/ci/promotion')
@ -56,7 +55,7 @@ def main():
if not (target / 'global.php').is_file():
raise RuntimeError('Native MyBB installation missing')
changes = publication_changes(source, target)
for name in FILES:
for name in [*FILES, 'provision-system-boards.php']:
subprocess.run(['php', '-l', str(source / name)], check=True, capture_output=True)
for name in ['test-system-board-policy.php', 'test-system-board-provision.php']:
subprocess.run(['php', str(source / name)], check=True, capture_output=True)
@ -89,7 +88,7 @@ def main():
'--env-file=/home/dunerealms/.config/dunerealms.env',
str(release / 'ops/system-board-snapshot.mjs')],
check=True, capture_output=True, text=True)
result = subprocess.run(['php', str(target / 'provision-system-boards.php')],
result = subprocess.run(['php', str(source / 'provision-system-boards.php')],
input=snapshot.stdout, check=True, capture_output=True, text=True)
# Existing native permission tests inspect real MyBB without editing users.
subprocess.run(['php', str(source / 'test-system-board-native.php')], check=True, capture_output=True)