Problem with GitHub Actions Workflow

@per1234

Last 2 days I encountered serious problems with GitHub - Arduino-CI/arduino_ci: Unit testing and Continuous Integration (CI) for Arduino libraries, from a Ruby gem test runner I use for my libraries.

unit tests got struck in an endless loop, giving no output or partial output. Underlying event is an AddressSanitizer:DEADLYSIGNAL, which makes the VM / workflow notorious hard to cancel.

Root cause seems to be connected to the ubuntu-latest which is updated recently, so not to the Arduino-CI itself. So people using other GitHub workflows may encounter the same problem.

The problem is described in more detail - Crashing Clang with Asan+Ubsan builds in 20240310.1.0 Ubuntu 22.04. · Issue #9491 · actions/runner-images · GitHub
This link also provides a patch / workaround. sudo sysctl vm.mmap_rnd_bits=28

I also added an explicit time-out to the workflow yaml file so the workflow /VM does not stay dangling for 6 hours (default GitHub timeout).

---
name: Arduino CI

on: [push, pull_request]

jobs:
  runTest:
    runs-on: ubuntu-latest
    timeout-minutes: 20

    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.6
      - run: |
          sudo sysctl vm.mmap_rnd_bits=28
          gem install arduino_ci
          arduino_ci.rb

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.