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

RPM test crash debug #6194

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,13 @@ container-rpm-test:
$(RPM_NAME):$(CI_TAG) \
sh -exc ' \
/run-build-and-arg make run-rpm-tests-only; \
dnf install -y /tmp/anaconda/result/build/01-rpm-build/*.rpm; \
dnf install -v -y /tmp/anaconda/result/build/01-rpm-build/*.rpm; \
cd /tmp/anaconda; \
rpmlint *.spec.in result/build/01-rpm-build/*.rpm --config rpmlint.toml'
rpmlint *.spec.in result/build/01-rpm-build/*.rpm --config rpmlint.toml; \
echo "AAA: MAKEFILE RPM TEST RUN - DONE"; \
echo "AAA: MAKEFILE RPM TEST RUN - STTY OUTPUT"; \
stty -a; \
echo "AAA: MAKEFILE RPM TEST RUN - STTY OUTPUT DONE";'

container-rpms:
@./scripts/testing/check-container-age.sh "$(RPM_NAME):$(CI_TAG)"
Expand Down
7 changes: 7 additions & 0 deletions dockerfile/anaconda-ci/run-build-and-arg
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ sed -i 's/ .. %{undefined centos}//' ./anaconda.spec.in

# always copy the results back to the host
copy_logs() {
echo "AAA: copy-logs running"

mkdir -p /anaconda/test-logs/
# clean up from previous run
rm -rf /anaconda/test-logs/*
# copy logs and coverage reports
find \( -name '*.log' -o -name 'coverage*.xml' \) -exec cp '{}' /anaconda/test-logs/ \;
echo "AAA: copy DNF log"
echo "AAA: stty output"
stty -a
echo "AAA: stty output - done"
cp -r /var/log/* /anaconda/test-logs/
}
trap copy_logs EXIT INT QUIT PIPE

Expand Down
Loading