Day 22: Full gas in neutral - CI for prepper

szabgab

Gabor Szabo

Posted on December 23, 2022

Day 22: Full gas in neutral - CI for prepper

full gas in neutral is phrase used in Hebrew. It is the idea that you floor the gas pedal in your car while the gear is in neutral. So you urn a lot of gas, but has no useful effect. It is used in many cases where one works really hard, but it has no (positive) impact. Like washing your car while raining or when you turn on the irrigation system while raining.

It's when you pedal really really hard on you bike and the after the chain fell off...

I was really surprised that my searches for this expression indicated that it is not used elsewhere. I wonder what is the expression in other languages for the same phenomenon.

prepper

So you might guess this was a funny case. A few days ago I tried to add GitHub Actions to the prepper Ruby Gem. The tests failed even locally so I reported the problem.

Soon the author replied that this Gem does not have any real tests. The only tests that are in the repository are the ones that were generated by bundle, the tool to jump-start the development of a Ruby Gem and for some reason they were failing.

So yes, I could have configure GitHub Action for a Gem that does not have any tests. That would be running the whole CI for every push without it actually checking anything. "full gas in neutral"

The author also indicated that he'll remove the failing test and soon will add real tests. I guess it would not be a total waste to add the GitHub actions now. That way when tests start to arrive to the repository they will be executed.

By the time I actually checked this the author has made the necessary changes to let the existing test pass.

I went ahead, added the GitHub Actions configuration file and sent the pull-request
which the author promptly accepted.

GitHub Actions

name: CI

on:
  push:
  pull_request:
  workflow_dispatch:
#  schedule:
#    - cron: '42 5 * * *'

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        ruby: [ '3.0' ]

    runs-on: ubuntu-latest
    name: Ruby ${{matrix.ruby}}
    container: ruby:${{matrix.ruby}}

    steps:
    - uses: actions/checkout@v3

    - name: Show ruby Version
      run: |
        ruby -v

    - name: Install Modules
      run: ./bin/setup

    - name: Run tests
      run: rake test
Enter fullscreen mode Exit fullscreen mode

Conclusion

The author also said "thank you" in Hungarian. I could have guessed from his family name, but I was not really focused on who created the library, just wanted to add the Continuous Integration.

💖 💪 🙅 🚩
szabgab
Gabor Szabo

Posted on December 23, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related