hawkbit-client: do not resume downloads for persistent server errors #403
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| options: | |
| - -Dsystemd=enabled | |
| - -Dsystemd=disabled | |
| flags: | |
| - null | |
| - CFLAGS="-fsanitize=address -fsanitize=leak -g" LDFLAGS="-fsanitize=address -fsanitize=leak" | |
| steps: | |
| - name: Inspect environment | |
| run: | | |
| whoami | |
| gcc --version | |
| - uses: actions/checkout@v6 | |
| - name: Install required packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install meson libcurl4-openssl-dev libsystemd-dev libjson-glib-dev | |
| - name: Build (with ${{ matrix.options }} ${{ matrix.flags }}) | |
| run: | | |
| ${{ matrix.flags }} meson setup build ${{ matrix.options }} -Dwerror=true | |
| ninja -C build | |
| - name: Build release | |
| run: | | |
| ninja -C build dist | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.8 | |
| - name: Install test dependencies | |
| run: | | |
| sudo apt-get install libcairo2-dev libgirepository1.0-dev nginx-full libnginx-mod-http-ndk libnginx-mod-http-lua | |
| python -m pip install --upgrade pip | |
| pip install -r test-requirements.txt | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v4 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
| - name: Update/launch hawkBit docker container | |
| run: | | |
| docker pull hawkbit/hawkbit-update-server | |
| docker run -d --name hawkbit -p ::1:8080:8080 -p 127.0.0.1:8080:8080 \ | |
| hawkbit/hawkbit-update-server \ | |
| --hawkbit.server.security.dos.filter.enabled=false \ | |
| --hawkbit.server.security.dos.maxStatusEntriesPerAction=-1 \ | |
| --server.forward-headers-strategy=NATIVE | |
| - name: Run test suite | |
| run: | | |
| ./test/wait-for-hawkbit-online | |
| ASAN_OPTIONS=fast_unwind_on_malloc=0 dbus-run-session -- pytest -v | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install required packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install meson libcurl4-openssl-dev libjson-glib-dev python3-sphinx python3-sphinx-rtd-theme doxygen | |
| - name: Meson Build documentation (Sphinx & Doxygen) | |
| run: | | |
| meson setup build | |
| ninja -C build docs/html | |
| ninja -C build doxygen | |
| uncrustify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Run uncrustify check | |
| run: | | |
| ./uncrustify.sh | |
| git diff --exit-code |