When call child workflows, how to prevent circular dependency / infinite loop - cadence-workflow

I searched Google, StackOverflow and Github issues but did not find anything
https://docs.temporal.io/docs/java-implementing-workflows#child-workflows
It seems that I can easily create a circle with multiple workflows calling others as child workflow. A workflow can even call itself over and over again. Does Cadence/Temporal provide anything to prevent that or that is out of the scope?
Thank you in advance

This feature is not available yet. Filed a github issue to address it.

Related

Github pull request issue "This comparison is taking too long to generate" with project using RASA framework

I have this issue when I try to merge my branch to the main one for my RASA chatbot project and I want to know if there are any ways to fix this and create a pull request or should I just change my main branch to the domain-side branch
Ok so I fixed the issue by deleting the .rasa cache folder
This can occur when there are a lot of commits in your Pull Request
Unfortunately, this is a known github issue.
Thanks for writing to GitHub support and sorry for the trouble!
We have received a few similar reports regarding big pull requests. I can confirm that our team is working on fixing this problem, and I've added your report to that issue.
Unfortunately I won't be able to provide an estimated time on when this might get fixed. We know this is not ideal, but hope you understand.
Is there anything we can do to preserve our comments and alleviate this issue now and in the future?
You should be able to use our API to get a copy of the comments in this pull request:
https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request
https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request
If you have any question regarding using API we can definitely offer more detailed instructions.
Unfortunately I'm not sure if there's anything you can do on your part to view this pull request normally.
One thing you could try is viewing this PR in Incognito window or logged out.
I was actually able to view the PR you linked because I don't have write access to this repository, so GitHub will try to load less things for me such as edit buttons and so on. Of course this won't allow you to merge the pull request and so on, but perhaps it would help for you to look at its content?
Lastly, while we are working on consistently supporting large pull requests, you might consider keeping pull requests relatively short for now to avoid running into this again.
I hope this helps clear things up, and please let us know if you have any other questions.
Please refer to the full discussion provided here.

Automatically add github issues using a keyword in source code

Does anyone know if there's a way to add a github issue automatically when a keyword appears in a commit (source code)?
I usually put a TODO comment in to mark somewhere that needs work, and thought it would be really useful to track them using issues
This is not possible.
All you can do in commit messages is close or references issues.
Not create one.

Is linking to a GitHub issue reliable?

Is there any documentation out there to suggest that GitHub issues are eternal? More specifically, are their URIs reliable to link to?
E.g., I want to link to a Joda-Time issue in a Javadoc to give context as to why a custom de/serializer was necessary. If the link is reliably static I'll be comfortable referencing it in code.
Yes
Git issues are completly reliable, no one can remove an issue, even repository's administrators.
A git issue will never die, the worst thing that can happen to an issue is getting locked, resulting in others not being able to comment on them, but still, it's visible to everyone.
Edit: Please note that by removing a repository, all it's issues, pull requests, wiki pages, etc. are removed. More about forks on this.

Is there a way to give someone access GitHub issues without giving them read access to the source code?

We have a GitHub organization setup with private repositories. We would like to give a few of our beta testers access to add and comment on issue but we don't want to give them access to the source code. Is there a way to do this?
I don't believe this is possible, due to the way issues are directly linked to commits.
See here:
https://help.github.com/articles/issues-only-access-permissions
Indeed you can do what you want to achieve, you just need to have a second repository for that purpose.

In GitHub issue tracker, can non-admin users assign users and labels?

I think the answer is no, but maybe I'm missing something: in most repos, you only have one or two admins, and a bunch of "collaborators". But it looks like the collaborators can't assign issues (eg, to themselves), nor can they label issues (even ones they created).
Bug? Design feature? I'm using it wrong? Are there any workarounds?
Looking at Issues 2.0: The Next Generation, this seems to be by design, and from the comments, this isn't the only "problem" users are facing:
It looks like issues can only be assigned to collaborators.
I'd still like to be able to assign an issue (or someone to claim one) to a developer who is not a repo collaborator. After all it is a very common workflow that collaboration happens with forks and pull requests.
One potential workaround (not tested myself) is for a user to fork the original repo, and reproduce the issue in the issue tracker of that new forked repo (that he owns):
the new issue would keep an html link to the original issue of the original repo
the user can assign and label issues.
Obviously that involves a bit of duplication, but for bugs a user wants complete ownership of, that can be worth doing.