git-town / action

Visualizes your stacked changes when proposing pull requests on GitHub
https://www.git-town.com
MIT License
10 stars 2 forks source link

Hitting NotFoundGraphError2: Graph.addDirectedEdge: source node error in CI #42

Open tranhl opened 1 day ago

tranhl commented 1 day ago

Original issue: https://github.com/git-town/git-town/issues/4195 by @EngHabu


We use git-town actions to populate the stack view in the PR description. It has been working well until recently (today?) where we started hitting this:

/home/runner/work/_actions/git-town/action/v1/dist/index.js:24877
        throw new NotFoundGraphError("Graph.".concat(name, ': source node "').concat(source, '" not found.'));
              ^

NotFoundGraphError2: Graph.addDirectedEdge: source node "<a branch name here>" not found.
    at addEdge (/home/runner/work/_actions/git-town/action/v1/dist/index.js:24877:15)
    at Graph.<computed> [as addDirectedEdge] (/home/runner/work/_actions/git-town/action/v1/dist/index.js:26139:20)
    at /home/runner/work/_actions/git-town/action/v1/dist/index.js:42861:15
    at Array.forEach (<anonymous>)
    at main (/home/runner/work/_actions/git-town/action/v1/dist/index.js:42860:[16](https://github.com/unionai/cloud/actions/runs/11693203423/job/32564253997?pr=9227#step:3:22))
    at run (/home/runner/work/_actions/git-town/action/v1/dist/index.js:47005:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.13.1

It's unclear to me what's going on... The referenced branch is not related to my PR and isn't part of the stack...

tranhl commented 1 day ago

@EngHabu I'll need a bit more information from you to figure out what's going on. Would you be able to share the action's inputs from the problematic workflow run? You can get this from the step's output: image

I've seen this error before, I believe it could be related to #36. Once you provide me with some further information I'll dig into the issue ASAP!