Skip to content
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

Correct the Github actions CI Test to return the error level correctly #731

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

TrustHenry
Copy link
Member

A build test error occurred in the window cmd environment, but the exit code is not returned.
Returns only the last run result.

@TrustHenry TrustHenry self-assigned this Apr 6, 2020
@TrustHenry TrustHenry added the type-bug Things don't work as they were intended to, or the way they were intended to work doesn't make sense label Apr 6, 2020
ci/run.bat Outdated
@@ -1,4 +1,8 @@
call dub test --skip-registry=all --compiler=%DC%
if not %errorlevel% 0 exit /b %errorlevel%
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't it be if %errorlevel% neq 0 exit /b %errorlevel% ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe that's more accurate.

Copy link
Collaborator

@Geod24 Geod24 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Apr 6, 2020

Codecov Report

Merging #731 into v0.x.x will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           v0.x.x     #731   +/-   ##
=======================================
  Coverage   91.34%   91.34%           
=======================================
  Files          65       65           
  Lines        5162     5167    +5     
=======================================
+ Hits         4715     4720    +5     
  Misses        447      447           
Flag Coverage Δ
#integration 51.32% <ø> (+1.06%) ⬆️
#unittests 90.19% <ø> (+<0.01%) ⬆️
Impacted Files Coverage Δ
source/agora/consensus/EnrollmentManager.d 94.67% <0.00%> (-0.05%) ⬇️
source/agora/node/Ledger.d 96.58% <0.00%> (+<0.01%) ⬆️
source/agora/consensus/ValidatorSet.d 87.34% <0.00%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b787c8...ac2714a. Read the comment docs.

@Geod24
Copy link
Collaborator

Geod24 commented Apr 6, 2020

@AndrejMitrovic and me were discussing whether call was needed or not on the .bat files. I gave it a shot.
Turns out, without call, cmd will work as an execve, that is, it will never execute the commands following the .bat. So we very much need call on those .bat.

@Geod24
Copy link
Collaborator

Geod24 commented Apr 15, 2020

@TrustHenry : Can any of those be enabled, or do every single line fail ?

@TrustHenry
Copy link
Member Author

#739 No errors will occur except for this issue.
I only activated build test and cli build.

A build test error occurred in the window cmd environment, but the exit code is not returned.
Returns only the last run result.
@AndrejMitrovic
Copy link
Contributor

AndrejMitrovic commented Apr 16, 2020

@TrustHenry you could add a version (Windows) { } else: in the \tests\unit\BlockStorageChecksum.d module and keep all of those if %errorlevel% neq 0 exit /b %errorlevel% checks.

That way we continue having proper Windows build tests and we can worry about fixing the linker issue later.

@Geod24 Geod24 removed the automerge label Apr 16, 2020
@Geod24
Copy link
Collaborator

Geod24 commented Apr 16, 2020

That test is broken anyway, so merging this as is, and let's revisit when convenient: #650

@Geod24 Geod24 merged commit f4dc39f into bosagora:v0.x.x Apr 16, 2020
@TrustHenry TrustHenry deleted the fixbat branch April 16, 2020 04:42
@TrustHenry
Copy link
Member Author

The annotated part leaves issues with unittest link error and Re-BlockStorageChecksum test error.
Related issues are #650, #739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Things don't work as they were intended to, or the way they were intended to work doesn't make sense
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants