News for hackers. Stuff that matters.
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by CarVac on Sunday May 30, 2021 @07:18PM (#27337945)
Are there any half-decent ways to run CI locally? Anyone have any suggestions?

For me it doesn't have to be automatic like these CI services.

Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by handrous on Sunday May 30, 2021 @08:43PM (#27338585)
Tons of ways that are all quick and easy to set up... if you build on one platform, or use VMs of one OS only, or use Docker containers.

As soon as you need e.g. macOS + Windows + Linux + iOS + Android (really, any three of those) it's hell. You're either going to be conforming your build to the requirements of some "cloud" solution (if you can) while paying painful money for it and maybe (likely) not even getting very good performance in exchange, or maintaining several build machines (locally or as rented servers/VMs or whatever). Or screwing around with Parallels or something, and "enjoying" bad build times for most platforms.

It's a very easy problem to solve for container-heavy web stuff. It becomes no fun in a hurry once you're very far outside that.

Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by toomuchtodo on Sunday May 30, 2021 @07:50PM (#27338204)
Gitlab CE? Should be a Docker pull away.
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by haram_masala on Sunday May 30, 2021 @08:31PM (#27338516)
Agreed with this, because it gives you a relatively direct upgrade path in case you want to start using GitLab Enterprise.
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by ViViDboarder on Monday May 31, 2021 @01:28AM (#27340483)
You mean host your own CI? Or just run your tests on your machine that you’re developing.

The latter is super easy. Read the readme and run the tests.

The former can be done with any of the popular open source CI platforms. Jenkins, Drone.io, Concourse, or GitLab runners to name a few.

Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by CornCobs on Sunday May 30, 2021 @08:19PM (#27338433)
Sorry if I'm ignorant, but isn't running CI locally basically just running tests/build normally?
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by klyrs on Sunday May 30, 2021 @10:14PM (#27339274)
Well, you'd need to manage multiple OS/architecture configurations, and keep them separate from your dev environment. I'm sure it's all possible with qemu etc, but having (a) somebody else do that and (b) actual hardware instead of a VM-on-emulator cludge, is a game-changer
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by duped on Sunday May 30, 2021 @09:51PM (#27339114)
It's the opposite of running tests locally. You don't want to test in your development environment. That's how you get into "runs on my machine" syndrome.
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by ViViDboarder on Thursday June 03, 2021 @02:09PM (#27385151)
They literally said they want to do this locally though.
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by qorrect on Monday May 31, 2021 @08:20AM (#27343305)
Wouldn't running tests in docker on a fresh image creation solve this ?
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by disgruntledphd2 on Monday May 31, 2021 @09:43AM (#27343969)
Sortof. However, if you have a local file which hasn't been committed to VC, then you'll only notice this when you push to CI.

This is probably the biggest benefit for me, it means that the build/testing/infra is reproducible on at least one other machine.

Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by duped on Monday May 31, 2021 @10:28AM (#27344390)
If you're on Linux, sure.
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by loloquwowndueo on Sunday May 30, 2021 @08:28PM (#27338503)
Concourse CI. Easy to install locally and you can define pipelines to do ... stuff.

It does stuff you’d normally do with Travis or GitHub actions. Store them as code in your project repo, run jobs automatically and repeatable and do stuff based on the results.

Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by smashed on Sunday May 30, 2021 @08:42PM (#27338578)
Ugh. Concourse is interesting for sure, but really hard to get a hang for. I would be careful who I recommend it to.

I don't like to speak in negatives so I won't elaborate, but basically I've had a very hard time using it and it made work miserable. Besides the shiny UI, there was literally nothing to make a devops team's work easier. Simply accessing a failed job log output was hard.

I prefer gitlab-ci because I already use gitlab and the integration is nice. For a pure CI system I would use drone.io if I was not already using gitlab.

Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by fsck0ff on Sunday May 30, 2021 @09:01PM (#27338716)
I spent a few hours this week creating a FreeBSD port for Drone, only to find out that the OSS version of Drone doesn't support external workers and since FreeBSD doesn't do Docker, Drone is pretty much useless on FreeBSD. It would be great if it was mentioned in their documentation so I didn't waste my time with Drone, but it's not. Concourse on the other hand seems to work on FreeBSD and doesn't have artificial limits to try and sell something.
Re:Daniel Stenberg: curl doesn't qualify for TravisCI free tier by solarengineer on Sunday May 30, 2021 @09:23PM (#27338894)
www.gocd.org

See build.gocd.org for an example of what pipelines can look like