Summary: | wrong output of gb-task-gen-changelog (as if old changelog was empty) | ||
---|---|---|---|
Product: | Infrastructure | Reporter: | Ivan Zakharyaschev <imz> |
Component: | girar | Assignee: | placeholder <placeholder> |
Status: | NEW --- | QA Contact: | Andrey Cherepanov <cas> |
Severity: | normal | ||
Priority: | P5 | CC: | glebfm, ldv |
Version: | unspecified | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
URL: | https://lists.altlinux.org/pipermail/sisyphus-incominger/2021-July/622505.html |
Description
Ivan Zakharyaschev
2021-07-17 23:48:56 MSK
To test rpm_changes_since function from gb-sh-functions locally, one can simply clear the gb-sh-conf script:
> gb-sh-conf
and set tmpdir.
Like this:
/bin/sh -f -c 'export PATH="$PATH:$PWD"; . gb-sh-functions ||:; set -eu; tmpdir=/home/imz/tests/test-girar-rpm_changes_since; rpm_changes_since /tasks/279434/build/100/x86_64/srpm/emacs-text-modes-0.2-alt4.src.rpm /ALT/Sisyphus/files/SRPMS/emacs-text-modes-0.2-alt3.src.rpm'; echo $?
It could, for example, be something like hdrcache[1] that affected the result of rpm -qp in girar and made it different from my local tests. However, this kind of special system configuration (hdrcache or something else affecting rpm -qp) can not be seen from girar.spec, so we can only guess. [1]: hdrcache is present in Sisyphus, p9, p8: $ fgrep hdrcache /ALT/{Sisyphus,p{9,8}}/{noarch,x86_64}/base/contents_index /ALT/Sisyphus/x86_64/base/contents_index:/usr/lib64/rpm-plugins/hdrcache.so rpm-plugin-hdrcache /ALT/Sisyphus/x86_64/base/contents_index:/usr/lib64/rpmhdrcache.so rpmhdrcache /ALT/p9/x86_64/base/contents_index:/usr/lib64/rpm-plugins/hdrcache.so rpm-plugin-hdrcache /ALT/p9/x86_64/base/contents_index:/usr/lib64/rpmhdrcache.so rpmhdrcache /ALT/p8/x86_64/base/contents_index:/usr/lib64/rpmhdrcache.so rpmhdrcache $ (Ответ для Ivan Zakharyaschev на комментарий #1) > To test rpm_changes_since function from gb-sh-functions locally, one can > simply clear the gb-sh-conf script: > > > gb-sh-conf > > and set tmpdir. > > Like this: > > /bin/sh -f -c 'export PATH="$PATH:$PWD"; . gb-sh-functions ||:; set -eu; > tmpdir=/home/imz/tests/test-girar-rpm_changes_since; rpm_changes_since > /tasks/279434/build/100/x86_64/srpm/emacs-text-modes-0.2-alt4.src.rpm > /ALT/Sisyphus/files/SRPMS/emacs-text-modes-0.2-alt3.src.rpm'; echo $? It's simpler to call rpm_changes_since() and do this test with the commit 66c2d2e in master branch in my Git repo, where I moved the "pure" functions (in the same sense as the gb-x-* helpers) into a new file, gb-x-sh-functions. /bin/sh -efu -c 'export PATH="$PATH:$PWD"; . gb-sh-functions; tmpdir=/home/imz/tests/test-girar-rpm_changes_since; rpm_changes_since /tasks/279434/build/100/x86_64/srpm/emacs-text-modes-0.2-alt4.src.rpm /ALT/Sisyphus/files/SRPMS/emacs-text-modes-0.2-alt3.src.rpm'; echo $? (No need to clean gb-sh-conf, because it is not loaded and needed by any gb-x-*.) (In reply to Ivan Zakharyaschev from comment #2) > It could, for example, be something like hdrcache[1] that affected the > result of rpm -qp in girar and made it different from my local tests. > However, this kind of special system configuration (hdrcache or something > else affecting rpm -qp) can not be seen from girar.spec, so we can only > guess. > > [1]: hdrcache is present in Sisyphus, p9, p8: > > $ fgrep hdrcache /ALT/{Sisyphus,p{9,8}}/{noarch,x86_64}/base/contents_index > /ALT/Sisyphus/x86_64/base/contents_index:/usr/lib64/rpm-plugins/hdrcache.so > rpm-plugin-hdrcache > /ALT/Sisyphus/x86_64/base/contents_index:/usr/lib64/rpmhdrcache.so > rpmhdrcache > /ALT/p9/x86_64/base/contents_index:/usr/lib64/rpm-plugins/hdrcache.so > rpm-plugin-hdrcache > /ALT/p9/x86_64/base/contents_index:/usr/lib64/rpmhdrcache.so rpmhdrcache > /ALT/p8/x86_64/base/contents_index:/usr/lib64/rpmhdrcache.so rpmhdrcache > $ No, $ rpmquery rpmhdrcache rpm-plugin-hdrcache package rpmhdrcache is not installed package rpm-plugin-hdrcache is not installed (Ответ для Dmitry V. Levin на комментарий #4) > No, > $ rpmquery rpmhdrcache rpm-plugin-hdrcache > package rpmhdrcache is not installed > package rpm-plugin-hdrcache is not installed Thanks for information! Could you try to run a command like the one below (no special privileges must be needed) and see whether this bad behavior can be reproduced? (Ответ для Ivan Zakharyaschev на комментарий #3) > /bin/sh -efu -c 'export PATH="$PATH:$PWD"; . gb-sh-functions; > tmpdir=/home/imz/tests/test-girar-rpm_changes_since; rpm_changes_since > /tasks/279434/build/100/x86_64/srpm/emacs-text-modes-0.2-alt4.src.rpm > /ALT/Sisyphus/files/SRPMS/emacs-text-modes-0.2-alt3.src.rpm'; echo $? It's very puzzling: what can the reason for the difference in behavior be? Minor correction (regarding "gb-x-sh-functions"): /bin/sh -efu -c 'export PATH="$PATH:$PWD"; . gb-x-sh-functions; tmpdir=/home/imz/tests/test-girar-rpm_changes_since; rpm_changes_since /tasks/279434/build/100/x86_64/srpm/emacs-text-modes-0.2-alt4.src.rpm /ALT/Sisyphus/files/SRPMS/emacs-text-modes-0.2-alt3.src.rpm'; echo $? |