Skip to content

Smoke-test dispatch failed for 0.3.1-rc8 #397

Closed

Description

@vig-os-release-app

Smoke-test dispatch failed while orchestrating downstream release validation.

Dispatch metadata

Workflow context

Job results

  • validate: success
  • deploy: success
  • wait-deploy-merge: success
  • cleanup-release: success
  • trigger-prepare-release: failure
  • ready-release-pr: skipped
  • trigger-release: skipped
  • summary: failure

Manual cleanup guidance

  • Inspect deploy/release PRs and workflow logs before retrying.
  • If needed, close stale release PRs and delete stale release/<version> branch.
  • Re-dispatch using a new RC tag/version once root cause is fixed.

Activity

  1. added
    bug
    on Mar 20, 2026
  2. self-assigned this
    on Mar 20, 2026
  3. c-vigo commented on Mar 20, 2026

    @c-vigo
    Contributor

    Root Cause Analysis

    Error

    could not create workflow dispatch event: HTTP 403: Resource not accessible by integration
    (https://api.github.com/repos/vig-os/devcontainer-smoke-test/actions/workflows/248843304/dispatches)
    

    Failing step: trigger-prepare-release → step 5 "Trigger prepare-release" (gh workflow run prepare-release.yml)

    Root Cause

    The RELEASE_APP GitHub App lacks actions:write permission on devcontainer-smoke-test.

    The redesigned repository-dispatch.yml (PR #360, merged Mar 19) added trigger-prepare-release and trigger-release jobs that call gh workflow run to dispatch downstream workflows. The Actions API endpoint POST /repos/{owner}/{repo}/actions/workflows/{id}/dispatches requires actions:write on the calling token. The RELEASE_APP was only configured with contents, issues, and pull_requests read/write — actions was never included.

    Why was this not caught earlier?

    Run date Run ID Workflow version Outcome
    Mar 13 23072314370 Old (3 jobs: Validate, Deploy, Summary) Success — no workflow dispatch needed
    Mar 17 23206472689 Old (4 jobs) Deploy/"Run installer" failed → trigger-prepare-release never existed
    Mar 18 23234510565 Old (4 jobs) "Publish smoke-test release artifact" failed → same
    Mar 19 23304352254 New (9 jobs, post-redesign) Deploy path fixed → first time trigger-prepare-release ran → HTTP 403
    Mar 20 ×3 23333150355 / 23335664018 / 23339858643 New Same 403 on trigger-prepare-release

    The redesign shipped new orchestration jobs that exercise a permission (actions:write) the App never had. Earlier failures at the Deploy stage masked this gap.

    Documented vs Required Permissions

    docs/RELEASE_CYCLE.md documents RELEASE_APP with:

    Contents read/write, Issues read/write, Pull requests read/write

    The new orchestration additionally requires: Actions read/write (for gh workflow run / workflow_dispatch API).

    Fix

    1. GitHub App configuration (manual): Add Actions: Read and write to the RELEASE_APP installation on vig-os/devcontainer-smoke-test.
    2. Documentation: Update docs/RELEASE_CYCLE.md to include the new Actions read/write permission requirement.
    3. Re-dispatch 0.3.1-rc9 (or later) to validate the fix end-to-end.
  4. c-vigo commented on Mar 20, 2026

    @c-vigo
    Contributor

    Closing this as resolved.

    A downstream re-dispatch using the latest RC reached a different failure point, which confirms the original trigger-prepare-release dispatch-permission problem from this issue is fixed.

    Evidence run:

    Any new failure in that run should be tracked separately.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions