josevalim

josevalim

Creator of Elixir

Does anyone have experience with Cirrus CI?

Currently we are using both AppVeyor (Windows) and Travis-CI (Ubuntu) in Elixir plus we are looking to add FreeBSD. I would love if we could unify those and Cirrus-CI seems like a good fit.

Thoughts?

Showing Posts 1 to 10

tristan

tristan

Rebar3 Core Team

Nice. I haven’t, but I was just looking for a free macos (I prefer CircleCI but they charge for macos) offering so we could ditch Travis for at least relx (been having a number of annoying failures bc of travis) and probably rebar3 too, though less important. I’ll be giving this a try soon.

fedor

fedor

Disclaimer: I’m working on Cirrus CI

Just added an Elixir example using the official Docker images to documentation: https://cirrus-ci.org/examples/#elixir

Feel free to try it out and report any issues. :raised_hands:

tristan

tristan

Rebar3 Core Team

Cool. And mix_cache: is just “sugar” for:

cache:
  name: mix
  ...

So I can do rebar3_cache:?

fedor

fedor

Exactly. Just syntactic sugar for naming.

tristan

tristan

Rebar3 Core Team

Works great, thanks!

Just using the community cloud but it seems pretty fast and configuration is simple.

build_task:
  container:
    image: circleci/erlang:21
  rebar3_cache:
    folder: _build
    fingerprint_script: cat rebar.lock
    populate_script: rebar3 compile --deps_only

test_task:
  container:
    image: circleci/erlang:21
  depends_on:
    - build
  rebar3_cache:
    folder: _build
    fingerprint_script: cat rebar.lock
  test_script: rebar3 ct
  always:
    junit_artifacts:
      path: "_build/test/logs/ct_run.*/junit_report.xml"

osx_check_task:
  osx_instance:
    image: mojave-base
  install_script: brew install erlang
  test_script: |
    wget https://s3.amazonaws.com/rebar3/rebar3
    chmod +x rebar3
    ./rebar3 ct

Only issue, which I’ll properly submit once I verify my theory, is the cache seems to fail if there are symlinks in the directory being cached. So I had to split out the build task that caches from the test run, otherwise it tries to cache after everything has run and complains, Failed to calculate hash of /tmp/cirrus-ci-build/_build! read /tmp/cirrus-ci-build/_build/default/lib/relx/include: is a directorySkipping uploading of /tmp/cirrus-ci-build/_build!_build/default/lib/relx/include is a symlink.

dimitarvp

dimitarvp

I’m curious how fast is Cirrus. I’m very unhappy with our current CI, takes at least 3 full minutes to do a build (with cached dependencies).

@fedor Do you have an average time for such a normal Phoenix app finishes a build?

fedor

fedor

Don’t have such specific numbers but would love to compare. Are you looking it for an OSS project? Would love to collaborate to get such data.

dimitarvp

dimitarvp

Not really, no. And most are pretty basic anyway so they can’t serve as benchmarks.

I’ll review your free tier (if you have any?) and ask further questions.

But what’s been a weak point of many CI services so far has been universally these two points:

  • Slow compilation. (Weak CPUs, slow disks, small amounts of RAM, all of these could be contributing)
  • No cached dependencies. This has been a major PITA in at least 3 services I tried in the last year.
fedor

fedor

Go ahead and feel free to ping me (@fkorotkov) on GitHub PRs! Cirrus is free for OSS and you can use up to 8 CPUs / 24G of RAM of memory for free with some generous concurrency limits. Paid plan with per-second billing can use up to 30 CPUs/ 90G of memory with no concurrency limits.

Cirrus also runs Google Cloud which shows awesome performance stability and I/O throughput (both internet and disk).

Caching is also inspired by how modern build systems do caching with an option to use an HTTP cache if your build system supports it.

dimitarvp

dimitarvp

Appreciate the openness and responsiveness! Thank you so much. :041:

EDIT: Do you guys have a calculator so we can try and get a rough idea how much would we end up paying monthly?

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
durvia
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes. We’re a small ...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews