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
Fix coverage CI #194
Fix coverage CI #194
Conversation
looks like the fields for email simply doesn't exist on PRs, even if the correct |
I really like how you setup this whole work, with the issues before and the summary in the PR body 😄 It's a shame it is failing! 😖 I was looking at your repo and noticed that all OS tests used gwion-action. I thought I had changed those a while back! However I think it can easily be solved with a bash trick: cd .github/workflows
for cifile in linux.yml macos.yml windows.yml
do
awk '1;/steps:/{exit}' $cifile > $cifile.tmp
cat << EOF >> $cifile.tmp
- name Checkout
uses: actions/checkout@v2
- name: Init submodules
run: git submodule update --init util ast
- name: Build
run: make
env:
CC: \${{ matrix.cc }}
USE_DOUBLE: \${{ matrix.double }}
USE_DEBUG: 1
- name: Test
run: make test
EOF
mv $cifile.tmp $cifile;
done
cd ../.. The issue remains to create. Would you be interrested on this one? |
sounds good.
yeah that's what I was talkin about in this comment haha. I will try fixing that, sure. |
if [ "${{ github.event_name }}" == "push" ] | ||
then | ||
ref="${{ github.ref }}" | ||
else | ||
ref="${{ github.event.head.ref }}" | ||
fi | ||
branch=$(basename ref) |
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.
Pretty useful snippet here.
- name: Init submodules | ||
run: git submodule update --init util ast |
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.
Submodules on their own place is nice.
dir: . | ||
ref: ${{ github.sha }} | ||
run: 'true' | ||
- name: Checkout |
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.
That's the thing asked for in the issue, you uncovered so many things beyond that!
Thank you.
You made it all green! That's awesome. see my comment below ... I'm not yet famliar with github reviews. |
I see the problem: the error in the newly modified I can't say how grateful I already am. You did a fair amount of work, pretty seriously as far as I'm concerned. I learned so much, thank you! |
whoops, didn't notice the missing colons |
Neither did I when I posted the script 😄 |
Ah, windows with its weird design choices again. Looks like |
Can relate 😄 |
This SO thread may be helpful. Should this be a fix on the code side then? |
Has your windows build The problem might be ifeq (${BUILD_ON_WINDOWS}, 1)
USE_DEBUG=0
endif so that windows builds do not try to link with sanitizer libraries, since their are not implemented as of now. |
Would setting Edit: and also replacing that with |
I think that's the trick 😄 |
TBH, I can't wait to see it all green (because I think it will 😄) |
I was watching at the window testing live, so to say, and I think we need Also, the test suite fails to catch the error 😸 |
Could you tell me what modifications this needs? Should the build and test be separated? |
TBH, I not sure what your Assuming it's refering to
First, we need to add It looks like the It needs to call So the tests should be run for the root. There is |
Ahh I see. I was referring to the conversation on As for the |
Fix thing mentionned in my previous comment is totally up to you. |
That's also better IMO. |
It's easier when maintaining to have separate steps to look for for build and and test, so I think these should be separated. |
Extended changelog:-
|
Just reviewed your changes. Looks good to me! |
I think that should be all for the CI fixes. Should be good to merge |
I think so. |
checkout@v2
, followed by the manual build process . (previously was usinggwion-action
)fennecdjay