Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ jobs:
./guest/build.sh dist-guest
CREATE_DATA_IMG=1 ./guest/build.sh dist-guest

# Boots the guest just built in QEMU the way amdl's desktop app does,
# with amdl's own code (internal/wrapperhost, TestGuestBoot): the manager
# arguments must reach init, the guest must have network, download its
# pinned payload with the digest checked, and the manager must answer
# /status. A guest that does not is never uploaded for amdl to pin.
- name: Boot the guest
uses: AMDL-Web/apple-music-downloader/.github/actions/guestboot@dev
with:
checkout: dev

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Boot gate passes without booting guest

With checkout: dev, the action runs against a branch without TestGuestBoot. Its filtered go test succeeds with no matching test, so a broken guest can be uploaded.

Learn more

The external action is loaded from ci/gates, but its checkout input separately selects the amdl source branch for go test. At this revision, dev lacks TestGuestBoot; Go still exits successfully when a -run filter matches no tests. The upload step therefore runs without testing the built guest.

Example: A manager guest with nonworking network reaches this step. The action checks out dev, runs no boot test, returns success, and uploads that guest instead of rejecting it.

Recommended fix: Select ci/gates for checkout while the boot test exists only there. When moving to dev, verify that both the action and TestGuestBoot are present on that branch; make the action fail when the named test did not run.

Suggested change
checkout: dev
checkout: ci/gates

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

guest-dir: ${{ github.workspace }}/manager/dist-guest

- name: Upload guest assets
uses: actions/upload-artifact@v4
with:
Expand Down
Loading