From e75482777d20ef0e59afb3758164a8f6bc377ae6 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sun, 18 Oct 2026 07:41:54 +0200 Subject: [PATCH] fix: leave aliases out of the fileless audit --- emulators/eden-nightly.yml | 3 +++ scripts/fileless_audit.py | 4 ++++ tests/test_fileless_audit.py | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/emulators/eden-nightly.yml b/emulators/eden-nightly.yml index dc84844d..4b77c6a7 100644 --- a/emulators/eden-nightly.yml +++ b/emulators/eden-nightly.yml @@ -4,6 +4,9 @@ alias_of: eden core_classification: alias source: "https://git.eden-emu.dev/eden-emu/eden" upstream: "https://git.eden-emu.dev/eden-emu/eden" +# git.eden-emu.dev answers 403 to anything that is not a browser, so the +# Codeberg copy is what keeps this profile checkable. +source_mirror: "https://codeberg.org/eden-emu/eden" source_commit: "8648c27cbb4c17b176076b09ac245271829cbd9f" profiled_date: "2026-08-11" core_version: "Git" diff --git a/scripts/fileless_audit.py b/scripts/fileless_audit.py index cc3f01e8..2c08bd44 100644 --- a/scripts/fileless_audit.py +++ b/scripts/fileless_audit.py @@ -59,6 +59,9 @@ def audit( document = yaml_load(handle) or {} if document.get("files"): return None + if document.get("type") == "alias": + # The same binary under another name: its files are its target's. + return None if str(document.get("exclusion_note") or "").strip(): # Someone read this one and wrote down why nothing is declared. The # check exists to find the profiles nobody has answered yet; an @@ -91,6 +94,7 @@ def _settled_before_reading(document: dict) -> bool: a declared data directory (see audit).""" return bool( document.get("files") + or document.get("type") == "alias" or str(document.get("exclusion_note") or "").strip() or document.get("data_directories") ) diff --git a/tests/test_fileless_audit.py b/tests/test_fileless_audit.py index d8985199..74196326 100644 --- a/tests/test_fileless_audit.py +++ b/tests/test_fileless_audit.py @@ -94,6 +94,12 @@ class TestFilelessAudit(unittest.TestCase): self._write(BASE + 'exclusion_note: "the directory is written, not read"\n') self.assertIsNone(self._run()) + def test_an_alias_has_no_files_of_its_own(self): + """eden-nightly is eden under another name; it was swept and its + forge's 403 failed the run.""" + self._write(BASE + "type: alias\nalias_of: other\n") + self.assertIsNone(self._run()) + def test_an_empty_answer_does_not_settle_it(self): self._write(BASE + 'exclusion_note: " "\n') self.assertEqual(len(self._run()), 1)