Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tranhl opened this issue Nov 13, 2024 · 5 comments
Closed

Comments

@tranhl
Copy link
Collaborator

tranhl commented Nov 13, 2024

Original issue: git-town/git-town#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
Copy link
Collaborator Author

tranhl commented Nov 13, 2024

@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!

@mwisner
Copy link

mwisner commented Nov 25, 2024

We're seeing the same thing also,

/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 "..." not found.
      at addEdge (/home/runner/work/_actions/git-town/action/v1/dist/index.js:24877:[15](https://github.com/stockx/iron/actions/runs/12011258930/job/33481569022#step:3:19))
      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/stockx/iron/actions/runs/12011258930/job/33481569022#step:3:20))
      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

I'm not sure what information I can provide other than:

  • We have a lot of branches (800+) I've deleted a bunch but the action still stops at the same branch.
  • No forks
  • Copy/paste the action out of the example without any changes
  • Branch failing on does exist

@stephenwade
Copy link
Member

@mwisner Would you be able to share the action's inputs from the problematic workflow run? You can get this from the step's output, as seen in #42 (comment).

@tranhl
Copy link
Collaborator Author

tranhl commented Dec 2, 2024

@mwisner @EngHabu

I've released v1.0.6 which contains fixes for #19 & #36. I believe this should resolve the error! Please monitor the action & report back if the issue persists.

I'll be closing this issue just to keep things tidy, but if the error comes up again I'm more than happy to reopen it 😊

@tranhl tranhl closed this as completed Dec 2, 2024
@mwisner
Copy link

mwisner commented Dec 2, 2024

Works great, thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants