A couple of years ago I built a shed and ran power to it through some underground PVC conduit. Power to the shed is sourced from a GFCI receptacle under my deck. The shed has an interior light fixture, an external receptacle and an external motion sensor light fixture.
Last week I noticed that the motion sensor fixture was not turning on so I went out to the shed and found that the GFCI receptacle had tripped. I reset the GFCI, both lights came on and seconds later the GFCI tripped again. I turned off the disconnect switch in the shed, reset the GFCI and it stayed on. Flipped on the disconnect and the GFCI tripped.
Satisfied that (thankfully) it did not appear to be my underground wiring, I opened the junction box for the motion sensor fixture and disconnected it. When I reset the GFCI it stayed on. OK, problem found.
I took the Made In China light fixture - which was clearly marked "For External Use" - off of the shed and into the workshop. I opened the bulb housing and saw water around the wires that went to the bulb socket. I guess it's "For External Use" in dry locations only. The best I can tell is that the water got in through the ball and socket joint that allows you to aim the light.
I let the unit dry out and then filled the tube from the ball and socket joint to the light socket with silicone so the water can't reach the socket. I remounted it, aimed the light and then put some more silicon around the exterior of the ball and socket joint to hopefully prevent water from entering the fixture in the first place.
Piece of crap Chinese fixture. Maybe the GFCI was made in China also, but at least it works the way it is supposed to.