Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make build-and-test-on-freebsd fail if steps do not complete successfully #1478

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

UncleGrumpy
Copy link
Collaborator

@UncleGrumpy UncleGrumpy commented Jan 19, 2025

Updates the Ubuntu host to 24.04, and changes to as matrix build with the current stable (14.2) and latest legacy release update (13.4) versions of FreeBSD.

This workflow is a different from most in that the entire build and test is done in a single script in a FreeBSB container on an Ubuntu host. Because it is one large shell script with no separate "jobs" exits needed to be added to ensure the test fails if any important steps fail to complete successfully.

Adds missing rebar3 installation required to complete the tests build.

Closes #1435

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@UncleGrumpy UncleGrumpy force-pushed the test-on-freebsd branch 6 times, most recently from 66f9d97 to 7a6ec8a Compare January 19, 2025 07:46
@petermm
Copy link
Contributor

petermm commented Jan 19, 2025

this will fail on main (uf2tool doesn't pick up the rebar3 install), if you add rebar3 to the pkg install (and remove the manual install) it will work:

pkg install -y curl cmake gperf erlang elixir rebar3 mbedtls

@UncleGrumpy
Copy link
Collaborator Author

this will fail on main (uf2tool doesn't pick up the rebar3 install), if you add rebar3 to the pkg install (and remove the manual install) it will work:

pkg install -y curl cmake gperf erlang elixir rebar3 mbedtls

Thanks for the heads up on that! This is a better solution anyway, as the rebar3 version will stay in sync with the distro OTP version.

…ully

This workflow is a different from most in that the entire build and test is done in a single script
in a FreeBSB QEMU constainer on an Ubuntu host. Because it is one large shell script, with no
separate "jobs", exits needed to be added to ensure the test fails if any important steps fail to
complete successfully.

Adds missing rebar3 installation required to complete the tests build.

Signed-off-by: Winford <[email protected]>
Update the Ubuntu host OS that QEMU runs FreeBSD hosts on to Ubuntu 24.04.

Changes the workflow to a matrix build against the current stable release of FreeBSD, as well as the
latest legacy release update.

Signed-off-by: Winford <[email protected]>
@UncleGrumpy
Copy link
Collaborator Author

The test failures on FreeBSD has revealed a bug in our http_server, as @pguyot explained to me in the Telegram chat.

@UncleGrumpy UncleGrumpy changed the title Make build-and-test-on-freebsd fail if steps to not complete successfully Make build-and-test-on-freebsd fail if steps do not complete successfully Jan 19, 2025
@bettio bettio merged commit be8c7e9 into atomvm:release-0.6 Jan 21, 2025
64 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants