Skip to content

Test dockerfile plan - #644

Merged
bhcopeland merged 8 commits into
Linaro:masterfrom
roxell:test-dockerfile-plan
Sep 28, 2026
Merged

bhcopeland merged 8 commits into
Linaro:masterfrom
roxell:test-dockerfile-plan

Conversation

@roxell

@roxell roxell commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

I was reviewing PR-641 and I wanted to run test.sh, and the goal was to get it test.sh to work again. It build a container and runs test-runner inside it, so we can try test changes locally. Right now it is broken in several places.

@roxell
roxell requested a review from bhcopeland September 23, 2026 21:33
@roxell
roxell force-pushed the test-dockerfile-plan branch from 04265f7 to 5cbbd04 Compare September 23, 2026 21:34
@mwasilew

Copy link
Copy Markdown
Contributor

@roxell what is the goal of this series? Could you add description to the PR?

@roxell
roxell force-pushed the test-dockerfile-plan branch 2 times, most recently from fd52f52 to 48c30c8 Compare September 28, 2026 08:26
plans/linux-example.yaml is gone, so test-runner stops with "NOT
found" in both test Dockerfiles.

Use plans/linux-test-plan-example.yaml instead.

Fixes: dca4fb6 ("plans: introduce linaro test plan v2")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
The examples still use the removed plans/linux-example.yaml. The
overlay example also misses the plans/ directory, so it never worked.

Fix both paths.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
"FROM centos" fails to build, the image is gone from Docker Hub.

Use fedora:44 instead. The pinned tag lets dependabot bump it.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
dnf5 in Fedora 41 and later does not know -e, so install_deps fails
on every Fedora install.

Drop it.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
redhat-lsb-core is gone since Fedora 38 and EL9, so dist_info() fails
to install it.

Install /usr/bin/lsb_release and let dnf or yum pick the package. Fix
the example in the test writing guidelines too.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
smoke.sh has the same redhat-lsb-core problem, so the smoke test fails
on Fedora 38+ and EL9.

Install /usr/bin/lsb_release, like sh-test-lib does.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
@roxell
roxell force-pushed the test-dockerfile-plan branch from 48c30c8 to 4d5d19d Compare September 28, 2026 08:37
test.sh ran validate.py with its own list of ignored checks. That list
was older than the one in sanity-check.sh and missed SC3043, so a
local run failed on every script that uses 'local'.

Call sanity-check.sh so the local run and CI use the same checks.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
shellcheck 0.11 adds SC3014 for == in [[ ]], so sanity-check.sh
fails. The file disables the SC3xxx checks one by one, and each new
shellcheck release can add more.

The script runs in mksh, so tell shellcheck it is ksh and drop the
SC3xxx disables. Drop SC2039 too, it does nothing.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
@bhcopeland
bhcopeland merged commit 918e55d into Linaro:master Sep 28, 2026
3 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