core: publish self-hosted weekly dashboard and Proxmox deployment #20
@@ -13,4 +13,7 @@
|
|||||||
|
|
||||||
- [2026-11-15] Plain `git pull` can silently overwrite ignored files newly tracked upstream. The Proxmox updater fetches then merges with `--ff-only --no-overwrite-ignore`; a real-Git regression covers ignored operator-state collisions.
|
- [2026-11-15] Plain `git pull` can silently overwrite ignored files newly tracked upstream. The Proxmox updater fetches then merges with `--ff-only --no-overwrite-ignore`; a real-Git regression covers ignored operator-state collisions.
|
||||||
|
|
||||||
|
- [2026-11-15] npm's local `--prefix` install writes `node_modules/.bin`; the Linux worker's `.local/bin/codex` requires a user-owned global prefix. The regression installs an offline synthetic package with real npm.
|
||||||
|
- [2026-11-15] Compare copied/archived license bytes with source bytes. `read_text()` normalizes Windows CRLF while ZIP reads retain it; explicit LF/CRLF fixtures cover both checkouts.
|
||||||
|
|
||||||
## Archive
|
## Archive
|
||||||
|
|||||||
@@ -11,5 +11,5 @@
|
|||||||
- Desktop/Stream Deck retain `snapshot.json` (D9); the optional authenticated server/worker transport is separate (D14).
|
- Desktop/Stream Deck retain `snapshot.json` (D9); the optional authenticated server/worker transport is separate (D14).
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
- `gotchas.md` — 8 entries — CLI login, Proxmox isolation/update safety, documentation output boundaries and Avalonia tooltips.
|
- `gotchas.md` — 10 entries — CLI login, Proxmox/npm/update safety, publication checks and Avalonia tooltips.
|
||||||
- `architecture.md` — 7 entries — Fleet analysis, attribution, migration, authentication, durability, Proxmox and publication.
|
- `architecture.md` — 7 entries — Fleet analysis, attribution, migration, authentication, durability, Proxmox and publication.
|
||||||
|
|||||||
+19
-4
@@ -14,6 +14,21 @@ import publish
|
|||||||
|
|
||||||
class PublishTests(unittest.TestCase):
|
class PublishTests(unittest.TestCase):
|
||||||
def test_published_manifest_uses_shared_version(self):
|
def test_published_manifest_uses_shared_version(self):
|
||||||
|
self.check_package()
|
||||||
|
|
||||||
|
def test_license_copy_preserves_lf_and_crlf_bytes(self):
|
||||||
|
for newline in (b'\n', b'\r\n'):
|
||||||
|
with self.subTest(newline=newline), tempfile.TemporaryDirectory(prefix='finaltoken-license-') as temporary:
|
||||||
|
root = Path(temporary)
|
||||||
|
(root / 'Directory.Build.props').write_text('<Project><Version>1.2.3</Version></Project>')
|
||||||
|
(root / 'LICENSE').write_bytes(newline.join([b'Synthetic MIT notice', b'Copyright fixture', b'']))
|
||||||
|
plugin = root / 'src/FinalToken.StreamDeck/plugin'
|
||||||
|
plugin.mkdir(parents=True)
|
||||||
|
(plugin / 'manifest.json').write_text('{"Version":"0.0.0.0"}')
|
||||||
|
with patch.object(publish, '__file__', str(root / 'tools/publish.py')):
|
||||||
|
self.check_package()
|
||||||
|
|
||||||
|
def check_package(self):
|
||||||
def fake_publish(command, **kwargs):
|
def fake_publish(command, **kwargs):
|
||||||
stage = Path(command[command.index('-o') + 1])
|
stage = Path(command[command.index('-o') + 1])
|
||||||
stage.mkdir(parents=True)
|
stage.mkdir(parents=True)
|
||||||
@@ -29,11 +44,11 @@ class PublishTests(unittest.TestCase):
|
|||||||
self.assertIsNotNone(version)
|
self.assertIsNotNone(version)
|
||||||
manifest = json.loads((output / 'streamdeck/de.finalfactory.finaltoken.sdPlugin/manifest.json').read_text(encoding='utf-8'))
|
manifest = json.loads((output / 'streamdeck/de.finalfactory.finaltoken.sdPlugin/manifest.json').read_text(encoding='utf-8'))
|
||||||
self.assertEqual(version + '.0', manifest['Version'])
|
self.assertEqual(version + '.0', manifest['Version'])
|
||||||
license_text = (Path(publish.__file__).resolve().parent.parent / 'LICENSE').read_text(encoding='utf-8')
|
license_bytes = (Path(publish.__file__).resolve().parent.parent / 'LICENSE').read_bytes()
|
||||||
self.assertEqual(license_text, (output / 'LICENSE').read_text(encoding='utf-8'))
|
self.assertEqual(license_bytes, (output / 'LICENSE').read_bytes())
|
||||||
self.assertEqual(license_text, (output / 'streamdeck/de.finalfactory.finaltoken.sdPlugin/LICENSE').read_text(encoding='utf-8'))
|
self.assertEqual(license_bytes, (output / 'streamdeck/de.finalfactory.finaltoken.sdPlugin/LICENSE').read_bytes())
|
||||||
with zipfile.ZipFile(output.with_suffix('.zip')) as bundle:
|
with zipfile.ZipFile(output.with_suffix('.zip')) as bundle:
|
||||||
self.assertEqual(license_text, bundle.read('LICENSE').decode('utf-8'))
|
self.assertEqual(license_bytes, bundle.read('LICENSE'))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user