Move tools checkout to style_lint to avoid failing PRs#5559
Move tools checkout to style_lint to avoid failing PRs#5559dlang-bot merged 1 commit intodlang:masterfrom
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
|
Looking good. |
|
Err, I'm having some difficulty understanding how this change fixes things. |
- ./circleci.sh setup-repos
- ./circleci.sh style_lint
- ./circleci.sh publictests
- ./circleci.sh coverageEvery entry in the |
|
An alternative fix would be: diff --git a/circleci.sh b/circleci.sh
index 443f74b54..8d7ad6daf 100755
--- a/circleci.sh
+++ b/circleci.sh
@@ -129,7 +129,7 @@ coverage()
# extract publictests and run them independently
publictests()
{
- make -f posix.mak -j$N publictests DUB=$DUB
+ make -f posix.mak -j$N publictests DUB=$DUB DISABLE_DEPRECATION_HALT=1
}
case $1 in
diff --git a/posix.mak b/posix.mak
index fee516c25..0c2fd74b7 100644
--- a/posix.mak
+++ b/posix.mak
@@ -115,7 +115,7 @@ else
endif
# Set DFLAGS
-DFLAGS=-conf= -I$(DRUNTIME_PATH)/import $(DMDEXTRAFLAGS) -w -de -dip25 $(MODEL_FLAG) $(PIC)
+DFLAGS=-conf= -I$(DRUNTIME_PATH)/import $(DMDEXTRAFLAGS) -w -dip25 $(MODEL_FLAG) $(PIC)
ifeq ($(BUILD),debug)
DFLAGS += -g -debug
else
@@ -123,6 +123,12 @@ else
endif
ifdef DISABLE_DEPRECATION_HALT
+DFLAGS += -d
+else
+DFLAGS += -de
+endif
+
+ifdef ENABLE_COVERAGE
DFLAGS += -cov
endifThough it's a good idea to always have the latest tools (as specified in |
Sorry, I still don't fully understand. How does changing when we do something (without changing what is done) change the situation? |
Because we merge with However, as mentioned we could make building with |
|
Thanks for the explanation. Finally wrapped my head around this. This seems like a deficiency in Circle CI: https://discuss.circleci.com/t/show-test-results-for-prospective-merge-of-a-github-pr/1662 In this case, it may be better to simply run as little code as possible from the current branch, before merging and handing over the rest of the work to the script on master. |
Sorry for not explaining it properly.
Another thing that we could do on our side would be to automatically restart the last X PRs in the queue when PR has been merged:
Well it's a two-handed sword. If we use only one invocation, CircleCi can't group them anymore as nicely as now: And people will have a lot more troubles finding errors. |

I observed the following on #5557:
In
setup_reposwe merge with the master branch, thus only the later targets have an updatedcircleci.sh.A long-term solution might also simply be building DScanner without
-de, but this is the simpler fix for now (the other requires a bit of Makefile fiddling).CC @CyberShadow