Skip to content

Performance summary is placed randomly #15455

Open
phpstan/phpstan-src
#6740

Description

@mvorisek

Feature request

example: https://github.com/atk4/data/actions/runs/37166853143/job/111331434465#step:11:166

Image

I belive this is due stdout/stderr mixed and GitHub Actions does not handle these atomically/buffer them.

Maybe flushing these outputs explicitly would fix this or maybe some workaround like sending many invisible characters... only ideas...

The expected result is the performance summary "Elapsed time..." placed always at the end.

Activity

  1. added this to the Easy fixes milestone on Oct 14, 2026
  2. staabm commented on Oct 14, 2026

    @staabm
    Contributor

    we can see similar spurious problems in https://github.com/phpstan/phpstan-src/actions/runs/38304323081/job/114998249583?pr=5980 in which output of phpstan versions (diagnose output) is mixed into the result table:

    ...
    --------------------------------------------------------------- 
      434    Expected type Illuminate\Support\LazyCollection<string, Illuminate\Support\LazyCollection<'bar', User>>, actual: Illuminate\Support\LazyCollection<string, Illuminate\Support\LazyCollection<string, User>>  
             🪪  phpstan.type (non-ignorable)                                                                                                                                                                             
             ✏️  https://github.com/laravel/framework/blob/1d3c6c59f78b390c46671ea597024f07043b93c9/types/Support/LazyCollection.php#L434                                                                                 
    PHP runtime version: 8.4.26
    PHP composer.json required version: 8.3-8.6.99
    PHP version for analysis: 8.4.26 (from runtime)
    
    PHPStan version: 2.3.x-dev@35efa57
    PHPStan running from:
    /home/runner/work/phpstan-src/phpstan-src
    
    Extension installer: Not installed
    
    Discovered Composer project root:
    /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo
    
      439    Expected type Illuminate\Support\LazyCollection<'foo', User>, actual: Illuminate\Support\LazyCollection<string, User>                                                                                        
             🪪  phpstan.type (non-ignorable)                                                                                                                                                                             
             ✏️  https://github.com/laravel/framework/blob/1d3c6c59f78b390c46671ea597024f07043b93c9/types/Support/LazyCollection.php#L439                                                                                 
    ...
    
  3. staabm commented on Oct 14, 2026

    @staabm
    Contributor

    @mvorisek did you experience this also outside GitHub Actions?

  4. mvorisek commented on Oct 14, 2026

    @mvorisek
    ContributorAuthor
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions