lgtm_hack_scripts
lgtm_hack_scripts copied to clipboard
Enforce Adding Projects To Custom Lists
I recently bricked my account due to having too many projects in my default following repos list. If you have too many projects in your follow list, lgtm.com will return 404 errors when retrieving projects in the Query console.
One proposed solution is place repos inside your own created project lists and not the default followed list. As of now this tool will add repos to your default follow site. This is how I bricked my account :(.
Another thing to mention is that it might be possible (not confirmed) that when querying your own custom list, lgtm.com will halt the query after 24 hours.
One can see the full conversation here.
PS: I can be really stupid here and be missing something so as soon I get more info on the intricacies of lgtm.com I'll update this issue.
So, I think some things to keep in mind. You can only subscribe a project to LGTM.com's auto-builder by "following" the project. You can only add a project to a project list after it's been successfully built at least once.
So the steps you need to take for a new project are to follow the project first, then when the project is confirmed built (which can take anywhere from 10 min to an hour or so), then add the project to a project list. It's kinda a PITA from an automation perspective because to do it right you have a long-running process waiting to let you move your projects off your follow list and into a project list.
I am conflicted here.
I agree with your assessment of having such a feature. A long-running process is not doable for some/many users. That said, I think I'm going to go ahead and build this feature (at least initially for myself). I am committing more time to CodeQL and I find myself wanting to manage multiple project lists. This right now feels like an optimal strategy for my workflow, even if I have to run a long-running process. I do not know if this workflow is something other people want.
I think what I'll do is build this feature on my local machine and experiment with it. Once I get a better feel for this workflow I can report back in this ticket my results. What do you think?
Sounds good to me. Such a feature can also be opt-in. IE. If you want, you can run it as a long running process, or do it in two distinct steps, as you want.