-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cygwin CI: replace AppVeyor by GitHub Actions #28
base: master
Are you sure you want to change the base?
Conversation
Thank you!! I just merged PR #27 |
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} | ||
runs-on: windows-latest | ||
env: | ||
CHERE_INVOKING: 1 |
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.
Just to understand: why do we need this here? don't all the actions already set it?
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.
This is probably not necessary here. However, in my opinion it is not worth my time to remove it and wait to see if it works.
However, I think it would be required if one ever added a step to this job that ran some commands directly in the Cygwin bash shell. Keeping this (otherwise harmless) environment variable set means that adding such a step would be as seamless as possible.
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 had to rebase, I've commented it out for now.
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.
It seems it does need to be there, I don't really understand why, but if it's not then gap-actions/build-pkg
and gap-actions/run-pkg-tests
start in the GAP directory, and not in the ace directory, and so they fail at building the package and running its tests, respectively.
Here's an example of it running without the environment variable set: https://github.com/gap-packages/ace/runs/4965188634?check_suite_focus=true
Codecov Report
@@ Coverage Diff @@
## master #28 +/- ##
=======================================
Coverage 39.00% 39.00%
=======================================
Files 10 10
Lines 2761 2761
=======================================
Hits 1077 1077
Misses 1684 1684 |
This PR is now in a state where the package builds and loads, but sadly the package does not work. Copied from https://github.com/gap-packages/ace/runs/4965449425?check_suite_focus=true ...
|
Weird that it fails here and works in AppVeyor. |
Yeah, weird, but also not too surprising, because I imagine the AppVeyor and GitHub Actions versions of Cygwin are somewhat different. |
Interesting: in order to debug this, I added as a hack a commit which executes |
No there are still proper failures, I think:
i.e. |
Indeed. I think I must have looked at the wrong log 😂 |
Hm, tmate access doesn't seem to work :-( |
Just for information, I hacked at this a bit (you can see my code at ChrisJefferson ). The code runs fine locally on my machine, and also in a release made from GAP master. My best guess as to what is going wrong on github actions is that 'ace' believes there is nothing to read from stdin, so immediately exits. However, I cannot figure out remotely why that would be the case. |
I had another hack and this, and tried fixing some things in core GAP, or actions, I hoped might be affecting things. They didn't fix anything, and I can't reproduce this, so unfortunately I think we will have to leave it as a mystery. |
This does what the title says.