News for hackers. Stuff that matters.
Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @12:03PM (#12489520)
We don't like plugins because they are a bad user experience, make it hard to upgrade, and make it hard to improve the product. We rather see people contribute features to GitLab itself including tests. This way we can make sure they are nicely integrated in the UI and that they still work when we release a new version of GitLab. This allows users to upgrade with confidence and it allows us to make major changes to GitLab.

I'm not sure what you use case it but GitLab CI is pretty extensive and I hope it has everything you need. Please let me know if there is anything missing. If you want to host your code somewhere else you can still use remote mirroring to have GitLab do the deploy.

The GitLab Runner is a simple piece of software on purpose. This allows us to port it to many platforms. All the logic is in GitLab itself so it is easy to provide a lot of feedback about the status in the UI.

Re:GitLab Master Plan by scrollaway on Tuesday September 13, 2016 @02:39PM (#12491068)
The problem with Gitlab CI, last I looked at it, was the inability to untie it from gitlab and run+self host it standalone. Has this changed?
Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @04:44PM (#12492064)
The only way to use GitLab CI is as part of GitLab. By doing this we could deeply integrate it into the interface of GitLab and make it a better user experience. If you host your code anywhere else you can use remote mirroring (EE/.com only) to use GitLab CI.
Re:GitLab Master Plan by scrollaway on Tuesday September 13, 2016 @05:02PM (#12492203)
You can't make it replace Jenkins if it can't do arbitrary jobs. I'm talking jobs without even a repository behind them.

The idea of a runner that tests every commit on a repo is super useful. But Jenkins goes one step further by being essentially an arbitrary shell command runner. I use it for example as a CNC for running cleanup jobs, cronjobs etc.

Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @06:50PM (#12492881)
Maybe the repository can contain the code of the cleanup jobs?
Re:GitLab Master Plan by scrollaway on Tuesday September 13, 2016 @07:55PM (#12493224)
This is shoehorning something into a model that doesn't fit it :/

For example, on Jenkins right now, we have a job which can trigger a bunch of load tests against our website. We can run this job indefinitely, give it arguments, it'll even run a local web server. By default, the job only runs the load test for ~10 mins.

The job is run periodically. When it fails, we get emails. After it completes, regardless of failure, it triggers a "cleanup" job which deletes the loadtest-related data from the website.

This is what I mean with "arbitrary jobs". I think it's absolutely fair to consider them out of scope, but if you want to replace Jenkins, this is what you're going up against.

Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @08:07PM (#12493285)
Thanks for sharing your use case. I think that code of the cleanup job can be in the same repo as the load test itself. Would that be a fit for you? Of course the load test code can have the testing code of the application as a dependency.

Maybe you prefer the load testing code in the same repo as the application. In that case it should be two jobs that are triggered periodically I think.

I think what GitLab CI still needs is periodic jobs https://gitlab.com/gitlab-org/gitlab-ce/issues/2989 (right now the workaround is sending a build trigger for an external task).

Re:GitLab Master Plan by aalbertson on Wednesday September 14, 2016 @01:22AM (#12494404)
no, it does not fit the bill. It needs truly arbitrary job running.

I want to be able to just drop in some arbitrary command (e.g. df -h /some/build/agent/dir/ | grep 99%) that would not be worth it to me to write a script, commit it to git, get that deployed and running.

In fact, I AM a fan of this being in git, but the example I'd use is an improvement on TeamCity, where you can configure your job and project configurations to "commit to git" so that you can easily restore when you need to rebuild a server or reload a previous version.

Sooooo many use cases for arbitrary jobs. Many of which may be short lived, but want them automated in some way.

(speaking as a sysadmin/eng/devops/cloud dude)

Re:GitLab Master Plan by scrollaway on Tuesday September 13, 2016 @08:30PM (#12493410)
Can Gitlab CI do manual triggers yet? (Drone can't, last time I checked, and that was a huge turnoff)

The "code" in this case really lives in the Jenkins database, as it's a shell snippet. Admittedly I'm not a fan of this. However, since you're a FOSS company as well, you may have hit the case where you want to separate the code for your infrastructure from the code you're releasing in the general repository, but still build off master.

This is where Jenkins' model is quite good. I strongly dislike that it's so hard for Jenkins' metadata to be versioned in proper git repositories, but the separation of the actual code, and the CI-related code is great.

Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @08:47PM (#12493473)
Manual build triggers for GitLab CI are possible with https://docs.gitlab.com/ce/ci/triggers/README.html

In my taste the shell snippet that is infrastructure specific should like in a small repository. An example of that for us is https://gitlab.com/gitlab-com/runbooks (although that is more process since we try to keep the code generic).

Re:GitLab Master Plan by avtar on Tuesday September 13, 2016 @04:04PM (#12491730)
I would love it if Gitlab CI went back to being a separate product. I'll use Gitlab for my own projects but ones that I work on with others are challenging to migrate. And creating mirrors on Gitlab of repositories hosted elsewhere to make use of CI/CD features doesn't sound ideal.
Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @04:45PM (#12492071)
I agree it is not ideal but it should work pretty smoothly, have you tried https://docs.gitlab.com/ee/workflow/repository_mirroring.htm... ?
Re:GitLab Master Plan by avtar on Tuesday September 13, 2016 @04:56PM (#12492157)
I understand why your different offerings are bundled together, I appreciate how your team tends to reach out to users in public forums such as this one, and I'm a fan of the quality of your work, but quoting from the page you linked to:

"any commits should be pushed to the upstream repository, and will end up in the GitLab repository automatically within an hour, or when a forced update is initiated."

"Wait up to an hour for things to happen" isn't a great story to pitch to team members :/ I'm also talking about at least twenty different repositories. I'll most likely have to continue using Jenkins for those projects but I look forward to using Gitlab CI on weekends.

Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @06:52PM (#12492895)
I thought this time was configurable if you run your own installation of GitLab EE. I agree that for GitLab.com the delay of an hour can be a problem. Maybe we can solve that by adding webhooks?
Re:GitLab Master Plan by avtar on Tuesday September 13, 2016 @07:24PM (#12493060)
Yes, webhooks would be preferable over polling.
Re:GitLab Master Plan by sytse on Tuesday September 13, 2016 @08:51PM (#12493490)
Cool, I created a feature proposal for this https://gitlab.com/gitlab-org/gitlab-ce/issues/22139
Re:GitLab Master Plan by avtar on Tuesday September 13, 2016 @11:25PM (#12494052)
Awesome, thanks!