Skip to content

Commit

Permalink
Introduce nosync to speed up installability
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Vadkerti <[email protected]>
  • Loading branch information
thrix committed Aug 20, 2024
1 parent 705235e commit a393222
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ pipeline {
[
arch: "x86_64",
os: [ compose: "${config.compose}" ],
tmt: [
context: [
profile: "${config.profile_name}"
]
]
variables: [
PROFILE_NAME: "${config.profile_name}",
TASK_ID: "${getIdFromArtifactId(artifactId: artifactId)}",
Expand Down
7 changes: 7 additions & 0 deletions installability.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ description: Runs installability tests in Fedora CI — https://github.com/fedor
provision:
how: virtual

adjust:
- when: profile == fedora
prepare+:
- script: dnf -y install nosync
environment+:
LD_PRELOAD: /usr/lib64/nosync/nosync.so

discover:
how: shell
tests:
Expand Down
6 changes: 6 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ dnf -y copr enable @osci/mini-tps
dnf -y install mini-tps
dnf -y copr disable @osci/mini-tps

# Use nosync to speed up dnf
if grep -q fedora <<< "${PROFILE_NAME}"; then
dnf -y install nosync
export LD_PRELOAD=/usr/lib64/nosync/nosync.so
fi

# make sure mini-tps can find Koji
# TODO: can mini-tps RPM package provide this configuration automatically?
mkdir -p /var/tmp/mini-tps/ /usr/local/libexec/mini-tps/
Expand Down

0 comments on commit a393222

Please sign in to comment.