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

self sufficient testsuite + macos ci run tests #1956

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Oct 4, 2024

I wanted to run the tests on the macOS CI, but then I remembered lua5.1 is not supported by brew anymore, and figured I might as well make our testsuite self-sufficient (like with the meson branch): install luarocks to staging and the necessary Lua packages to a dedicated tree under the output spec directory.

This led to discovering 2 macOS specific issues: see #1953 & #1954.


This change is Reviewable

@Frenzie
Copy link
Member

Frenzie commented Oct 4, 2024

We used to do something like that with https://github.com/torch/luajit-rocks btw. (I'm just mentioning it for potential onlookers who might be interested in random historical remarks.)

@NiLuJe
Copy link
Member

NiLuJe commented Oct 4, 2024

Random remark about macOS: the last few LuaJIT commits upstream deal with XCode 16 & macOS 15 stupidity, so we might want to bump LuaJIT again, too ;).

(Will do so tomorrow if nobody beats me to it, as I'm barely awake rn)

@benoit-pierre benoit-pierre force-pushed the pr/self-sufficient_testsuite_+_macos_ci_run_tests branch 2 times, most recently from b2fd244 to 300ca0c Compare October 5, 2024 10:39
@benoit-pierre
Copy link
Contributor Author

The new macOS job using XCode 16.0 would hang during the build, but pass with the LuaJIT update from #1957, so it clearly has an impact.

@benoit-pierre benoit-pierre force-pushed the pr/self-sufficient_testsuite_+_macos_ci_run_tests branch 5 times, most recently from 88040a5 to 363d237 Compare October 6, 2024 15:49
@benoit-pierre benoit-pierre force-pushed the pr/self-sufficient_testsuite_+_macos_ci_run_tests branch from 363d237 to 342bf77 Compare October 15, 2024 23:52
@benoit-pierre benoit-pierre marked this pull request as ready for review October 18, 2024 19:18
@benoit-pierre benoit-pierre force-pushed the pr/self-sufficient_testsuite_+_macos_ci_run_tests branch from 342bf77 to fc6a65b Compare November 1, 2024 23:10
@benoit-pierre benoit-pierre force-pushed the pr/self-sufficient_testsuite_+_macos_ci_run_tests branch from fc6a65b to 2142b43 Compare November 19, 2024 20:03
Build & install the testsuite dependencies ourselves.
No need to install jq (already provided by the runner image).
Even when building for the `macos` target, so tests can be run.
```
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /opt/homebrew
Could not symlink bin/pkg-config
Target /opt/homebrew/bin/pkg-config
is a symlink belonging to pkg-config@0.29.2. You can unlink it:
  brew unlink pkg-config@0.29.2

To force the link and overwrite all conflicting files:
  brew link --overwrite pkgconf

To list all files that would be deleted:
  brew link --overwrite pkgconf --dry-run

Possible conflicting files are:
/opt/homebrew/bin/pkg-config -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/bin/pkg-config
/opt/homebrew/share/aclocal/pkg.m4 -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/share/aclocal/pkg.m4
/opt/homebrew/share/man/man1/pkg-config.1 -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/share/man/man1/pkg-config.1
```

This only happen with AMD64 runners, and when using the latest runner images
(e.g. when the luck of the draw yields 14.7.1 23H222 and not 14.7 23H124).
@benoit-pierre benoit-pierre force-pushed the pr/self-sufficient_testsuite_+_macos_ci_run_tests branch from 2142b43 to 853dd8c Compare November 20, 2024 21:40
@Frenzie Frenzie merged commit 4192783 into koreader:master Nov 21, 2024
4 checks passed
@benoit-pierre benoit-pierre deleted the pr/self-sufficient_testsuite_+_macos_ci_run_tests branch November 21, 2024 17:52
benoit-pierre added a commit to benoit-pierre/koreader that referenced this pull request Nov 21, 2024
Frenzie pushed a commit to koreader/koreader that referenced this pull request Nov 21, 2024
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.

3 participants