Skip to content

lmp/bb-config: Add variable to debug CI_SCRIPT_DEBUG#409

Closed
angolini wants to merge 1 commit intofoundriesio:masterfrom
angolini:setx
Closed

lmp/bb-config: Add variable to debug CI_SCRIPT_DEBUG#409
angolini wants to merge 1 commit intofoundriesio:masterfrom
angolini:setx

Conversation

@angolini
Copy link
Copy Markdown
Contributor

@angolini angolini commented Apr 2, 2026

This variable will enable bash trace mode to the ci-scripts so we can generate more log in case of a problem.

tested locally with a script that turn on/off the variable:

mkdir -p /tmp/lmp-archive /tmp/lmp-secrets
chmod 777 /tmp/lmp-archive /tmp/lmp-secrets

REPO_DIR=/tmp/lmp-manifest
if [ ! -d "$REPO_DIR" ]; then
    git clone https://github.com/angolini/lmp-manifest.git "$REPO_DIR"
fi
git -C "$REPO_DIR" checkout 13b7dd6a57b714e93cedad7f81fbaebbaf50f01c

docker run --rm -it \
    -v "$(pwd):/ci-scripts" \
    -v "/tmp/lmp-archive:/archive" \
    -v "$REPO_DIR:/repo" \
    -v "/tmp/lmp-secrets:/secrets" \
    -w /repo \
    -e archive=/archive \
    -e DISTRO=lmp \
    -e SOTA_CLIENT=aktualizr-lite \
    -e SOTA_TUF_ROOT_PROVISION=0 \
    -e OSTREE_BRANCHNAME=lmp \
    -e OTA_LITE_TAG=premerge:main \
    -e AKLITE_TAG=premerge \
    -e BITBAKE_EXTRA_ARGS=--continue \
    -e IMAGE=lmp-base-console-image \
    -e MACHINE=beaglebone-yocto \
    -e GIT_URL=https://github.com/angolini/lmp-manifest.git \
    -e GIT_SHA=13b7dd6a57b714e93cedad7f81fbaebbaf50f01c \
    -e GIT_SHA_BASE=9bd8e8ab95fb1829401b6adea9a3ec602f0e4a3e \
    -e GIT_OLD_SHA=9bd8e8ab95fb1829401b6adea9a3ec602f0e4a3e \
    -e CI_SCRIPT_DEBUG=0 \
    -e H_PROJECT=lmp \
    -e H_BUILD=2950 \
    -e H_RUN=build-beaglebone-yocto \
    -e H_RUN_URL=https://api.foundries.io/projects/lmp/builds/2950/runs/build-beaglebone-yocto/ \
    hub.foundries.io/lmp-sdk:next \
    bash -c "git config --global --add safe.directory '*' && bash /ci-scripts/lmp/build.sh"

This variable will enable bash trace mode to the ci-scripts so we can
generate more log in case of a problem.

Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
@angolini angolini requested review from a team, quaresmajose and ricardosalveti April 2, 2026 16:31
@quaresmajose
Copy link
Copy Markdown
Member

Wouldn't it be better to use a fork from this repo at the factory and modify it as needed?

If we need to add the CI_SCRIPT_DEBUG variable in the factory, it will be practically the same as configure a fork of the ci-scripts.

@angolini
Copy link
Copy Markdown
Contributor Author

angolini commented Apr 8, 2026

I also don't like this PR, I'm closing it. Found another way to debug it

@angolini angolini closed this Apr 8, 2026
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.

2 participants