-
Notifications
You must be signed in to change notification settings - Fork 54
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
ci: Enable conditional SAT solving #1177
Conversation
Please make sure the changes are working as expected. |
26aa277
to
8cde222
Compare
Verified. |
.github/workflows/daily_common.yml
Outdated
@@ -86,4 +91,7 @@ jobs: | |||
run: | | |||
nim --version | |||
nimble --version | |||
NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }}" nimble test | |||
[[ ${{ inputs.use_sat_solver }} ]] && dependency_solver="sat" || dependency_solver="legacy" |
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.
[[ ${{ inputs.use_sat_solver }} ]] && dependency_solver="sat" || dependency_solver="legacy" | |
if [[ "${{ inputs.use_sat_solver }}" == "true" ]]; then | |
dependency_solver="sat" | |
else | |
dependency_solver="legacy" | |
fi |
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.
Any reason you oppose to ternary?
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's more readable in this way.
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.
But just a suggestion, up to you
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.
Actually, you're right; that ternary is a bit convoluted.
.github/workflows/daily_common.yml
Outdated
@@ -86,4 +91,7 @@ jobs: | |||
run: | | |||
nim --version | |||
nimble --version | |||
NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }}" nimble test | |||
[[ ${{ inputs.use_sat_solver }} ]] && dependency_solver="sat" || dependency_solver="legacy" | |||
NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }} --solver:$dependency_solver" |
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.
NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }} --solver:$dependency_solver" | |
NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }} --solver:${dependency_solver}" |
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 written as it was before: Instead of assuming NIMFLAGS
is empty we just append the values to it, as it's common practice.
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.
Right, I updated 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.
It's about the missing {}
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's probably better to change the name to upper case too.
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.
Ah, I see, I misunderstood.
Right, it would work regardless as $variable
can be used interchangeably with ${variable}
; not the other way around, though.
EDIT: Updated it just because I like it more with brackets 😆
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'd kinda keep the lowercase, though, as uppercase is used for env variables while lowercase for local ones. IIRC.
8ec4dbf
to
c1d5f52
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1177 +/- ##
==========================================
- Coverage 84.53% 84.51% -0.03%
==========================================
Files 91 92 +1
Lines 15517 16427 +910
==========================================
+ Hits 13118 13884 +766
- Misses 2399 2543 +144 |
25a6be3
to
44eeb65
Compare
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.
Thank you
Use only on a daily job so we test out if it behaves correctly.
closes: #1174