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

//tests/rpm:test_golden_debuginfo_rpm_contents fails to build on some machines #870

Open
aiuto opened this issue Jun 3, 2024 · 4 comments
Labels
internal cleanup P2 An issue that should be worked on when time is available

Comments

@aiuto
Copy link
Collaborator

aiuto commented Jun 3, 2024

bazelisk test --sandbox_debug //tests/rpm:test_golden_debuginfo_rpm_contents

fails with

...
# pkg_rpm emits two outputs
    RPMS=(bazel-out/k8-fastbuild/bin/tests/rpm/test_debuginfo_rpm-1-0..rpm)
    echo "===== main RPM =====" > bazel-out/k8-fastbuild/bin/tests/rpm/test_debuginfo_rpm_contents.txt
    rpm -qpi --list ${RPMS[0]} |         grep -v '\''Build Date'\'' | grep -v '\''Build Host'\'' | grep -v '\''Relocations'\'' | grep -v '\''Architecture'\'' | grep -v '\''Size'\'' | grep -v '\''.build-id'\'' >> bazel-out/k8-fastbuild/bin/tests/rpm/test_debuginfo_rpm_contents.txt
    echo "===== sub RPM ======" >> bazel-out/k8-fastbuild/bin/tests/rpm/test_debuginfo_rpm_contents.txt
    rpm -qpi --list ${RPMS[1]} |         grep -v '\''Build Date'\'' | grep -v '\''Build Host'\'' | grep -v '\''Relocations'\'' | grep -v '\''Architecture'\'' | grep -v '\''Size'\'' | grep -v '\''.build-id'\'' >> bazel-out/k8-fastbuild/bin/tests/rpm/test_debuginfo_rpm_contents.txt
    ')
/bin/bash: line 7: RPMS[1]: unbound variable

We are only getting 1 declared output of the rpm, and not the debug one.
Perhaps this is an RPM version difference?

cc:@kellyma2

@aiuto aiuto added P2 An issue that should be worked on when time is available internal cleanup labels Jun 3, 2024
@kellyma2
Copy link
Contributor

kellyma2 commented Jun 18, 2024

Apologies - this fell off my radar. Will add it to my TODO list for the next week or so

Also, @aiuto can you give me a bit more detail in terms of where you're seeing this failure?

@aiuto
Copy link
Collaborator Author

aiuto commented Jun 18, 2024

No worries. I am weeks behind on all my Bazel projects.

@kellyma2
Copy link
Contributor

My guess is that it's on a system variant that we've not poked at thusfar. I just opened a PR to add AlmaLinux 9.3, for example.

Can you tell me what the contents of /etc/os-release are on the system where this is failing?

@aiuto
Copy link
Collaborator Author

aiuto commented Jul 1, 2024

I get this. It is debian rodete, so rolling release near head.

PRETTY_NAME="Debian GNU/Linux rodete"
NAME="Debian GNU/Linux rodete"
VERSION_CODENAME=rodete
ID=debian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal cleanup P2 An issue that should be worked on when time is available
Projects
None yet
Development

No branches or pull requests

2 participants