-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add GAP distro tests #1067
base: master
Are you sure you want to change the base?
Add GAP distro tests #1067
Conversation
7088374
to
12ce2c4
Compare
name: Test GAP package distro | ||
|
||
on: | ||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull_request: |
IMO this shouldn't run on every commit in every PR, as it produces >150 jobs. But I have kept it here for now such that in this PR, we can already see it running.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1067 +/- ##
==========================================
- Coverage 74.69% 74.16% -0.54%
==========================================
Files 55 55
Lines 4636 4668 +32
==========================================
- Hits 3463 3462 -1
- Misses 1173 1206 +33
|
22935a3
to
7846672
Compare
19c0f2b
to
c5a9136
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Thank you for this @lgoettgens. Could you please rebase it? I'll try to have a closer in the coming week(s) |
c5a9136
to
6ddb758
Compare
#- gap-package: 'packagemanager' # test failure | ||
- gap-package: 'polenta' # `AL_EXECUTABLE, the executable for PARI/GP, has to be set` | ||
- gap-package: 'polycyclic' # ??? | ||
- gap-package: 'polymaking' # `polymake command not found. Please set POLYMAKE_COMMAND by hand` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make polymake available, too, but it requires more work, see https://github.com/oscar-system/Oscar.jl/pull/4132/files
Co-authored-by: Max Horn <[email protected]>
Good: Bad: most other packages now fail despite reporting success:
|
This is probably due to the return value handling. I'll look into it tomorrow |
Ok, so the problem is how gap packages try to exit after running their tests. Most packages call wpe does not use Ways to solve this:
I will try to implement 2. |
Option 2 to me sounds like the way to go as it models more accurately what GAP does. |
using Artifacts, TOML; | ||
output = sprint(print, "gap-packages=", map(name -> name[9:end], sort!(collect(filter(startswith("GAP_pkg_"), keys(TOML.parsefile(find_artifacts_toml(Base.active_project())))))))); | ||
println(output); | ||
open(ENV["GITHUB_OUTPUT"], "a") do io; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not important but FYI I don't think you need the semicolons here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I added these to easier copy paste this into my console for debugging ans not getting spammed with output
Co-authored-by: Max Horn <[email protected]>
Co-authored-by: Max Horn <[email protected]>
The |
Resolves #1065.
This is dependent on #1066 and thus includes it.I've used the ugly hack from oscar-system/GAP_pkg#15 in
GAP.Packages.test
to avoid GAP packages exiting the process after running their tests. This function could be moved to a package extension onTest
once the minimum required julia version is bumped to 1.8.