Skip to content

Capture action fails on a file-mode-only PR diff: NOT NULL constraint failed: file_artifacts.change_tracking_id #547

Description

@pedropaulovc

The Capture PR iteration action exits 1 when a PR's only change is a file mode flip (100644100755) with zero content lines.

Hit on hikconnect-web#61 (a one-file chmod +x .husky/pre-commit). A normal content PR (#60) on the same repo/commit of the action passed fine, so it looks specific to the no-content-delta case.

Repro: open a PR whose diff is purely a mode change, no added/removed lines.

Failing run log

Run: https://github.com/pedropaulovc/hikconnect-web/actions/runs/27022087024/job/79752408987
Action ref: pedropaulovc/codjiflo/action@c5690255c572537fb6a6a213795307b6e0f07e90

Processing PR #61 in pedropaulovc/hikconnect-web
Checking for previous artifact...
No previous artifact found, creating new database
Creating new database
Capturing iteration...
##[error]NOT NULL constraint failed: file_artifacts.change_tracking_id
##[error]Process completed with exit code 1.

Non-blocking for us (the check isn't required), but it'll trip any future mode-only PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions