Different results in mock and actual machine #772
Replies: 3 comments 1 reply
-
I tried to get the CPU information on both instances (mock and the test machine for ppc64le). Below is a summary for both: mock:
Test machine instance:
This shouldn't particularly affect the upstream code in my opinion, but this was the only difference I could find between the two instances. |
Beta Was this translation helpful? Give feedback.
-
Where do you build ppc64le and s390x builds using Mock? Is it in Copr? Or on your machine? On which architecture? |
Beta Was this translation helpful? Give feedback.
-
I am trying to run the builds on my laptop, with an AMD Ryzen CPU - x86_64 architecture. The emulated architecture doesn't seem to be working for me, as you pointed out. Seems to be an issue with Probably asking at the wrong place again, but, Is there any other way we can use koji//mock to submit builds since we have verified that the tool works fine on a native VM but fails because of being run on a different architecture when using an emulator? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone
I was trying to build
python-pybv
on mock, but the tests were failing for theppc64le
and thes390x
architectures. Here is a mock koji scratch build on the s390x architecture. In order to replicate the test failures, we set up a GitHub workflow to test the tool on different architectures, and we found similar failures there.To debug the issue, I signed in on the test machine for ppc64le architecture from Fedora's test machine resources and tried to build the package there. Somehow, the same SRPM was built successfully there! I went through everything again and found that this build only fails when using mock or docker (through GH Actions).
I am not sure as to why we are seeing a difference in results, even though mock is supposed to replicate a machine's architecture too, right?
The spec and the SRPMs that I tested are available here. It would be really amazing if you could help me with this issue. It's turning out to be more complicated than I first thought (I thought maybe the endianness could be an issue, but it doesn't seem like it).
I had verified if I was using the exact same SRPMs on both the builds (the actual ppc64le machine and mock). I also tested the SHA signatures of the files created in the temporary directory and they both are matching, except for a binary file. FYI, the files are created under the
/tmp/pytest-of-<user>
. I am guessing the way the upstream software reads the file is getting affected by the host (mock/docker) and probably that's causing in a different result as to when It is run on the test instance?Beta Was this translation helpful? Give feedback.
All reactions