Fix tests on sample platform #1672
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Closes CCExtractor/sample-platform#924
Zulip Discussion: #general > Are the sample platform tests broken?
The problem
All of the recent Linux tests have ended in failure. Going through the logs for the Linux tests, it seems that all of them stem from the following error:
[INFO] Multitest, overriding report folder to: /repository/reports/Testsuite_Report_2025-03-09_235502 [INFO] Starting with entry 1 of 86 [ERROR] /repository/ccextractor: error while loading shared libraries: libtesseract.so.5: cannot open shared object file: No such file or directory [ERROR] Path is emptyDebugging Summary
objdumpon the artifact:libtesseract.so.5but Ubuntu 22.04 (the version used by Sample Platform) only provideslibtesseract.so.4in its package repository.ubuntu-latestin its workflow file (which defaults to 24.04) This causes the built binary to use newer libraries that are not present on the sample platform.The Fix
In my opinion, the ideal fix would be to update the sample platform to Ubuntu 24.04. However, this might introduce new incompatibilities. So for a safer temporary fix, I've opted to make the core repo use 22.04 for building the artifacts.
I've verified that the these artifacts work on Ubuntu 22.04.