Skip to content

Windows: Don't follow junctions on Windows - #18206

Closed
lowenna wants to merge 1 commit into
moby:masterfrom
microsoft:jjh/fix18120
Closed

lowenna wants to merge 1 commit into
moby:masterfrom
microsoft:jjh/fix18120

Conversation

@lowenna

@lowenna lowenna commented Nov 24, 2015

Copy link
Copy Markdown
Member

Signed-off-by: John Howard [email protected]

Don't follow junction directories on Windows. Fixes #18120

Signed-off-by: John Howard <[email protected]>
@lowenna

lowenna commented Nov 24, 2015

Copy link
Copy Markdown
Member Author

@jfrazelle Where's Windows CI gone? 💔

@LK4D4

LK4D4 commented Nov 24, 2015

Copy link
Copy Markdown
Contributor

@jhowardmsft It's better to write something in commit title about change and explain it in commit body, too :) Just for case.

@calavera

Copy link
Copy Markdown
Contributor

can we have a more descriptive commit message?

It looks like the windows builds were disabled this morning 😔

@lowenna lowenna changed the title Windows: Fix GH18120 Windows: Don't follow junctions on Windows Nov 24, 2015
@lowenna

lowenna commented Nov 24, 2015

Copy link
Copy Markdown
Member Author

@calavera Updated. Any reason why? (Not following IRC - on vacation....)

@calavera

Copy link
Copy Markdown
Contributor

@jhowardmsft the windows build was disabled temporarily this morning. It was back online two hours ago. As you know, the networking stack in Azure makes our builds to fail quite often, and we needed to merge a few things without all that noise.

@lowenna

lowenna commented Nov 25, 2015

Copy link
Copy Markdown
Member Author

@calavera I see it's back on now (and still failing), but IMO, turning it off was probably the worst decision ever made. However much noise it makes. I trust it is never deliberately disabled again.

I don't know who to call out for making that decision, but turning it off, even if only 1 in 10 passes, was completely and utterly the wrong thing to do. If a build break occurs on Windows (which it has, many, many times in the past few months), it's left to me alone to fix it. No-one else seems to care if Windows is broken on master - I have yet to see anyone else pick up fixing it.

That is completely wrong - it is the responsibility of every PR submitter to ensure that they don't break the build, regardless of platform, and for Jenkins CI to ensure that a build and test run successfully completes.

While it seems apparently easy to blame the "Azure Networking Stack" (I have heard that incorrectly stated so many times) for why Jenkins is so unreliable on Windows CI, I simply don't for one second believe it. Neither have I seen any evidence to support that supposition. If Azure networking was 90+% unreliable, Azure (Microsoft) would simply not have a cloud business - it would be ridiculous if Azure networking had that level of (un-)reliability, and would have been out of business from the get-go. The truth is Azure network is not that unreliable, and that perception which requires correcting to the maintainers in general (not specifically calling you out, David) is a complete misnomer.

There is something more intrinsic to this in the Jenkins setup which is triggering the failures. It's more likely a case of where-ever the daemon is being spun up, it doesn't start reliably, or is delayed for some reason. sh -xe C:\Windows\TEMP\hudson4548556746425698932.sh fails, and I have never been told what this shell script does or been provided access to its contents or the Jenkins configuration. It's not networking - it's simply the daemon not available and running.

I don't know who else to reach out to for getting this fixed, even though I have said it so many times for so many weeks, I talk continually to a brick wall with no progress ever being made. It is a major problem for the Docker engine project. No-one will tell me how to setup a Jenkins machine to potentially simulate the failures, so it's impossible for me to investigate, not that it's my responsibility in the first place. This level of failure is (relatively) recent. It's nothing to do with my months of changes to the daemon as that isn't under test in this specific CI scenario. It's supposed to be simple:

  • Build the Windows binary
  • Start a Linux daemon
  • Run the integration tests from Windows to Linux

I have emailed Dan (again today) and many others in the past. This is entirely unacceptable from my POV, and similarly detrimental to anyone in the docker contributor community.

I trust you understand my frustration and am trying to be respectful and do the 'right thing' for the entire docker community here.
John.

@crosbymichael @LK4D4 @thaJeztah @shykes @powersplay @jstarks

@seal-ss

seal-ss commented Nov 25, 2015

Copy link
Copy Markdown

@jhowardmsft Wow, many thanks for that fast PR. Enjoy your vacation! In the meantime I'll try to build docker myself on Windows.

@jessfraz

Copy link
Copy Markdown
Contributor

From the point on CI this script hudson4548556746425698932.sh is a tmp file generated that just runs:


# checkout the PR
git fetch origin +refs/pull/$PR/head:refs/remotes/origin/pr/$PR
git merge origin/pr/$PR

# get the ip
ip="${DOCKER_HOST#*://}"
ip="${ip%%:*}" 

set -x

# build the daemon image
commithash=$(git rev-parse --short HEAD)
docker build --rm --force-rm -t "docker:$commithash" .

docker run -it --privileged -e GOMAXPROCS=1 --pid host -d --name "docker-$commithash" --net host "docker:$commithash" bash -c 'hack/make.sh binary && cp bundles/$(cat VERSION)/binary/docker /bin/docker && exec docker daemon -D -H tcp://0.0.0.0:2375'

set +x

echo "Waiting for daemon in container to start"
sleep 30

(
        set -x
        export TIMEOUT="60m"
        export DOCKER_HOST="tcp://$ip:2375"
        export DOCKER_TEST_HOST="tcp://$ip:2375"

        unset DOCKER_CLIENTONLY

         export DOCKER_REMOTE_DAEMON=1

        # run tests
        hack/make.sh binary test-integration-cli

    )

@jessfraz

Copy link
Copy Markdown
Contributor

@jessfraz

Copy link
Copy Markdown
Contributor

I would be more than happy to adjust the script or anything above if you think it would help you can email me directly, I agree that it's super frustrating when it breaks and I really also agree every PR needs to be tested w it, the last minute fixes to master should not happen because the broken things should not be merged. So I think we can continue this discussion via email and hopefully find a solution.

@lowenna

lowenna commented Nov 25, 2015

Copy link
Copy Markdown
Member Author

@jfrazelle Check your email :)

@thaJeztah

Copy link
Copy Markdown
Member

ping @calavera @jfrazelle does this LGTY? The discussion looks to be diverted from reviewing :)

@duglin

duglin commented Dec 11, 2015

Copy link
Copy Markdown
Contributor

@jhowardmsft can we add a testcase for this?
Also, this appears to avoid the error message during the validate step but what about during the 'tar' step - what stops it from trying to add those files/dirs to the build context?

@lowenna

lowenna commented Dec 11, 2015

Copy link
Copy Markdown
Member Author

Not until I'm back next year...

@thaJeztah

Copy link
Copy Markdown
Member

ping @jhowardmsft, now that you're back, can you rebase this and address @duglin's comment? We like to move this forward :)

@thaJeztah

Copy link
Copy Markdown
Member

ping @jhowardmsft can you work on this, or should this be closed?

@lowenna

lowenna commented Jan 27, 2016

Copy link
Copy Markdown
Member Author

I'll close for now and re-open once I have more time free - busy, busy, busy on CI!

@lowenna lowenna closed this Jan 27, 2016
@thaJeztah

Copy link
Copy Markdown
Member

np, thanks @jhowardmsft

@lowenna
lowenna deleted the jjh/fix18120 branch July 30, 2016 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants