-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Remove 'interactive remove test' from DUB #47
Conversation
rm -f ? |
7713865
to
a004e82
Compare
@@ -170,10 +170,11 @@ def testDownstreamProject (name) { | |||
case 'dlang/dub': | |||
sh ''' | |||
rm test/issue884-init-defer-file-creation.sh # FIXME | |||
rm test/interactive-remove.sh # FIXME |
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.
rm
-> rm -f
as @CyberShadow mentioned.
pipeline.groovy
Outdated
jq '.versions["vibe-d"]="0.7.31"' < dub.selections.json | sponge dub.selections.json | ||
dub fetch ddox --version=0.16.0 | ||
''' | ||
sh 'DC=$DC ./travis-ci.sh' | ||
sh 'DC=$DC ./travis-ci.sh || echo failed' |
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.
echo failed
-> how about something more informative, along the lines of: https://stackoverflow.com/a/3055810/1808755
If you mean the issue when there is an unexpected additional dub version, we should figure out why that is lingering around. Each project is using it's own clean dub cache, maybe we should additionally clean at the start of the test though. |
Tests that are failing because the registry isn't available should be addressed separately, I could easily run a mirror dub-registry instance on the CI server itself, but would generally prefer if |
This is an instance of the error I meant. |
The "fix" for this pressing issue has been lingering too ;-) |
Yes this is exactly what this PR tries to circumveit until the DUB "fix" is in (or another solution has been found). |
Looks to me as if it boils down to another dub-registry availability issue (e.g. that test fetches 0.9.21), |
I'll install a dub-registry mirror in the next few days, should resolve those kinds of issues. |
While this is great, it seems like the issue is independent from the DUB registry: https://ci.dlang.io/blue/organizations/jenkins/dlang-org%2Fphobos/detail/PR-5514/1/pipeline |
92382c1
to
2e4190b
Compare
Hmm I had a stupid typo the first time which I wouldn't have noticed with
I simply removed this. As with the test removed, DUB's testsuite should pass again :) |
2e4190b
to
b56ec9e
Compare
(force pushing a dummy commit to restart Jenkins due to a transient error in vibe.d ...) |
If you are not running each project's tests in an isolated environment, then I would be inclined to say that you are Doing It Wrong :) At least set HOME and TMPDIR/TEMP/TMP to a directory that's wiped between projects' tests (Digger and DAutoTest already do this). |
Any useful ideas on testing dub without remote services (registry, github) welcome.
We do clean dub folders between runs Line 206 in fce0397
|
OK, how about this.
This should make running tests totally deterministic as far as third-party services are concerned, leaving only things such as race conditions. Edit: if we're putting dependencies in git then we might as well put the tested projects themselves instead of just their tags. |
Right that would work. If it's just for failing package downloads, I'd rather just cache github.com in some local proxy. A local download cache would also eliminate most download overhead, making total clean&reinstall per test a better choice. |
If we really start to see github failures we could finish dub's FileSystemPackageSupplier and use that instead. |
I like this idea :)
Well, at some point we have to eat the dogfood and improve our infrastructure, so I guess having to eat our own dogfood isn't that bad and I really hope that multiple mirrors (dlang/dub#1190) and retrying the download (dlang/dub#1198) will start to fix things.
+1 In any case this turned out to be the wrong issue (and due to the failing dub-registry) as thankfully Martin improved the debugging output vastly: |
Nearly every PR currently fails due to this
https://ci.dlang.io/blue/organizations/jenkins/dlang-org%2Fphobos/activity
See also: dlang/dub#1157
CC @CyberShadow - I think this should fix the Project-Tester and Martin has done a similar hack before ...