-
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
Merged
Merged
Add GAP distro tests #1067
Changes from 24 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
1b56a12
Add GAP distro tests
lgoettgens ad118ab
Try with matrix
lgoettgens 4d2e091
Fix retrieval of GAP packages list
lgoettgens 8aefe07
Add `GAP.Packages.test`
lgoettgens c43cdf9
Remove dependency on `Test`
lgoettgens 2e50af0
Add exclude list
lgoettgens 65dbc88
Add to changelog
lgoettgens c33e175
Extend exclusion list
lgoettgens b0b10c2
Reduce number of CI action caches
lgoettgens 648890e
debugging
fingolfin 123a3a7
hack
fingolfin 82d282d
WIP
fingolfin c1c91df
Update .github/workflows/CI-distro.yml
lgoettgens 78573e3
Fix typo
lgoettgens 1274be5
Merge branch 'master' into lg/CI-distro
lgoettgens 62a0868
Update .github/workflows/CI-distro.yml
lgoettgens 70171cd
Merge branch 'master' into lg/CI-distro
fingolfin 91c9597
tweak
fingolfin 0ed4d36
Update exclusion list
lgoettgens 5587398
Apply suggestions from code review
lgoettgens e81846a
Merge branch 'master' into lg/CI-distro
fingolfin e16e5c9
tweak
fingolfin 3c30ef1
Work around packages calling `QuitGap` multiple times
lgoettgens e7f7acf
Apply suggestions from code review
lgoettgens 4e448e9
Apply suggestions from code review
lgoettgens e3e5907
Apply suggestions from code review
lgoettgens eed4903
Disable `help` tests
lgoettgens 8f489e1
Disable `atlasrep` tests
lgoettgens b92955a
Apply suggestions from code review
fingolfin b38232f
Apply suggestions from code review
fingolfin 29c4f28
Merge branch 'master' into lg/CI-distro
fingolfin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: Test GAP package distro | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'release-*' | ||
tags: '*' | ||
pull_request: | ||
schedule: | ||
# Every Monday at 3:08 AM UTC | ||
- cron: '8 3 * * 1' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
# group by workflow and ref; the last slightly strange component ensures that for pull | ||
# requests, we limit to 1 concurrent job, but for the default repository branch we don't | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }} | ||
# Cancel intermediate builds, but only if it is a pull request build. | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
||
jobs: | ||
generate-matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
gap-packages: ${{ steps.set-matrix.outputs.gap-packages }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: '1' | ||
- name: "Cache artifacts" | ||
uses: julia-actions/cache@v2 | ||
- name: "Build package" | ||
uses: julia-actions/julia-buildpkg@v1 | ||
- name: Get list of GAP packages | ||
id: set-matrix | ||
run: julia --project=. -e ' | ||
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; | ||
fingolfin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
println(io, output); | ||
end;' | ||
|
||
test: | ||
name: ${{ matrix.gap-package }} | ||
needs: generate-matrix | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
continue-on-error: ${{ matrix.julia-version == 'nightly' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
julia-version: | ||
- '1' | ||
julia-arch: | ||
- x64 | ||
os: | ||
- ubuntu-latest | ||
gap-package: ${{fromJSON(needs.generate-matrix.outputs.gap-packages)}} | ||
exclude: | ||
- gap-package: 'alnuth' # `AL_EXECUTABLE, the executable for PARI/GP, has to be set` | ||
#- gap-package: 'autodoc' # test failure | ||
lgoettgens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- gap-package: 'caratinterface' # `Carat program Bravais_inclusions failed with error code 1` | ||
lgoettgens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- gap-package: 'curlinterface' # no jll | ||
lgoettgens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- gap-package: 'example' # no jll | ||
- gap-package: 'examplesforhomalg' # `Error, found no GAP executable in PATH` | ||
- gap-package: 'guarana' # `AL_EXECUTABLE, the executable for PARI/GP, has to be set` | ||
- gap-package: 'hap' # `polymake command not found. Please set POLYMAKE_COMMAND by hand` | ||
- gap-package: 'hapcryst' # `polymake command not found. Please set POLYMAKE_COMMAND by hand` | ||
- gap-package: 'io' # segfaults, most likely due to child process handling | ||
- gap-package: 'itc' # dependency `xgap` has no jll | ||
- gap-package: 'localizeringforhomalg' # `Error, found no GAP executable in PATH` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See also issue #1105 (@ThomasBreuer that's another case where a package needs/wants a GAP executable) |
||
- gap-package: 'normalizinterface' # Tests fail: NormalizInterface currently bundles Normaliz 3.9.3 and its test suite is tuned to that, but our JLL builds it against normaliz_jll which has 3.10.2 | ||
- gap-package: 'packagemanager' # tests need curlInterface to passe, reactivate once we have a working JLL for that | ||
- gap-package: 'polenta' # `AL_EXECUTABLE, the executable for PARI/GP, has to be set` | ||
- gap-package: 'polycyclic' # test suite currently broken and also disabled by GAP package distribution | ||
- gap-package: 'polymaking' # `polymake command not found. Please set POLYMAKE_COMMAND by hand` | ||
fingolfin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- gap-package: 'profiling' # segfaults during testing | ||
- gap-package: 'radiroot' # `AL_EXECUTABLE, the executable for PARI/GP, has to be set` | ||
- gap-package: 'ringsforhomalg' # `Error, found no GAP executable in PATH` | ||
- gap-package: 'semigroups' # no jll | ||
#- gap-package: 'typeset' # needs `dot2tex` executable | ||
lgoettgens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- gap-package: 'xgap' # no jll | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Install extra dependencies" | ||
run: sudo apt-get install --no-install-recommends texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended dot2tex | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
arch: ${{ matrix.julia-arch }} | ||
- name: "Cache artifacts" | ||
uses: julia-actions/cache@v2 | ||
with: | ||
include-matrix: false # don't create a cache per GAP package | ||
lgoettgens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cache-scratchspaces: false | ||
- name: "Build package" | ||
uses: julia-actions/julia-buildpkg@v1 | ||
- name: "Run GAP package tests" | ||
run: | | ||
julia --color=yes --project=. -e 'using GAP, Test; @test GAP.Packages.test("${{ matrix.gap-package }}")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
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.
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.
There are >150 jobs but apparently they take less than 15 minutes to run? So perhaps we keep them on for now and see what happens?
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.
Fine with me