mirror of
https://github.com/openglow-org/forgefirm.git
synced 2026-09-27 16:51:12 -07:00
Manifest: the advisories are behavior, and forgeext's kit and packages are not
forgectrl embeds its advisory documents in the binary, serves them, and records the operator's consent to one by its hash, so an edited advisory is a changed consent. They are Markdown under docs/, which the non-behavioral list takes out of every fingerprint, and that left setup.extensions-consent's covers entry for docs/advisories/extensions.md selecting nothing: the enforced coverage lint fails on it (exit 1 on the dev image's manifest of 20260922225653), and an edited advisory moved no fingerprint at all. A BEHAVIORAL list now keeps forgectrl's docs/advisories/** in, ahead of the non-behavioral one. forgeext's recipe installs the binary and its init script and nothing else, so packages/ (the official packages, which carry their own acceptance artifact), sdk/ (the author's kit), template/ and tools/ are non-behavioral for the image: without that, an edit to the alignment page or the kit would make every exthost test stale on the next image. Proof: test_manifest passes its 25 cases, the new ones among them; the enforced coverage lint on the dev image's manifest of 20260922225653 exits 0 with no empty entry and nothing uncovered, where it exited 1 before. The whole forgetest suite ran its 451 tests; one, test_cloud_suite's test_pause_resume_passes_on_the_machines_lines, errored under the suite's load and passes 16 runs of 16 alone, at HEAD and on this tree alike: it replays a print against timed hooks.
This commit is contained in:
@@ -132,6 +132,18 @@ class CoverageReportTests(unittest.TestCase):
|
||||
t.covers))
|
||||
self.assertTrue(m.non_behavioral("forgectrl", "tools/devserver.py"))
|
||||
self.assertFalse(m.non_behavioral("grblhal-glowforge", "tools/devserver.py"))
|
||||
# forgeext's image content is its binary and init script: the packages, the kit, the template and
|
||||
# the host tools are not, and the host's sources are
|
||||
for path in ("packages/alignment/ui/index.html", "sdk/js/ffx-bridge.js", "template/manifest.json",
|
||||
"tools/ffx"):
|
||||
self.assertTrue(m.non_behavioral("forgeext", path), path)
|
||||
for path in ("src/api.c", "init/forgeext.init", "CMakeLists.txt"):
|
||||
self.assertFalse(m.non_behavioral("forgeext", path), path)
|
||||
# an advisory is a document forgectrl serves and records consent to by its hash: behavior, though
|
||||
# it is Markdown under docs/
|
||||
self.assertFalse(m.non_behavioral("forgectrl", "docs/advisories/extensions.md"))
|
||||
self.assertTrue(m.non_behavioral("forgectrl", "docs/SERVICES.md"))
|
||||
self.assertTrue(m.non_behavioral("grblhal-glowforge", "docs/advisories/x.md"))
|
||||
|
||||
def test_an_entry_that_selects_nothing_is_reported(self):
|
||||
man = helpers.make_manifest()
|
||||
|
||||
Reference in New Issue
Block a user