Skip to content

gaze init --ci (Node): scaffolded workflow uploads no coverage, because .gaze-artifact is a hidden directory #446

Done

Description

@jflowers

Problem

The Node variant of the gaze init --ci scaffold (internal/scaffold/assets/ci/gaze-ai-report-node.yml) stages coverage into .gaze-artifact/ and uploads that directory:

- name: Stage coverage for upload
  run: mkdir -p .gaze-artifact && cp -r coverage .gaze-artifact/
- name: Upload coverage
  uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02  # v4.6.2
  with:
    name: coverage-out
    path: .gaze-artifact
    if-no-files-found: error

Since v4.4.0, actions/upload-artifact excludes hidden files and directories by default (include-hidden-files: false). A dot-directory path matches nothing, so every scaffolded Node workflow fails at the upload step:

##[error]No files were found with the provided path: .gaze-artifact. No artifacts will be uploaded.

Seen in zero-dot-force/reading-stone#41, which copied the staging step from the v2.7.0 scaffold: failed run, then passing run after moving the staging directory.

The Go and Python templates upload a single file (coverage.out, coverage.xml), so they aren't affected.

Fix

Stage outside the workspace, so nothing lands in the repository tree:

run: mkdir -p "$RUNNER_TEMP/gaze-artifact" && cp -r coverage "$RUNNER_TEMP/gaze-artifact/"
...
path: ${{ runner.temp }}/gaze-artifact

A non-hidden workspace directory would also work. include-hidden-files: true would too, but it widens what the upload can pick up.

internal/scaffold/ci_test.go pins the current strings (stageRun, uploadPath, around lines 829–830 and 1106), so those expectations change with the template. An e2e check that runs the scaffolded Node workflow's upload step would have caught this.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Nov 30, 2026
  2. added 12 commits that reference this issue on Dec 1, 2026
  3. 5 remaining items

  4. added 2 commits that reference this issue on Dec 1, 2026
  5. added 12 commits that reference this issue on Dec 1, 2026
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

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions