linear-b / gitstream

/:\ gitStream - Workflow automation for your git repo. Use YAML to auto-assign reviewers, auto-merge PRs, automatic PR labeler, and more.
https://gitstream.cm
Apache License 2.0
256 stars 30 forks source link

GitStream Playground fails on default example #568

Closed eborysko closed 2 weeks ago

eborysko commented 1 month ago

Describe the bug

When I attempt to use GitStream playground, it fails to run on my private and public PR ( regardless of repository)

To Reproduce

Steps to reproduce the behavior: Using Safari or Chrome on MacOS.

  1. Login to playground via https://app.gitstream.cm/playground
  2. Run the default file. The .cm automation file
    
    # -*- mode: yaml -*-
    # This example configuration for provides basic automations to get started with gitStream.
    # View the gitStream quickstart for more examples: https://docs.gitstream.cm/examples/
    manifest:
    version: 1.0

automations:

Add a label that indicates how many minutes it will take to review the PR.

estimated_time_to_review: if:

+----------------------------------------------------------------------------+

| Custom Expressions |

| https://docs.gitstream.cm/how-it-works/#custom-expressions |

+----------------------------------------------------------------------------+

calc: etr: {{ branch | estimatedReviewTime }}

has: jira_ticket_in_title: {{ pr.title | includes(regex=r/\b[A-Za-z]+-\d+\b/) }} jira_ticket_in_desc: {{ pr.description | includes(regex=r/atlassian.net\/browse\/\w{1,}-\d{3,4}/) }}

colors: red: 'b60205' yellow: 'fbca04' green: '0e8a16'



2. The PR URL (as it contains the repo and PR identifiers)

- https://github.com/linear-b/gitstream/pull/530 (public)
- https://github.com/ValidereInc/terraform-github/pull/10 (private)

3. Following errors always occurs regardless of template. `

- `Error: Cannot read properties of undefined (reading 'reduce')`
- `Error: Cannot read properties of null (reading 'login')`

**Expected behavior**

Playground runs and shows sample out put

**Screenshots**

If applicable, add screenshots to help explain your problem.
<img width="1349" alt="image" src="https://github.com/user-attachments/assets/2a06be1c-67f1-45a9-a8b1-3a3c008604b7">

<img width="1421" alt="image" src="https://github.com/user-attachments/assets/13f33d25-d930-4390-abfb-022fe6f4c7d7">

**Additional context**
PavelLinearB commented 1 month ago

Hi @eborysko, We've seen some regression in the playground, and are looking into this issue. I'll update here with an ETA once the issue is identified.

Thanks!

siaavush commented 1 month ago

I am also experiencing the same issue

PavelLinearB commented 2 weeks ago

Hey @eborysko, We have identified the issues and are currently working on stabling the playground. It should be back by the end of this week

PavelLinearB commented 2 weeks ago

I'm happy to share that the playground is back and stable! 🎉 Please reach out if you experience any issues