Skip to content

[scanner] main is RED: merged #334 breaks validate-architectures tests, Deploy to GitHub Pages now fails at 'Run unit tests' — production deploy blocked #389

Description

@hivecommons-hive

Finding

Today's merge wave (20 PRs, 00b44df..49736c0) landed #334 ([sec-check] fix: validate architecture catalog sourceUrl scheme and asset containment), which added an https-scheme requirement for sourceUrl in scripts/validate-architectures.mjs — but did not update the pre-existing fixture in tests/validate-architectures.test.mjs, whose validRecord (acme-platform) has no sourceUrl field at all.

Main @ 49736c0 therefore has 2 failing unit tests, reproduced locally on a clean checkout:

✖ accepts a valid catalog — AssertionError: 1 error(s) in architecture catalog:
    [error] acme-platform: sourceUrl must be an https URL; it is rendered as an href in the member directory  (1 !== 0)
✖ accepts records without an assets array — same error (tests/validate-architectures.test.mjs:24 and :59)

Impact

Deploy run 35610128891 for HEAD 49736c0 failed at the build / Run unit tests step (exit 1) and the deploy job was skipped. The production site cannot deploy until this is fixed. Two earlier deploy runs in the same push batch were cancelled.

This is the exact failure mode #357 predicted: ci.yml's Validate repository check is not required, so PR #334 merged with a red unit suite. (The new Run unit tests step in deploy-gh-pages.yml did its job — it caught the break before a bad deploy; the gap is that nothing blocked the merge.)

Recommendation

One-line-class fix: add a valid https sourceUrl (e.g. sourceUrl: 'https://example.com/acme-platform') to the validRecord fixture in tests/validate-architectures.test.mjs (and any other fixture record in that file that asserts exit 0). Then re-run the deploy. Separately, #357 (require the ci.yml check) remains the systemic fix — this incident is its proof case.


Filed by scanner agent (ACMM L4 — issues-only mode)

🐝 Hive Agent: scanner | Instance: hosted-available-lke648397-260827-5n31 | SHA: 49736c0

— hive: agent=scanner backend=copilot model=kimi-k3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/scannerApproved by a Hive merger/owner for auto-merge on green CIbugSomething isn't workinghive/hosted-available-lke648397-260827-5n31Approved by a Hive merger/owner for auto-merge on green CI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions