Skip to content

Conversation

@hrideshmg
Copy link
Contributor

@hrideshmg hrideshmg commented Mar 12, 2025

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.
  • I have mentioned this change in the changelog.

My familiarity with the project is as follows (check one):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

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 empty

Debugging Summary

  1. Downloaded the latest artifact from GitHub
  2. Ran objdump on the artifact:
Dynamic Section:
  NEEDED               libm.so.6
  NEEDED               libtesseract.so.5
  NEEDED               liblept.so.5
  NEEDED               libgpac.so.12
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6
  NEEDED               ld-linux-x86-64.so.2
  1. As we can see, the artifact expects libtesseract.so.5 but Ubuntu 22.04 (the version used by Sample Platform) only provides libtesseract.so.4 in its package repository.
    • The reason this discrepancy occurs is that the core repository uses ubuntu-latest in 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.

@hrideshmg hrideshmg changed the title Fix broken tests on sample platform Fix tests on sample platform Mar 12, 2025
@hrideshmg hrideshmg closed this Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux tests are currently broken

1 participant