pestphp / pestphp/pest

Add fallback when git is unavailable in TIA mode (Docker environments)

Open
#1,777 2 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
11.7k
Forks
538
Avg merge
4d 11h
Merged PRs (30d)
8

Description

When enabling Pest V5's TIA (Test Impact Analysis) mode in a Dockerized application where the git binary is not installed, the process crashes with a MissingDependency exception: The feature "Tia mode" requires "git".

This prevents running tests with --tia flags in minimal Docker containers.

Reproduction
  1. Create a Dockerfile without git (common in production images)
  2. Install dependencies including Pest
  3. Run ./vendor/bin/pest --tia
  4. Observe error: The feature "Tia mode" requires "git".
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing TIA mode's git dependency and the MissingDependency exception raised when git is unavailable. Reproduce the failure with ./vendor/bin/pest --tia in a minimal Docker environment, then verify that TIA handles the missing binary without crashing and that normal TIA behavior remains available when git is installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, git, php
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.