Skip to content

Conversation

@fingolfin
Copy link
Member

While this is not strictly necessary, I feel that if we release a breaking v4 soon anyway, we might as well do this now.

On the other hand, it will make the transition to the new version a bit harder because the user has to first upgrade to setup-gap@v3. But then we probably should do that automatically for everything in gap-packages anyway, with some scripts...

@stertooy
Copy link
Contributor

stertooy commented Sep 4, 2025

CI tests failing for this PR seems to be a problem with setup-gap@v3 (my bad!). I'll get a fix in there ASAP.

EDIT: fix is in, CI tests here work now.

Copy link
Contributor

@stertooy stertooy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! (only some tiny remarks)

@fingolfin
Copy link
Member Author

Hmm, this still does

         SetPackagePath(info.PackageName, "/tmp/gaproot/pkg/$(basename $PWD)");

which I really don't like. Actually, now I wonder, why doesn't it just do

         SetPackagePath(info.PackageName, "$PWD");

Am I missing something?

Copy link
Contributor

@wilfwilson wilfwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@fingolfin fingolfin force-pushed the mh/require_setup-gap_v3 branch from ebb1233 to b9157c9 Compare September 4, 2025 23:00
@fingolfin
Copy link
Member Author

One failure left, which seems to be due to an issue in RepnDecomp ?

#I  RepnDecomp: finish reading file 'init.g'
#I  RepnDecomp: start reading file 'read.g'
Syntax warning: Unbound global variable in /home/runner/gap/pkg/repndecomp/lib\
/serre.gi:356
        irred_decomp := ParListByFork(irreps, do_decompose, rec(NumberJobs := \
parallel));
                        ^^^^^^^^^^^^^
Syntax warning: Unbound global variable in /home/runner/gap/pkg/repndecomp/lib\
/serre.gi:358
        irred_decomp := ParListByFork(irreps, do_decompose, rec(NumberJobs := \
4));
                        ^^^^^^^^^^^^^
Syntax warning: Unbound global variable in /home/runner/gap/pkg/repndecomp/lib\
/serre.gi:402
                irred_decomp := ParListByFork(irreps, do_decompose, rec(Number\
Jobs := parallel));
                                ^^^^^^^^^^^^^
Syntax warning: Unbound global variable in /home/runner/gap/pkg/repndecomp/lib\
/serre.gi:406
                irred_decomp := ParListByFork(irreps, do_decompose, rec(Number\
Jobs := 4));
                                ^^^^^^^^^^^^^
#I  RepnDecomp: finish reading file 'read.g'
─────────────────────────────────────────────────────────────────────────────

@fingolfin
Copy link
Member Author

Ah and @wilfwilson is already on top of it, great: gap-packages/RepnDecomp#24

@fingolfin
Copy link
Member Author

The failing test should be taken care of by gap-actions/setup-gap#59 as a workaround, until RepnDecomp has had a release.

@wilfwilson
Copy link
Contributor

Almost... I thought it would be, but I've made gap-actions/setup-gap#60 to hopefully deal with the issue for good.

@wilfwilson
Copy link
Contributor

wilfwilson commented Sep 8, 2025

It's Whac-A-Mole! This reveals a problem with the HeLP package that @fingolfin already identified at gap-packages/HeLP#22.

We didn't encounter this problem earlier because HeLP requires IO, which wasn't compiled, and therefore couldn't be loaded, and so HeLP couldn't be loaded.

@wilfwilson
Copy link
Contributor

We could probably check for these warnings in the PackageDistro when running CI against a package for acceptance. Maybe? i.e. checking that we can load the package without warnings when using OnlyNeeded := true.

@fingolfin
Copy link
Member Author

@wilfwilson we do check packages in the PackageDistro using OnlyNeeded := true! But only with all other package built.

What we don't test is loading packages there with no other packages being built -- and in general this can't work as the needed dependencies for a package obviously must be there in order to be able to test it.

What one could do, at least in principle, is to run a final test round on the PackageDistro, where all the pkg/*/bin dirs are deleted for all packages except those which are direct or indirect "needed dependencies" of the package being tested. Feel free to to open an issue on the PackageDistro repo to suggest that, and/or to make a PR there to do that.

@fingolfin fingolfin closed this Sep 12, 2025
@fingolfin fingolfin reopened this Sep 12, 2025
@wilfwilson
Copy link
Contributor

The failing test should be taken care of by gap-actions/setup-gap#59 as a workaround, until RepnDecomp has had a release.

@fingolfin, since RepnDecomp has had a release, we could remove the workaround introduced in gap-actions/setup-gap#59 and then the tests here should then pass (since the only failing test now is HeLP, which only started failing when the workaround in gap-actions/setup-gap#59 was introduced). What do you think?

@fingolfin fingolfin force-pushed the mh/require_setup-gap_v3 branch from b9157c9 to 41fd71a Compare November 25, 2025 14:20
Copy link
Member

@limakzi limakzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally missed this conversation.
Love this simplification!


There are several changes between v3 and v4: the introduction of the `mode` option,
the renaming of some options,
the renaming of some options, the requirement for using `gap-actions/setup-gap@v3` or newer
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've rebased this PR now; but since we already released v4, I feel this should really be waiting for a v5 release.

It's not urgent right now: before worrying about this PR at all, we should get at least all gap-packages repos to use setup-gap@v3 in their CI.yml. Right now just 9 out of 150 do that :-/.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fingolfin Shall we help them and make pull-requests? Haha!

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.

6 participants